/** * {@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))); }
/** * {@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))); }