Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function initialize()
 {
     parent::initialize();
     $this->tokenExchangeParameters = ['client_id' => $this->clientId, 'grant_type' => 'authorization_code', 'redirect_uri' => $this->endpoint];
     $this->tokenExchangeHeaders = ['Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret)];
     $this->apiRequestHeaders = ['Authorization' => 'Bearer ' . $this->token('access_token')];
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function initialize()
 {
     parent::initialize();
     $this->apiRequestHeaders = ['Authorization' => 'Bearer ' . $this->token('access_token')];
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 protected function initialize()
 {
     parent::initialize();
     $this->apiRequestParameters = ['api_key' => $this->clientId, 'api_secret' => $this->clientSecret];
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 protected function initialize()
 {
     parent::initialize();
     $apiVersion = $this->config->get('api_version') ?: '20120610';
     $this->apiRequestParameters = ['v' => $apiVersion];
 }