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

getEventTypeProperties() public method

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

Usage Example

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