/**
  * @param $uri
  * @return \Guzzle\Http\Message\EntityEnclosingRequestInterface
  */
 protected function buildRequest($uri)
 {
     $request = Request::factory($this->client, $uri);
     $request->setPostField('conversionType', $this->conversionType);
     if (isset($this->callbackUrl)) {
         $request->setPostField('callbackUrl', $this->callbackUrl);
     }
     if ($this->testMode == TRUE) {
         $request->setPostField('testMode', $this->testMode);
     }
     return $request;
 }
Esempio n. 2
0
 /**
  *
  */
 public function getRemainingCredits()
 {
     $request = Request::factory($this, 'getRemainingCredits');
     $response = $request->send();
 }