Beispiel #1
0
 /**
  * Set the headers for the request
  * @param array $options
  * @return array $headers
  */
 private function setHeaders(array $options)
 {
     $format = $options['format'];
     $authToken = $this->storage->getTokenData();
     $accessToken = $authToken['access_token'];
     $tokenType = $authToken['token_type'];
     $this->headers['Authorization'] = "{$tokenType} {$accessToken}";
     $this->setRequestFormat($options['format']);
     $this->setCompression($options);
 }