setApiBasePath() public method

Sets the api base path
public setApiBasePath ( string $apiBasePath )
$apiBasePath string
 /**
  * @param HttpClient $client
  */
 public function __construct(HttpClient $client)
 {
     $this->client = $client;
     $this->client->setApiBasePath($this->apiBasePath);
     if (!isset($this->resourceName)) {
         $this->resourceName = $this->getResourceNameFromClass();
     }
     if (!isset($this->objectName)) {
         $this->objectName = Inflect::singularize($this->resourceName);
     }
     if (!isset($this->objectNamePlural)) {
         $this->objectNamePlural = Inflect::pluralize($this->resourceName);
     }
     $this->setUpRoutes();
 }