@@ -22,8 +22,8 @@ $ yarn add axios-oauth-client axios
2222
2323``` javascript
2424import axios from ' axios'
25- import oauth from ' axios-oauth-client'
26- const getAuthorizationCode = oauth . authorizationCode (
25+ import { authorizationCode } from ' axios-oauth-client'
26+ const getAuthorizationCode = authorizationCode (
2727 axios .create (),
2828 ' https://oauth.com/2.0/token' , // OAuth 2.0 token endpoint
2929 ' CLIENT_ID' ,
@@ -39,8 +39,8 @@ const auth = await getAuthorizationCode('AUTHORIZATION_CODE', 'OPTIONAL_SCOPES')
3939
4040``` javascript
4141import axios from ' axios'
42- import oauth from ' axios-oauth-client'
43- const getOwnerCredentials = oauth . ownerCredentials (
42+ import { ownerCredentials } from ' axios-oauth-client'
43+ const getOwnerCredentials = ownerCredentials (
4444 axios .create (),
4545 ' https://oauth.com/2.0/token' , // OAuth 2.0 token endpoint
4646 ' CLIENT_ID' ,
@@ -55,8 +55,8 @@ const auth = await getOwnerCredentials('USERNAME', 'PASSWORD', 'OPTIONAL_SCOPES'
5555
5656``` javascript
5757import axios from ' axios'
58- import oauth from ' axios-oauth-client'
59- const getClientCredentials = oauth . clientCredentials (
58+ import { clientCredentials } from ' axios-oauth-client'
59+ const getClientCredentials = clientCredentials (
6060 axios .create (),
6161 ' https://oauth.com/2.0/token' ,
6262 ' CLIENT_ID' ,
@@ -71,8 +71,8 @@ const auth = await getClientCredentials('OPTIONAL_SCOPES')
7171
7272``` javascript
7373import axios from ' axios'
74- import oauth from ' axios-oauth-client'
75- const getRefreshToken = oauth . refreshToken (
74+ import { refreshToken } from ' axios-oauth-client'
75+ const getRefreshToken = refreshToken (
7676 axios .create (),
7777 ' https://oauth.com/2.0/token' ,
7878 ' CLIENT_ID' ,
0 commit comments