Update README.md

This commit is contained in:
Kasper Rynning-Tønnesen 2016-06-30 15:06:39 +02:00 committed by GitHub
parent d0eb094b39
commit 79b972b68e
1 changed files with 13 additions and 2 deletions

View File

@ -1,8 +1,19 @@
# General OAuth2-Client
To use this general OAuth2 client-class, include it with
``` require_once('OAuth2Client.php');
$oauth2 = new OAuth2( $client_id, $client_secret, $redirect_uri, $auth, $token, $user, $authorization_type, $session, $verify, $grant_type, $response_type);
```
require_once('OAuth2Client.php');
$oauth2 = new OAuth2(
$client_id,
$client_secret,
$redirect_uri,
$auth,
$token,
$user,
$authorization_type,
$session,
$verify,
$grant_type, $response_type);
```
```$client_id``` is client id of the OAuth2 application