twitter


trying to access search from browser


I am trying to search users using my oauth_token and oauth_token_secret as presented on the app page on dev.twitter.com but I am getting
"Could not authenticate you."
The url I'm hitting with correct values:
https://api.twitter.com/1/users/search.json?q=foo&oauth_token=123&oauth_token_secret=abc
Here you are doing an authenticated request and it is the wrong way to authenticate it.
To do what you want, you can do something like this (here counting how many people use your app in the search) :
unsigned int nbTweets = 0;
Timeline tl = twitter.search("foo"); // http://search.twitter.com/search.json?q=foo
foreach (Tweet t in tl) {
// Retrieving the application used to write the tweet in the "source" field of the tweet
String tweetHTMLSource = t.source; // tweetHTMLSource == 'clientName'
String clientName = tweetHTMLSource.plainText; // clientName == "clientName"
if (clientName == "MYAPPLICATION_NAME") {
nbTweets++;
}
}

Related Links

Twitter API Notifications Timeline
How to use Firebase Twitter Authentication with React Native?
Is it possible to have authentication with Google, Yahoo and Twitter at the app using the standard Owin?
Getting original tweet-id and user-id from retweet-id
Android studio not fetching libs for my android twitter app
how to get stats for twitter ad campaign
How to set a Twitter account to automatically retweet another account?
Java -SpringSocial: Getting Twitter data between two dates
maximum no of twitter handles I can follow with a twitter API
Load More data by using HTTPURLConnection in java
Add a larger number of block users via one Twitter Api request
The twitter API seems to escape ampersand, <, > but nothing else?
Cannot upload chunked video to twitter
Twitter API - know if tweet has been sent
Meta tags jekyll
Twitter API : build query

Categories

HOME
yii2
date
ngrx
react-router
youtube-dl
google-oauth
c#-2.0
angular-ui-bootstrap
elasticsearch-hadoop
adobe-analytics
here-api
designer
transformation
facebook-page
propel
solaris-10
oxyplot
karma-jasmine
cx-freeze
google-search-api
core-text
crosstab
fish
pepper
selectedindexchanged
linkerd
primitive
r-raster
preg-match
data-manipulation
google-qpx-express-api
http-get
perlin-noise
uiswipegesturerecognizer
openoffice.org
environment-modules
restlet
adobe-premiere
hot-module-replacement
webix-treetable
uft-api
document.write
bootstrapper
tasker
jquery-validate
pnotify
datastax-startup
nativeapplication
namecoin
eventkit
specrun
vmware-tools
merge-conflict-resolution
fouc
embedded-code
splash
sailfish-os
iiviewdeckcontroller
key-management
system.reflection
dia
asp.net-web-api-odata
wordpress-theme-customize
java-metro-framework
castle
comexception
didselectrowatindexpath
mysqltuner
geos
qt-faststart
android-screen-support
sharp-repository
chuck
broken-links
dbproviderfactories
punbb
adk
fireworks
spyware
zpt
external-accessory
vdsp
genshi
floating
web-application-design
sproutcore-2
database-management
putchar
data-acquisition
django-notification
windows-live-messenger

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App