getById() public method

Returns a company with id $id
See also: http://developers.hubspot.com/docs/methods/companies/get_company
public getById ( integer $id ) : Response
$id integer
return SevenShores\Hubspot\Http\Response
Example #1
0
 /** @test */
 public function getById()
 {
     //Ensure that we have a company to fetch
     $newCompanyResponse = $this->createCompany();
     $id = $newCompanyResponse['companyId'];
     $response = $this->companies->getById($id);
     $this->assertEquals(200, $response->getStatusCode());
     $this->assertEquals($id, $response['companyId']);
 }