/**
  * @param ClientInterface $client
  * @param $conversionType
  */
 public function __construct(ClientInterface $client, $conversionType)
 {
     $this->client = $client;
     $this->conversionType = $conversionType;
     $this->callbackUrl = $client->getCallbackUrl();
     $this->testMode = $client->getTestMode();
 }
Example #2
0
 /**
  * @param ClientInterface $client
  * @param string $uri
  * @return \Guzzle\Http\Message\EntityEnclosingRequestInterface
  */
 public static function factory(ClientInterface $client, $uri)
 {
     $request = $client->post('convert');
     $request->addPostFields(array('token' => $client->getToken()));
     return $request;
 }