Twitter API Redirects After Authorization But Won't Give Me a PIN
I am trying to block a user account with the Twitter API through Python. Here's what my method looks like: def block_user(): payload = {"target_user_id": "amazon"} # Get request token request_token_url = "https://api.twitter.com/oauth/request_token" oauth = OAuth1Session(consumer_key, client_secret=consumer_secret,) try: fetch_response =…