Skip to content

Commit

Permalink
Use dynamic scopes during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Feb 20, 2018
1 parent 950116c commit 44fb727
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ php vendor/rapidwebltd/php-google-oauth-2-handler/src/setup.php
```

This will guide you through the process of setting up a project, and logging into to the Google account that you wish to manage contacts for.
When asked which scopes you require access to, enter the following.

```
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/contacts
https://www.googleapis.com/auth/contacts.readonly
```

When complete, you will have to code you need to create a `GoogleOAuth2Handler` object for this Google account.

You can then create a `GooglePeople` object, as follows.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "This package provides a user friendly way of interacting with Google Contacts via the Google People API.",
"type": "library",
"require": {
"rapidwebltd/php-google-oauth-2-handler": "^1.1.1"
"rapidwebltd/php-google-oauth-2-handler": "^1.2.1"
},
"license": "LGPL-3.0-only",
"authors": [
Expand Down

0 comments on commit 44fb727

Please sign in to comment.