This repository was archived by the owner on Jun 27, 2019. It is now read-only.
Commit 84a48ad 1 parent e5007cc commit 84a48ad Copy full SHA for 84a48ad
File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,13 @@ const config = {
15
15
oauth_consumer_secret : '{{process.env.CLIENT_SECRET}}' ,
16
16
oauth_signature_method : 'HMAC-SHA1' ,
17
17
oauth_callback : '{{bundle.inputData.redirect_uri}}' ,
18
- oauth_version : '1.0'
18
+ oauth_version : '1.0' // must be 1.0 for Twitter
19
19
}
20
20
} ,
21
21
authorizeUrl : {
22
22
url : AUTHORIZE_URL ,
23
23
params : {
24
- oauth_token : '{{bundle.inputData.oauth_token}}' ,
25
- name : 'Zapier/Twitter OAuth1 Test'
24
+ oauth_token : '{{bundle.inputData.oauth_token}}'
26
25
}
27
26
} ,
28
27
getAccessToken : {
@@ -43,9 +42,8 @@ const config = {
43
42
connectionLabel : '{{screen_name}}'
44
43
} ;
45
44
46
- // To include the Authorization header on all outbound requests, simply define a
47
- // function here. It runs runs before each request is sent out, allowing you to make
48
- // tweaks to the request in a centralized spot.
45
+ // A middleware that is run before z.request() actually makes the request. Here we're
46
+ // adding necessary OAuth1 parameters to `auth` property of the request object.
49
47
const includeAccessToken = ( req , z , bundle ) => {
50
48
if (
51
49
bundle . authData &&
You can’t perform that action at this time.
0 commit comments