Skip to content

Commit

Permalink
Setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Feb 20, 2018
1 parent 860a7e5 commit 950116c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,22 @@ If you have never used the Composer dependency manager before, head to the [Comp

## Setup

*TODO*
To use this package, you need to authenticate with Google via OAuth 2. Thankfully, this is made easy by the PHP Google OAuth 2 Handler package.

You can run its guided setup script with the following command.

```
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 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.

```php
$people = new GooglePeople($googleOAuth2Handler);
```

## Usage

Expand Down

0 comments on commit 950116c

Please sign in to comment.