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

How do I post to Twitter using Unity3D? It always throws an error
Trying to use Twitter API but my code wont run anything
Can I determine the source of API generated tweets in my twitter account?
twitter API limiting tweets to one day, tweepy
How can i get the URL of a tweet?
How to properly “OR” word groups using Twitter's advanced search?
If condition doesn't trigger
Why are there sometimes 2 retweet_count fields in a tweet
Value registerAsTable is not a member of org.apache.spark.rdd.RDD[Tweet]
Downloading twitter data using Flume
Timeline with dynamic search query (Ionic)
oauth_token and oauth_token_secret in a jwt
Get coordinates from Tweet | Search api
I'm trying to use Logstash's twitter input, which utilizes this library to connect to the streaming API. I am getting Unauthorized error
How to be notified if twitter url length changes
Bootstrap 100% Height

Categories

HOME
cakephp
deployment
single-sign-on
layout
office365api
yarn
infragistics
jsrender
baqend
upload
gorm
windows-10-universal
caml
django-simple-history
after-effects
highlight.js
connection-string
oracle-coherence
shared-hosting
dbext
jtextfield
autocad-plugin
scriptcs
csrf-protection
captiveportal
linkerd
windows-error-reporting
maxmind
elasticsearch-ruby
delicious-api
bcd
twilio-api
data-manipulation
ioio
winrt-xaml-toolkit
framemaker
android-kernel
android-nestedscrollview
gammu
cloud-code
mpmediaquery
overriding
space-complexity
starteam
az-application-insights
uft-api
opshub
grid.mvc
core-plot
jsch
smartcontracts
youcompleteme
strptime
hls.js
aurelia-validation
tactic
font-size
knpmenubundle
cudafy.net
webdriverjs
sonarlint-vs
httplistener
etsy
xml-attribute
lttng
angstrom-linux
simplewebrtc
ubuntu-10.04
testng-dataprovider
whois
rvest
pagerank
unity-networking
execute
libressl
0xdbe
splash
p2
sorl-thumbnail
android-imagebutton
googlemock
zend-route
hippomocks
poller
didselectrowatindexpath
meteor-velocity
mysqltuner
jmapviewer
soundtouch
quartz-graphics
dataadapter
mqx
sabredav
broken-links
labwindows
tridion-worldserver
chrono
dotnethighcharts
punbb
transactionscope
doh
thunderbird-lightning
zend-tool
avatar
simpletest
document-conversion

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App