Esempio n. 1
0
 /**
  * @inheritdoc
  */
 protected function createPayload()
 {
     $payload = new OauthAccessPayload();
     $payload->setClientId('4b39e9-752c4');
     $payload->setClientSecret('33fea0113f5b1');
     $payload->setCode('ccdaa72ad');
     $payload->setRedirectUri('http://example.com');
     return $payload;
 }
 /**
  * @return OauthAccessPayload
  */
 protected function createPayload()
 {
     $payload = new OauthAccessPayload();
     $payload->setClientId($this->input->getArgument('client-id'));
     $payload->setClientSecret($this->input->getArgument('client-secret'));
     $payload->setCode($this->input->getArgument('code'));
     $payload->setRedirectUri($this->input->getOption('redirect-uri'));
     return $payload;
 }