0
 /**
   * This function allows you to overrule the automatically generated scopes,
   * so that you can ask for more or less permission in the auth flow
   * Set this before you call authenticate() though!
   * @param array $scopes, ie: array('https://www.googleapis.com/auth/plus.me', 'https://www.googleapis.com/auth/moderator')
   */
  public function setScopes($scopes) {
    $this->scopes = is_string($scopes) ? explode(" ", $scopes) : $scopes;
  }

上記のコードは google/Client.php からのものです。

質問:

  1. コメントで、これはどういう意味ですか: https://www.googleapis.com/auth/plus.me?

  2. スコープを設定しない場合、デフォルトのスコープは何ですか?

4

1 に答える 1

0

コメントで、これはどういう意味ですか: https://www.googleapis.com/auth/plus.me ?

そのスコープは、電話をかけているユーザーに固有であり、すべての一般的な Google プラス情報 (名前のプロフィール写真など) を取得するように指示します。

setScopes を設定しない場合、デフォルトのスコープは何ですか?

デフォルトのスコープはありません。指定しないとエラーになります。

于 2013-11-06T19:02:59.793 に答える