Example #1
0
 /**
  * Instantiate a new Salesforce Bulk API
  *
  * @param Client $client
  */
 public function __construct(Client $client)
 {
     $this->client = $client;
     $this->httpClient = $client->getHttpClient();
     $this->endpoint = sprintf(self::ENDPOINT_PATTERN, $this->client->getServerInstance(), Client::API_VERSION);
     $this->httpClient->setBaseUrl($this->endpoint);
 }