Update README.md
This commit is contained in:
parent
d2a30e335c
commit
a1e0a7abee
|
@ -29,21 +29,18 @@ Optional -
|
|||
```(boolean) $session``` specifies whether the state is to be saved in _SESSION storage, defaults to false
|
||||
```(boolean) $verify``` is whether to verify SSL of host and peer, defaults to true
|
||||
```(string) $grant_type``` defaults to 'authorization_code'
|
||||
```(string) $response_type``` defaults to 'code'
|
||||
```(string) $response_type``` defaults to "code"
|
||||
|
||||
|
||||
To start the redirect phase
|
||||
|
||||
```$oauth2->redirect($state);```
|
||||
|
||||
($state defaults to false)
|
||||
```$oauth2->redirect($state);``` ($state defaults to false)
|
||||
|
||||
|
||||
To get access token
|
||||
|
||||
```$oauth2->get_access_token();```
|
||||
```$oauth2->get_access_token();``` returns the access_token.
|
||||
|
||||
returns the access_token.
|
||||
|
||||
(Optional value is $state, to check up against _SESSION variables)
|
||||
|
||||
|
|
Loading…
Reference in New Issue