Skip to content

Commit 5d616f3

Browse files
author
Jessica Garson
authored
Update create_tweet.js
1 parent 711e26d commit 5d616f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Manage-Tweets/create_tweet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const data = {
2626
const endpointURL = `https://api.twitter.com/2/tweets`;
2727

2828
// this example uses PIN-based OAuth to authorize the user
29-
const requestTokenURL = 'https://api.twitter.com/oauth/request_token?oauth_callback=oob';
29+
const requestTokenURL = 'https://api.twitter.com/oauth/request_token?oauth_callback=oob&x_auth_access_type=write';
3030
const authorizeURL = new URL('https://api.twitter.com/oauth/authorize');
3131
const accessTokenURL = 'https://api.twitter.com/oauth/access_token';
3232
const oauth = OAuth({

0 commit comments

Comments
 (0)