public function __construct()
 {
     $config = $this->_getConfig();
     $url = $config['amtUrl'] . "/api/ssoipn";
     $accessKeyId = '6E756D365AAEFDCEF892FF64C1FE9';
     $secretKey = 'D92881BCEA22376D54B4FFA74DA4F';
     parent::__construct($url, $accessKeyId, $secretKey);
 }
Beispiel #2
0
 public function __construct(array $args)
 {
     if (!isset($args['modelsDir'])) {
         $args['modelsDir'] = __DIR__ . '/../data';
     }
     $email = $args['email'];
     $key = $args['key'];
     parent::__construct($args);
     $stack = $this->getHandlerList();
     $stack->appendBuild(function (callable $handler) use($key, $email) {
         return function (CommandInterface $command, RequestInterface $request) use($handler, $key, $email) {
             $request = $request->withHeader('X-Auth-Key', $key)->withHeader('X-Auth-Email', $email);
             return $handler($command, $request);
         };
     });
 }