-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaltstore.js
31 lines (31 loc) · 917 Bytes
/
altstore.js
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
let obj = JSON.parse($response.body);
obj ={
"data": {
"attributes": {
"first_name": "barry",
"full_name": "barry chen"
},
"id": "30618536",
"relationships": {
"memberships": {
"data": [{
"id": "e3a5c718-d930-4b92-a8b9-677f4699c9a4",
"type": "tier"
}]
}
},
"type": "member"
},
"included": [{
"attributes": {
"full_name": "barry chen",
"patron_status": "active_patron"
},
"id": "e3a5c718-d930-4b92-a8b9-677f4699c9a4",
"type": "member"
}],
"links": {
"self":"https://www.patreon.com/api/oauth2/v2/user/30618536"
}
}
$done({body: JSON.stringify(obj)});