コード例 #1
0
ファイル: FitBit.php プロジェクト: austp/proauth
 /**
  * Gets the access and refresh tokens from the token endpoint
  * @param  string $type The grant type to use
  * @param  array  $data Data to send to the endpoint
  * @return array
  */
 public function grant($type, $data = [])
 {
     $base64 = base64_encode($this->id . ':' . $this->secret);
     $this->tokenHeaders = ['Authorization' => 'Basic ' . $base64];
     return parent::grant($type, $data);
 }