Skip to content

Commit

Permalink
Blank config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Jul 9, 2015
1 parent 7e143f6 commit ecc093e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ PHP library for the Google Contacts API (v3)

## Setup

1. Fill in the `clientID`, `clientSecret` and `redirectUri` in `config.json`.
1. Copy or rename `config_blank.json` to `config.json`.
2. Fill in the `clientID`, `clientSecret` and `redirectUri` in `config.json`.
* Note that `redirectUri` should be configure to point towards the `redirect-handler.php` file.
* The `clientID` and `clientSecret` can be found in the Google Developers console at https://console.developers.google.com/ under 'APIs & auth' -> 'Credentials'.

2. Go to `authorise-application.php` in a web browser. This should give you a URL to authorise your application for Google Contacts.
3. Go to the authorisation URL provided by the previous step.
4. Accept the permissions requested on the page displayed. You should then be redirected back to the `redirect-handler.php` file.
5. The page generated by the `redirect-handler.php` file should then present you with a refresh token. Copy this into your `config.json`.
6. Setup is done!
3. Go to `authorise-application.php` in a web browser. This should give you a URL to authorise your application for Google Contacts.
4. Go to the authorisation URL provided by the previous step.
5. Accept the permissions requested on the page displayed. You should then be redirected back to the `redirect-handler.php` file.
6. The page generated by the `redirect-handler.php` file should then present you with a refresh token. Copy this into your `config.json`.
7. Setup is done!


2 changes: 1 addition & 1 deletion config.json → config_blank.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"redirectUri": "",
"developerKey": "",
"refreshToken": ""
}
}

0 comments on commit ecc093e

Please sign in to comment.