示例#1
0
 /**
  * @param string $userId
  * @param string $userPassword
  * @param int    $partnerId
  * @param string $partnerPassword
  * @param string $errorLanguage
  */
 public function __construct($userId, $userPassword, $partnerId, $partnerPassword, $errorLanguage)
 {
     AnnotationRegistry::registerLoader('class_exists');
     $this->afterbuyGlobal = new AfterbuyGlobal($userId, $userPassword, $partnerId, $partnerPassword, $errorLanguage);
     $this->client = new \GuzzleHttp\Client(['base_uri' => 'https://api.afterbuy.de/afterbuy/ABInterface.aspx']);
     $this->serializer = Client::getDefaultSerializer();
 }
示例#2
0
 /**
  * set up client
  */
 public function setUp()
 {
     $this->serializer = Client::getDefaultSerializer();
     $this->timezone = new \DateTimeZone('UTC');
 }
示例#3
0
 /**
  * set up client
  */
 public function setUp()
 {
     $this->serializer = Client::getDefaultSerializer();
 }