Twitter-API-v2-sample-code icon indicating copy to clipboard operation
Twitter-API-v2-sample-code copied to clipboard

Sample code for the Twitter API v2 endpoints

Results 87 Twitter-API-v2-sample-code issues
Sort by recently updated
recently updated
newest added

**Describe the bug** In the dashboard, there are two endpoints given to getting the followings of an account, one is by using the user's ID and the other is by...

bug

I found an issue while we are taking "BEARER_TOKEN" from .env by using os.environ.get("BEARER_TOKEN"). It show 401 because bearer_token was not passing exactly. So by using this "pip install python-dotenv"...

**Describe the bug** I'm new to javascript and I'm trying to use the `delete_tweets.js` code provided in the Twitter-API-v2-sample-code. After copying over most of the code, and making a few...

bug

this PR contains the following changes: * If the requests failed `exit` without going further * switching from `%s` to an `f` string

Hi, there is an issue with requests I could not fix. Could you help? Using python 3 in Google Colab. see: https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/main/Recent-Search/recent_search.py ``` import os import requests import requests_oauthlib ```...

dependencies
Python

**Describe the bug** I'm trying to pull the timeline for @Forbes from 2022-04-19 to 2022-05-19. The url I'm sending the requests to is as follows: "https://api.twitter.com/2/users/Forbes/tweets?max_results=100&start_time=2022-04-19T00:00:00Z&end_time=2022-05-19T00:00:00Z" The returned response is...

bug

Authorization flow here is very diffrent than the shown in the docs. I'm just making a note here.

documentation

**Describe the bug** Context - We would like to use Full Archive v2 search/all endpoint. We have a premium subscription. We do not have a standalone app. We have a...

bug