Skip to content

Commit

Permalink
Merge pull request #6 from RomaVan/add-language-query-param-to-compan…
Browse files Browse the repository at this point in the history
…ies-report

Added language option for company report getting
  • Loading branch information
Josh-G authored Aug 9, 2019
2 parents e762d3e + a304869 commit 045436e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Service/CompanyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ public function search(array $params) : ListResult

/**
* This function is used to call the endpoint that gets the company report
* @param string $id The ID of the given company that you want to get a report for
* @return array Returns the results of the get endpoint
* @param string $id The ID of the given company that you want to get a report for
* @param string $reportLang
* @return Company Returns the results of the get endpoint
*/
public function get(string $id) : Company
public function get(string $id, string $reportLang = 'en') : Company
{
return new Company($this->client, $this->client->get('companies/'.$id));
return new Company($this->client, $this->client->get('companies/'.$id, ['language' => $reportLang]));
}

/**
Expand Down

0 comments on commit 045436e

Please sign in to comment.