SevenShores\Hubspot\Resources\CompanyProperties::all PHP Method

all() public method

Returns all of the company properties, including their definition.
See also: http://developers.hubspot.com/docs/methods/companies/get_company_properties
public all ( ) : Response
return SevenShores\Hubspot\Http\Response
    function all()
    {
        $endpoint = 'https://api.hubapi.com/companies/v2/properties/';
        return $this->client->request('get', $endpoint);
    }

Usage Example

 /** @test */
 public function all()
 {
     $response = $this->companyProperties->all();
     $this->assertEquals(200, $response->getStatusCode());
     $this->assertGreaterThanOrEqual(2, count($response->getData()));
 }