Questions tagged [twitter-api-v2]

231 questions
0
votes
2 answers

Tweepy (API V2) - Convert Response into dictionary

I want to get the information about the people followed by the Twitter account "POTUS" in a dictionary. My code: import tweepy, json client = tweepy.Client(bearer_token=x) id = client.get_user(username="POTUS").data.id users =…
tz883646
  • 1
  • 1
0
votes
1 answer

Twitter API Oauth2 issue getting Access Token

Following this guide: https://developer.twitter.com/en/docs/authentication/oauth-2-0/user-access-token. I am getting this error when making the POST oauth2/token at the step 3 request: ` { "errors": [ { "code": 99, …
ger
  • 35
  • 5
0
votes
0 answers

Why is academictwitteR not letting me get realDonaldTrump's tweets?

I am trying to get Donald Trump's tweets from February, 2020 to July 2020 using academictwitteR. However, it is not letting me get them even though the account has been restablished by Twitter a couple of days ago. I am trying two ways of getting…
0
votes
0 answers

Rule to stream retweeted tweets of specific users

I am currently listening from certain users by using these rules: 'value': 'from:user1 OR from:user2 OR ...' And as a result I get tweets, retweets and quotes of these users. But, I also need to stream all retweets that include tweets of these…
Shanazar
  • 54
  • 6
0
votes
0 answers

Why is a for loop causing an infinite loop in retrofit?

I'm using MutableLiveData for the backing field. I've tried everything but it will continue to make API calls and it never breaks out of the for loop. I'm not sure whether changing the immutable list value of MutableLiveData triggers this. …
0
votes
2 answers

API searchtweets-v2, unable to import gen_request_parameters

I'm using the version 2 searchtweets api for learning proposes. Following the documentation available here: https://pypi.org/project/searchtweets-v2/, I'm trying to run the following code: import json from datetime import date …
stehu
  • 27
  • 4
0
votes
1 answer

TwitterOAuth PHP for v2 of the API (with OAuth 2)

The documentation on TwitterOAuthAPI.com leaves quite a bit to be desired, to say the least. However, the software does appear to work with an elevated Twitter API Developer account, when used with the API Key and Secret, along with the Access…
Ginzorf
  • 769
  • 11
  • 19
0
votes
1 answer

How to obtain user's email via Twitter API v1 or v2?

There's no clear information about this, neither at Twitter developer portal either. How to obtain user's email via Twitter API OAuth v1 or v2? Is it possible at all nowadays? Assume that a user has been authenticated with a proper "scope"…
0
votes
0 answers

Twitter Preview for Link is not working while publishing status with Twitter API

when I publish a tweet with instagram-photo-url inside it, it does not creating preview for that link, am I missing something? I'm pretty sure the URL is correct. the tweet published by using api call the code how I publish it
Artz Now
  • 1
  • 1
0
votes
0 answers

Twitter API OAuth 403 Error - Authentication with unknown is forbidden

I signed up for the Twitter API yesterday and I've been trying to get it working using node.js and the twitter-api-v2 npm package. I am pretty sure I've used the correct configuration (0Auth 1), I've looked through the twitter developer portal and…
Mr_Happy
  • 65
  • 1
  • 12
0
votes
0 answers

How to give permission/authorization to the application trying to access my twitter account?

I have an application using developer account under Twitter to access Twitter API. I developed the application on C# using TweetInvi library. I successfully able to ask permission to authorize my application on behalf of the user. Now, my question…
Ann
  • 21
  • 5
0
votes
0 answers

Trouble filtering tweets based on location with API v2 with R

I am working on a research project that compares sentiment of news articles from popular news organizations to tweets in a specific state. The issue I am having is building a request following the API v2 guidelines. Specifically, I want to pull…
Connor
  • 1
  • 1
0
votes
1 answer

Retrieve viral tweets topic from Twitter API

I'm trying to retrieve viral tweets for an academic project using the Twitter API v2. There is a Topic on Twitter called "viral tweets" which is perfect for what I want. It has id 1284234742661963776 so my thoughts was to query using context…
d34n
  • 52
  • 1
  • 7
0
votes
1 answer

how to fix return variable is not working in express app

const express = require('express'); require('dotenv').config(); var Twit = require('twit'); const app = express(); app.use(express.urlencoded({extended: true})); app.set('view engine', 'ejs'); app.listen(4000); let api_key =…
0
votes
0 answers

Can spatie / laravel-twitter-streaming-api API listen for more than one string?

I am doing an integration of laravel and twitter using spatie/laravel-twitter-streaming-api and I wanted to listen for two possible strings but looking at the API script, it only listens for a single string …
user5898266
  • 355
  • 2
  • 6
  • 20