Skip to content

Commit 3ec5845

Browse files
author
cmj
committed
remove cookie options
1 parent d0c0dc7 commit 3ec5845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitter_oauth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ -z "$username" || -z "$password" ]]; then
1212
fi
1313

1414
bearer_token='AAAAAAAAAAAAAAAAAAAAAFXzAwAAAAAAMHCxpeSDG1gLNLghVe8d74hl6k4%3DRUMF4xAQLsbeBhTSRrCiQpJtxoGWeyHrDb5te2jpGskWDFW82F'
15-
guest_token=$(curl -s -XPOST -c "${cookie}" https://api.twitter.com/1.1/guest/activate.json -H "Authorization: Bearer ${bearer_token}" -d "grant_type=client_credentials" | jq -r '.guest_token')
15+
guest_token=$(curl -s -XPOST https://api.twitter.com/1.1/guest/activate.json -H "Authorization: Bearer ${bearer_token}" -d "grant_type=client_credentials" | jq -r '.guest_token')
1616
base_url='https://api.twitter.com/1.1/onboarding/task.json'
1717
header=(-H "Authorization: Bearer ${bearer_token}" -H "User-Agent: TwitterAndroid/10.21.0-release.0" -H "X-Twitter-Active-User: yes" -H "Content-Type: application/json" -H "X-Guest-Token: ${guest_token}")
1818

0 commit comments

Comments
 (0)