-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmock.yaml
More file actions
51 lines (51 loc) · 1.86 KB
/
mock.yaml
File metadata and controls
51 lines (51 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
service.get:
- args: [XXX]
response:
name: Analytics
config:
user_agent: null
token_uri: https://accounts.google.com/o/oauth2/token
token_response:
token_type: Bearer
expires_in: 3600
access_token: ya29.GlxqBfVM79mNmy1Wxz3pzzRr2Cz_Cj5_L1tqlKA05q9eXFMU_VWqDdN9Wdn6hDmbLSSYVpS6caC4mz16vj2ikgSt40zfRFCGwoDyCzJMV9QqPbg6JNm71pLagbZweg
token_info_uri: https://www.googleapis.com/oauth2/v3/tokeninfo
token_expiry: "2018-02-22T18:38:32Z"
scopes:
- https://www.googleapis.com/auth/analytics.readonly
revoke_uri: https://accounts.google.com/o/oauth2/token
refresh_token: 1/E47VNhFpv9fYbEDRmPEl7GyOQda3HazrFhun6lI8N4upG2bC9beu7ppWw2HLGNdB
invalid: false
id_token_jwt: null
id_token: null
client_secret: 6BacR5UWcs07RGJXE9jVxavU
client_id: 600143774821-a3m87e8ihur7elbp2u548n1cnv93hdml.apps.googleusercontent.com
access_token: ya29.GlxiBR_tbdsClNOWg8zKEEs5aDNnFRQonaoIVq9L-abnUHMsEjpHteAoJZlls64Axd2qSRmzqqwTs6cGGRsg0v_n4YnR5HOFGHmCSyEL_Swdqiq2QtZQydqBe8i1Bw
_module: oauth2client.client
_class: OAuth2Credentials
service.update:
- args: "*"
response: True
settings.get:
- args: ["serverboards.google.analytics/settings"]
response:
client_id: CLIENTID
client_secret: CLIENTSECRET
- args:
- "serverboards.core.settings/base"
- {"base_url": "http://localhost:8080"}
response:
base_url: http://localhost:8080
requests.post:
- args:
- https://accounts.google.com/o/oauth2/token
- code: "YYY"
client_id: "CLIENTID"
client_secret: "CLIENTSECRET"
redirect_uri: "http://localhost:8080/static/serverboards.google.analytics/auth.html"
grant_type: "authorization_code"
response:
json:
access_token: ZZZ
expires_in: 300
_retry_request: []