forked from MrSwitch/hello.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamazon.js
More file actions
43 lines (33 loc) · 686 Bytes
/
amazon.js
File metadata and controls
43 lines (33 loc) · 686 Bytes
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
// Amazon
// Amazon services
(function(hello) {
hello.init({
amazon: {
name: 'Amazon',
oauth: {
version: 2,
auth: 'https://www.amazon.com/ap/oa',
grant: 'https://api.amazon.com/auth/o2/token'
},
// Refresh the access_token once expired
refresh: true,
scope_map: {
basic: 'profile'
},
scope_delim: ' ',
// The amazon login window is a different size
popup: {
width: 710
},
base: 'https://api.amazon.com/',
// There aren't many routes that map to the hello.api so I included me/bikes
// ... because, bikes
get: {
me: 'user/profile'
},
wrap: {
me: function(o, headers) {}
}
}
});
})(hello);