コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function getRequest()
 {
     parent::getRequest();
     return $this->client->post($this->tokenUrl, null, $this->removeNullItems(array('grant_type' => self::GRANT_TYPE, 'client_id' => $this->clientId, 'client_secret' => $this->clientSecret)));
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function getRequest()
 {
     parent::getRequest();
     return $this->client->post($this->tokenUrl, $this->getContentTypeFormUrlencodedHeader(), $this->removeNullItems(array('client_id' => $this->clientId, 'client_secret' => $this->clientSecret, 'username' => $this->username, 'password' => $this->password, 'scope' => $this->scope, 'grant_type' => self::GRANT_TYPE)));
 }