SevenShores\Hubspot\Resources\Timeline::getEventTypes PHP Method

getEventTypes() public method

Get Timeline Event Types
See also: http://developers.hubspot.com/docs/methods/timeline/get-event-types
public getEventTypes ( integer $appId ) : mixed
$appId integer
return mixed
    public function getEventTypes($appId)
    {
        $endpoint = "https://api.hubapi.com/integrations/v1/{$appId}/timeline/event-types";
        return $this->client->request('get', $endpoint);
    }

Usage Example

Example #1
0
 /**
  * @test
  */
 public function getEventTypes()
 {
     $response = $this->timeline->getEventTypes(self::APP_ID);
     $this->assertEquals(200, $response->getStatusCode());
     return $response;
 }