[twitter-dev] usage of xAuth

2010-07-20 Thread malavika
Hi,

We have a server which inturn interacts with multiple devices each of
which has our app running on them. Our server directly interacts with
twitter to post messages coming from all these devices. So can our
server use xAuth for authentication? I had this doubt because its been
mentioned in this link http://dev.twitter.com/pages/auth_overview that
xAuth is to be used for single user apps(mobile/desktop). Does this
mean that our server will be considered as a web app or something and
hence xAuth wont be supported?


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread M. Edward (Ed) Borasky

http://twitter.com/ModelSupplies ;-)
--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul Erdos


Quoting John Kalucki :


The trick is getting the 60k followers.


On Tue, Jul 20, 2010 at 2:42 PM, M. Edward (Ed) Borasky
 wrote:

Ah ... I thought he wanted 60K subscribers to each get an alert when one of
the people *they* were following tweeted. I suppose 60K users of a User
Streams application would put a worse strain on your infrastructure than one
Firehose connection, though. ;-)

I wasn't aware there was a "hard upper limit" on how many people a single
account could follow. I see quite a few people with tens of thousands of
followers that are following roughly the same number of people. So I assumed
that if you had 50K or 100K followers, you'd be allowed to follow them all
back if you chose to do so. Is that not correct?

--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul Erdos


Quoting John Kalucki :


We don't allow a single account to follow 60k users, so User Streams
isn't going to work.

-John


On Tue, Jul 20, 2010 at 12:22 PM, M. Edward (Ed) Borasky
 wrote:


Is this a server application (Software as a Service) or do you want this
to
run on a desktop? If you deployed it as a desktop application, you could
use
the User Streams capability. The nice thing about User Streams is that
you
get more than just messages when someone you're following tweets - you
get
many other events, and you can track by keyword and location as well.
--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul
Erdos


Quoting PBro :


Hi,

We are developing an application with which we want to give a message
to a user that one of his friends has posted a new tweet.
This application is expected to have 40-60 thousand users, so separate
api-call's isn't the best option.
What would you advise as best practice for retrieving new tweets of a
user's friends for this much users?

Patrick





















[twitter-dev] Problems Loading Profile Images

2010-07-20 Thread Ron
Anyone noticing problems loading profile images (slow, no image
returned, hanging...)?  Seems to show up mostly on Public and Search
endpoints.


[twitter-dev] Whitelist confirmation . . .

2010-07-20 Thread hkimscil
Hello, this is a followup message to the previous post at
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/36a11ab23b42f22/48c15312a2aab773?lnk=gst&q=hkimscil#48c15312a2aab773
.

I am not still getting a confirmation for whitelist; and beginning to
think that I may not be approved :( . And I am worried about not
clarifying enough about my research work to the twitter.

What I am trying to do is not builidn applications or services;
Rather, want to gather some data (tweets and retweets messages with
specific topics) in order to see how messages are diffused and how
they are possibly categorised or classified (if any, SEARCH API); and
how they are compared to agenda set by traditional mass media such as
newspapers and television. I am also interested in what kinds of
social relations exists in the message diffusion processes (REST
API).

I have setup about 20 computers in order to collect necessary data --
so that I don't have to use APIs for a long period of time. I have
setup the brief explanation about my research at
http://wiki.commres.org/Project~Twitter

I would appreciate if anyone shed a light on what I went wrong (if I
did while requesting) and give some advice on how to persuade the
twitter for putting me on the whitelist.


[twitter-dev] Re: A feed greater equivalent to the old gardenhose?

2010-07-20 Thread Sanjay
This is kind of a bummer.  I just recently started using the
gardenhose feed so comparing what is now available to what was
available at gardenhose launch really doesn't satisfy me (and I
suspect others).  I started to build around the 6-8k/minute stream and
this reduction to 2k/minute is definitely a hamper.  I suppose it's
just another challenge to develop around and I totally see your guys
issue with consuming a load of bandwidth as you stream this data to
developers without any compensation (as a side note, it'd be awesome
to see graphs of incoming and outgoing bandwidth utilization at
Twitter split up into pieces [streams, API, updates, etc.] - but then
that may be competitive info you don't want to share).

But with that, it would have been nice to have gotten a little heads
up about the impending reduction rather than an explanation after the
fact.  I know there are a lot of moving parts over there but as with
everything else Twitter does that impacts developers, a little notice
about changes would help all of us adapt more effectively to the
changing availability of data and connections.

Regardless, thanks for the effort and dialog.  If you guys are just
being held up by not having a new name for the feed, may I propose
renaming spritzer to drinking-straw and gardenhose to spray-faucet.
Then you can use spritzer for the next level and gardenhose for the
level just under firehose.  That's one problem solved. :-)

Sanjay


Re: [twitter-dev] Garbled http headers and XML payloads - addressed?

2010-07-20 Thread Matt Harris
Hi Jeffrey,

This was resolved at 23:45PST yesterday so you shouldn't have seen any
problems today.
If this is still happening for you can you give an example of the content
and headers you are receiving.

Thanks,
Matt

On Tue, Jul 20, 2010 at 4:12 PM, Jeffrey Greenberg <
jeffreygreenb...@gmail.com> wrote:

> Has this issue been addressed?
>
> We've seen a huge increase in the last 36 hours and it's affecting
> us... Just to say it we started seeing these once or twice a day since
> the world cup ended... And then this nasty spike...
>
> Jeffrey Greenberg
> Tweettronics.com
>



-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


[twitter-dev] YFrog/ImageShack and "invalid username or verification url" error

2010-07-20 Thread DWF
Anyone else seeing this?

We're implementing OAuth Echo for uploading photos. We've knocked down
Posterous & TwitPic with few issues.  So we know our signing is
working.

We now have an ImageShack API key and when we attempt to upload we get
this response:






There's one comment on their Google Group with someone else getting
this suddenly after having successful code for a while.

Thoughts?
--dwf


[twitter-dev] Garbled http headers and XML payloads - addressed?

2010-07-20 Thread Jeffrey Greenberg
Has this issue been addressed?

We've seen a huge increase in the last 36 hours and it's affecting
us... Just to say it we started seeing these once or twice a day since
the world cup ended... And then this nasty spike...

Jeffrey Greenberg
Tweettronics.com


[twitter-dev] Re: SSL Certificates renewal on Tuesday 20th July

2010-07-20 Thread themattharris
A quick update on this renewal process..

As the site only fully recovered this morning from the issues of
yesterday we postponed rolling out the new SSL certificates.
We now plan to make the SSL change at 5PM PDT (1AM GMT).

Best,
Matt

On Jul 19, 5:56 pm, themattharris  wrote:
> Hey developers,
>
> Many of you have noticed our SSL certificate for api.twitter.com will
> expire on 26th July 2010, with mobile.twitter.com and
> search.twitter.com soon after. We wanted to give you a heads up that
> tomorrow at 2PM PDT (10PM GMT) we plan to upgrade the SSL certificate
> on our servers. As our servers are load balanced we expect this to be
> unnoticeable to you and your users but, as we will need to restart the
> servers there is a chance a user may get a failed request.
>
> The certificate will be from the same vendor as before and be a
> wildcard certificate for *.twitter.com. The certificate will be valid
> for 2 years but could be changed or upgraded as the need requires.
> We'll let you know beforehand if we will be doing that.
>
> Best,
> Matt


Re: [twitter-dev] Re: Issues with OAuth

2010-07-20 Thread Matt Harris
Hey Kostya,

I've taken a quick look at your POST headers and noticed a couple of things:

1) Whilst it shouldn't matter the streaming API can be very particular about
the headers you send so I recommend you quote your OAuth values,
e.g. oauth_nonce="Rb34D3rVEetj"

2) Your OAuth token looks like a consumer token rather than a user one. Are
you authenticating against the streaming API using your user token and
secret?

Hope that helps,

Matt

On Tue, Jul 20, 2010 at 3:04 PM, Taylor Singletary <
taylorsinglet...@twitter.com> wrote:

> Hi Kostya,
>
> I'm unable to reproduce your issue, unfortunately. Are you still getting a
> 500 error when trying to connect to streaming via OAuth? Have you tried
> using a different access token or even API key? Does the same code/keys work
> against the REST API?
>
> Taylor
>
>
> On Tue, Jul 20, 2010 at 2:58 PM, Kostya Nikolayev wrote:
>
>> Taylor,
>>
>> Did the details I posted help to identify the issue?
>>
>> Thanks,
>> Kostya
>>
>> On Jul 20, 9:56 pm, ap  wrote:
>> > Looks like the oAuth access token issue is back! Started getting 500's
>> > from Twitter API a few minutes ago.
>> >
>> > On Jul 20, 11:38 am, Kostya Nikolayev  wrote:
>> >
>> > > Taylor!
>> >
>> > > This is what I'm sending:
>> >
>> > > POST /1/statuses/filter.json HTTP/1.1\r\nHost: stream.twitter.com\r
>> > > \nUser-Agent: TweetStream\r\nAuthorization: OAuth
>> > > oauth_nonce=0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU,
>> > > oauth_signature=rbGAlSp1VIbuXbk4Wr99jumyi5o%3D,
>> > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279640138,
>> > > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
>> > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0\r\nContent-type:
>> > > application/x-www-form-urlencoded\r\nContent-length: 13\r\n\r
>> > > \ntrack=twitter
>> >
>> > > Signature base string is:
>> >
>> > > POST&http%3A%2F%2Fstream.twitter.com%2F1%2Fstatuses
>> > > %2Ffilter.json&oauth_consumer_key%3D150423549-
>> > > eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn%26oauth_nonce
>> > >
>> %3D0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU%26oauth_signature_method
>> > > %3DHMAC-SHA1%26oauth_timestamp%3D1279640138%26oauth_token
>> > > %3DtnruTl8uNRwGvICnzYpww%26oauth_version%3D1.0%26track%3D
>> >
>> > > Thanks,
>> > > Kostya
>> >
>> > > On Jul 20, 6:18 pm, Taylor Singletary 
>> > > wrote:
>> >
>> > > > Hi Kostya,
>> >
>> > > > I'm able to connect to the streaming API over OAuth fine at the
>> moment.
>> >
>> > > > Can you share the full URL, HTTP method, and parameters that you are
>> trying
>> > > > to access? If possible, also your signature base string?
>> >
>> > > > Taylor
>> >
>> > > > On Tue, Jul 20, 2010 at 8:09 AM, Kostya Nikolayev <
>> kostya1...@gmail.com>wrote:
>> >
>> > > > > Taylor,
>> >
>> > > > > Has Sreaming API OAuth been affected ?
>> >
>> > > > > Authenticating with the following oauth header gives 500 to me:
>> > > > > "OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
>> > > > > oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
>> > > > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
>> > > > >
>> oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
>> > > > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"
>> >
>> > > > > Is it Streaming API OAuth issue?
>> >
>> > > > > Thanks,
>> > > > > Kostya
>> >
>> > > > > On Jul 19, 10:59 pm, Taylor Singletary <
>> taylorsinglet...@twitter.com>
>> > > > > wrote:
>> > > > > > Hi Ap,
>> >
>> > > > > > This is the right place for reporting issues like this -- well,
>> one of
>> > > > > the
>> > > > > > right places anyway -- we have some issues with OAuth today that
>> are
>> > > > > related
>> > > > > > to some wider issues related to updating objects associated with
>> users
>> > > > > (like
>> > > > > > access tokens).
>> >
>> > > > > > We hope to have this fixed soon!
>> >
>> > > > > > Thanks,
>> > > > > > Taylor
>> >
>> > > > > > On Mon, Jul 19, 2010 at 12:53 PM, ap 
>> wrote:
>> > > > > > > I've been experiencing OAuth issues with my app today. If I'm
>> already
>> > > > > > > logged into twitter, the OAuth redirects to my app just fine.
>> However,
>> > > > > > > if I have to land on the authentication page and enter my
>> username and
>> > > > > > > password and click submit, I get the following error:
>> >
>> > > > > > > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
>> > > > > > > TwitterException{message=500:Something is broken.  Please post
>> to the
>> > > > > > > group so the Twitter team can investigate.[Some HTML here],
>> > > > > > > statusCode=500, retryAfter=0, rateLimitStatus=null}
>> >
>> > > > > > > I'm not sure if this is the group that the message is asking
>> me to
>> > > > > > > post in, if not, please let me know the correct group to post
>> to so I
>> > > > > > > can get some assistance.
>> >
>> > > > > > > Thanks!
>> >
>> >
>>
>
>


-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread M. Edward (Ed) Borasky
Just give away something valuable to 59,999 for free and the other one  
will pay all the bills. ;-)

--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul Erdos


Quoting Fabien Penso :


On Tue, Jul 20, 2010 at 11:54 PM, John Kalucki  wrote:

The trick is getting the 60k followers.


The trick is getting 60k users ;)







Re: [twitter-dev] OAuth and Streaming API

2010-07-20 Thread Mark McBride
Kostya, the streaming API OAuth implementation should not have been
affected.  Are you still seeing these issues?  If so, can you send me
a message off list with connection details (the user making the
request, the app the access token belongs to, the URL requested, the
app being used)?

   ---Mark

http://twitter.com/mccv



On Tue, Jul 20, 2010 at 4:51 AM, Kostya Nikolayev  wrote:
> Is OAuth functioning for the Streeming API at the moment?
>
> I'm trying to make it work for the first time now and getting "HTTP/
> 1.1 500 Internal Server Error".
>
> Had it been working before yesterdays (2010-Jul-19) crisis?
>
> Had the crisis affected Streaming API?
>
> Has it been fixed for Streaming API?
>
> Thanks!
>


Re: [twitter-dev] Re: Issues with OAuth

2010-07-20 Thread Taylor Singletary
Hi Kostya,

I'm unable to reproduce your issue, unfortunately. Are you still getting a
500 error when trying to connect to streaming via OAuth? Have you tried
using a different access token or even API key? Does the same code/keys work
against the REST API?

Taylor

On Tue, Jul 20, 2010 at 2:58 PM, Kostya Nikolayev wrote:

> Taylor,
>
> Did the details I posted help to identify the issue?
>
> Thanks,
> Kostya
>
> On Jul 20, 9:56 pm, ap  wrote:
> > Looks like the oAuth access token issue is back! Started getting 500's
> > from Twitter API a few minutes ago.
> >
> > On Jul 20, 11:38 am, Kostya Nikolayev  wrote:
> >
> > > Taylor!
> >
> > > This is what I'm sending:
> >
> > > POST /1/statuses/filter.json HTTP/1.1\r\nHost: stream.twitter.com\r
> > > \nUser-Agent: TweetStream\r\nAuthorization: OAuth
> > > oauth_nonce=0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU,
> > > oauth_signature=rbGAlSp1VIbuXbk4Wr99jumyi5o%3D,
> > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279640138,
> > > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0\r\nContent-type:
> > > application/x-www-form-urlencoded\r\nContent-length: 13\r\n\r
> > > \ntrack=twitter
> >
> > > Signature base string is:
> >
> > > POST&http%3A%2F%2Fstream.twitter.com%2F1%2Fstatuses
> > > %2Ffilter.json&oauth_consumer_key%3D150423549-
> > > eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn%26oauth_nonce
> > > %3D0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU%26oauth_signature_method
> > > %3DHMAC-SHA1%26oauth_timestamp%3D1279640138%26oauth_token
> > > %3DtnruTl8uNRwGvICnzYpww%26oauth_version%3D1.0%26track%3D
> >
> > > Thanks,
> > > Kostya
> >
> > > On Jul 20, 6:18 pm, Taylor Singletary 
> > > wrote:
> >
> > > > Hi Kostya,
> >
> > > > I'm able to connect to the streaming API over OAuth fine at the
> moment.
> >
> > > > Can you share the full URL, HTTP method, and parameters that you are
> trying
> > > > to access? If possible, also your signature base string?
> >
> > > > Taylor
> >
> > > > On Tue, Jul 20, 2010 at 8:09 AM, Kostya Nikolayev <
> kostya1...@gmail.com>wrote:
> >
> > > > > Taylor,
> >
> > > > > Has Sreaming API OAuth been affected ?
> >
> > > > > Authenticating with the following oauth header gives 500 to me:
> > > > > "OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
> > > > > oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
> > > > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
> > > > >
> oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > > > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"
> >
> > > > > Is it Streaming API OAuth issue?
> >
> > > > > Thanks,
> > > > > Kostya
> >
> > > > > On Jul 19, 10:59 pm, Taylor Singletary <
> taylorsinglet...@twitter.com>
> > > > > wrote:
> > > > > > Hi Ap,
> >
> > > > > > This is the right place for reporting issues like this -- well,
> one of
> > > > > the
> > > > > > right places anyway -- we have some issues with OAuth today that
> are
> > > > > related
> > > > > > to some wider issues related to updating objects associated with
> users
> > > > > (like
> > > > > > access tokens).
> >
> > > > > > We hope to have this fixed soon!
> >
> > > > > > Thanks,
> > > > > > Taylor
> >
> > > > > > On Mon, Jul 19, 2010 at 12:53 PM, ap 
> wrote:
> > > > > > > I've been experiencing OAuth issues with my app today. If I'm
> already
> > > > > > > logged into twitter, the OAuth redirects to my app just fine.
> However,
> > > > > > > if I have to land on the authentication page and enter my
> username and
> > > > > > > password and click submit, I get the following error:
> >
> > > > > > > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
> > > > > > > TwitterException{message=500:Something is broken.  Please post
> to the
> > > > > > > group so the Twitter team can investigate.[Some HTML here],
> > > > > > > statusCode=500, retryAfter=0, rateLimitStatus=null}
> >
> > > > > > > I'm not sure if this is the group that the message is asking me
> to
> > > > > > > post in, if not, please let me know the correct group to post
> to so I
> > > > > > > can get some assistance.
> >
> > > > > > > Thanks!
> >
> >
>


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread Fabien Penso
On Tue, Jul 20, 2010 at 11:54 PM, John Kalucki  wrote:
> The trick is getting the 60k followers.

The trick is getting 60k users ;)


[twitter-dev] Re: Issues with OAuth

2010-07-20 Thread Kostya Nikolayev
Taylor,

Did the details I posted help to identify the issue?

Thanks,
Kostya

On Jul 20, 9:56 pm, ap  wrote:
> Looks like the oAuth access token issue is back! Started getting 500's
> from Twitter API a few minutes ago.
>
> On Jul 20, 11:38 am, Kostya Nikolayev  wrote:
>
> > Taylor!
>
> > This is what I'm sending:
>
> > POST /1/statuses/filter.json HTTP/1.1\r\nHost: stream.twitter.com\r
> > \nUser-Agent: TweetStream\r\nAuthorization: OAuth
> > oauth_nonce=0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU,
> > oauth_signature=rbGAlSp1VIbuXbk4Wr99jumyi5o%3D,
> > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279640138,
> > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0\r\nContent-type:
> > application/x-www-form-urlencoded\r\nContent-length: 13\r\n\r
> > \ntrack=twitter
>
> > Signature base string is:
>
> > POST&http%3A%2F%2Fstream.twitter.com%2F1%2Fstatuses
> > %2Ffilter.json&oauth_consumer_key%3D150423549-
> > eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn%26oauth_nonce
> > %3D0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU%26oauth_signature_method
> > %3DHMAC-SHA1%26oauth_timestamp%3D1279640138%26oauth_token
> > %3DtnruTl8uNRwGvICnzYpww%26oauth_version%3D1.0%26track%3D
>
> > Thanks,
> > Kostya
>
> > On Jul 20, 6:18 pm, Taylor Singletary 
> > wrote:
>
> > > Hi Kostya,
>
> > > I'm able to connect to the streaming API over OAuth fine at the moment.
>
> > > Can you share the full URL, HTTP method, and parameters that you are 
> > > trying
> > > to access? If possible, also your signature base string?
>
> > > Taylor
>
> > > On Tue, Jul 20, 2010 at 8:09 AM, Kostya Nikolayev 
> > > wrote:
>
> > > > Taylor,
>
> > > > Has Sreaming API OAuth been affected ?
>
> > > > Authenticating with the following oauth header gives 500 to me:
> > > > "OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
> > > > oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
> > > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
> > > > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"
>
> > > > Is it Streaming API OAuth issue?
>
> > > > Thanks,
> > > > Kostya
>
> > > > On Jul 19, 10:59 pm, Taylor Singletary 
> > > > wrote:
> > > > > Hi Ap,
>
> > > > > This is the right place for reporting issues like this -- well, one of
> > > > the
> > > > > right places anyway -- we have some issues with OAuth today that are
> > > > related
> > > > > to some wider issues related to updating objects associated with users
> > > > (like
> > > > > access tokens).
>
> > > > > We hope to have this fixed soon!
>
> > > > > Thanks,
> > > > > Taylor
>
> > > > > On Mon, Jul 19, 2010 at 12:53 PM, ap  wrote:
> > > > > > I've been experiencing OAuth issues with my app today. If I'm 
> > > > > > already
> > > > > > logged into twitter, the OAuth redirects to my app just fine. 
> > > > > > However,
> > > > > > if I have to land on the authentication page and enter my username 
> > > > > > and
> > > > > > password and click submit, I get the following error:
>
> > > > > > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
> > > > > > TwitterException{message=500:Something is broken.  Please post to 
> > > > > > the
> > > > > > group so the Twitter team can investigate.[Some HTML here],
> > > > > > statusCode=500, retryAfter=0, rateLimitStatus=null}
>
> > > > > > I'm not sure if this is the group that the message is asking me to
> > > > > > post in, if not, please let me know the correct group to post to so 
> > > > > > I
> > > > > > can get some assistance.
>
> > > > > > Thanks!
>
>


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread John Kalucki
The trick is getting the 60k followers.


On Tue, Jul 20, 2010 at 2:42 PM, M. Edward (Ed) Borasky
 wrote:
> Ah ... I thought he wanted 60K subscribers to each get an alert when one of
> the people *they* were following tweeted. I suppose 60K users of a User
> Streams application would put a worse strain on your infrastructure than one
> Firehose connection, though. ;-)
>
> I wasn't aware there was a "hard upper limit" on how many people a single
> account could follow. I see quite a few people with tens of thousands of
> followers that are following roughly the same number of people. So I assumed
> that if you had 50K or 100K followers, you'd be allowed to follow them all
> back if you chose to do so. Is that not correct?
>
> --
> M. Edward (Ed) Borasky
> http://borasky-research.net http://twitter.com/znmeb
>
> "A mathematician is a device for turning coffee into theorems." - Paul Erdos
>
>
> Quoting John Kalucki :
>
>> We don't allow a single account to follow 60k users, so User Streams
>> isn't going to work.
>>
>> -John
>>
>>
>> On Tue, Jul 20, 2010 at 12:22 PM, M. Edward (Ed) Borasky
>>  wrote:
>>>
>>> Is this a server application (Software as a Service) or do you want this
>>> to
>>> run on a desktop? If you deployed it as a desktop application, you could
>>> use
>>> the User Streams capability. The nice thing about User Streams is that
>>> you
>>> get more than just messages when someone you're following tweets - you
>>> get
>>> many other events, and you can track by keyword and location as well.
>>> --
>>> M. Edward (Ed) Borasky
>>> http://borasky-research.net http://twitter.com/znmeb
>>>
>>> "A mathematician is a device for turning coffee into theorems." - Paul
>>> Erdos
>>>
>>>
>>> Quoting PBro :
>>>
 Hi,

 We are developing an application with which we want to give a message
 to a user that one of his friends has posted a new tweet.
 This application is expected to have 40-60 thousand users, so separate
 api-call's isn't the best option.
 What would you advise as best practice for retrieving new tweets of a
 user's friends for this much users?

 Patrick

>>>
>>>
>>>
>>>
>>
>
>
>
>


Re: [twitter-dev] Re: create a new app

2010-07-20 Thread Taylor Singletary
This issue should be resolved now -- app creation and editing should work
fine for you now. Do let us know if you continue to see the issue.

Thanks!

On Tue, Jul 20, 2010 at 11:49 AM, Tara  wrote:

> I've been getting this error when I try to save changes to an existing
> app, too.
>


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread M. Edward (Ed) Borasky
Ah ... I thought he wanted 60K subscribers to each get an alert when  
one of the people *they* were following tweeted. I suppose 60K users  
of a User Streams application would put a worse strain on your  
infrastructure than one Firehose connection, though. ;-)


I wasn't aware there was a "hard upper limit" on how many people a  
single account could follow. I see quite a few people with tens of  
thousands of followers that are following roughly the same number of  
people. So I assumed that if you had 50K or 100K followers, you'd be  
allowed to follow them all back if you chose to do so. Is that not  
correct?


--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul Erdos


Quoting John Kalucki :


We don't allow a single account to follow 60k users, so User Streams
isn't going to work.

-John


On Tue, Jul 20, 2010 at 12:22 PM, M. Edward (Ed) Borasky
 wrote:

Is this a server application (Software as a Service) or do you want this to
run on a desktop? If you deployed it as a desktop application, you could use
the User Streams capability. The nice thing about User Streams is that you
get more than just messages when someone you're following tweets - you get
many other events, and you can track by keyword and location as well.
--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul Erdos


Quoting PBro :


Hi,

We are developing an application with which we want to give a message
to a user that one of his friends has posted a new tweet.
This application is expected to have 40-60 thousand users, so separate
api-call's isn't the best option.
What would you advise as best practice for retrieving new tweets of a
user's friends for this much users?

Patrick














Re: [twitter-dev] Access personal Twitter direct messages from PHP script

2010-07-20 Thread Taylor Singletary
Hi Khachik,

For single-user applications like this, we've made it particularly easy to
retrieve an access token for your own account -- on
dev.twitter.com/appsjust navigate to the details page of your
application and select the "My
Token" button on the right-hand sidebar. This will provide you an access
token and access token secret which you can then hard code into your
application.

Additionally, we have some helpful code samples for working with the Twitter
API from the starting point of already having an access token here:
http://bit.ly/1token

By going this route, you'll only have to implement the signing part of the
OAuth spec rather than the entire token exchange/acquisition flow.

Taylor

On Tue, Jul 20, 2010 at 2:12 PM, Khachik Kemuschian  wrote:

> Hello,
>
> I'm a newbie using Twitter API and I need to write a PHP script, which
> will deal with direct messages (read and create new messages) at my
> own Twitter account. No authorization required for other users - only
> access to my own account. I checked API docs as well as oAuth
> implementations in PHP, but they seems to be a bit complex for my
> understanding
>
> Is there a simple way to access personal direct messages from PHP app
> (preferably without redirecting to the Twitter site to enter the
> password)?
>
> Any example or link will be appreciated.
>
> Thank you in advance!
>


[twitter-dev] Access personal Twitter direct messages from PHP script

2010-07-20 Thread Khachik Kemuschian
Hello,

I'm a newbie using Twitter API and I need to write a PHP script, which
will deal with direct messages (read and create new messages) at my
own Twitter account. No authorization required for other users - only
access to my own account. I checked API docs as well as oAuth
implementations in PHP, but they seems to be a bit complex for my
understanding

Is there a simple way to access personal direct messages from PHP app
(preferably without redirecting to the Twitter site to enter the
password)?

Any example or link will be appreciated.

Thank you in advance!


[twitter-dev] Re: Issues with OAuth

2010-07-20 Thread ap
Taylor,

Looks like things are back to normal now.

Thanks!

On Jul 20, 4:59 pm, Taylor Singletary 
wrote:
> We may have had a hiccup period as we finished correcting last night's
> remaining issues. Are you still seeing the 500s?
>
> On Tue, Jul 20, 2010 at 11:56 AM, ap  wrote:
> > Looks like the oAuth access token issue is back! Started getting 500's
> > from Twitter API a few minutes ago.
>
> > On Jul 20, 11:38 am, Kostya Nikolayev  wrote:
> > > Taylor!
>
> > > This is what I'm sending:
>
> > > POST /1/statuses/filter.json HTTP/1.1\r\nHost: stream.twitter.com\r
> > > \nUser-Agent: TweetStream\r\nAuthorization: OAuth
> > > oauth_nonce=0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU,
> > > oauth_signature=rbGAlSp1VIbuXbk4Wr99jumyi5o%3D,
> > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279640138,
> > > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0\r\nContent-type:
> > > application/x-www-form-urlencoded\r\nContent-length: 13\r\n\r
> > > \ntrack=twitter
>
> > > Signature base string is:
>
> > > POST&http%3A%2F%2Fstream.twitter.com%2F1%2Fstatuses
> > > %2Ffilter.json&oauth_consumer_key%3D150423549-
> > > eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn%26oauth_nonce
> > > %3D0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU%26oauth_signature_method
> > > %3DHMAC-SHA1%26oauth_timestamp%3D1279640138%26oauth_token
> > > %3DtnruTl8uNRwGvICnzYpww%26oauth_version%3D1.0%26track%3D
>
> > > Thanks,
> > > Kostya
>
> > > On Jul 20, 6:18 pm, Taylor Singletary 
> > > wrote:
>
> > > > Hi Kostya,
>
> > > > I'm able to connect to the streaming API over OAuth fine at the moment.
>
> > > > Can you share the full URL, HTTP method, and parameters that you are
> > trying
> > > > to access? If possible, also your signature base string?
>
> > > > Taylor
>
> > > > On Tue, Jul 20, 2010 at 8:09 AM, Kostya Nikolayev <
> > kostya1...@gmail.com>wrote:
>
> > > > > Taylor,
>
> > > > > Has Sreaming API OAuth been affected ?
>
> > > > > Authenticating with the following oauth header gives 500 to me:
> > > > > "OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
> > > > > oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
> > > > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
>
> > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > > > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"
>
> > > > > Is it Streaming API OAuth issue?
>
> > > > > Thanks,
> > > > > Kostya
>
> > > > > On Jul 19, 10:59 pm, Taylor Singletary 
> > > > > wrote:
> > > > > > Hi Ap,
>
> > > > > > This is the right place for reporting issues like this -- well, one
> > of
> > > > > the
> > > > > > right places anyway -- we have some issues with OAuth today that
> > are
> > > > > related
> > > > > > to some wider issues related to updating objects associated with
> > users
> > > > > (like
> > > > > > access tokens).
>
> > > > > > We hope to have this fixed soon!
>
> > > > > > Thanks,
> > > > > > Taylor
>
> > > > > > On Mon, Jul 19, 2010 at 12:53 PM, ap 
> > wrote:
> > > > > > > I've been experiencing OAuth issues with my app today. If I'm
> > already
> > > > > > > logged into twitter, the OAuth redirects to my app just fine.
> > However,
> > > > > > > if I have to land on the authentication page and enter my
> > username and
> > > > > > > password and click submit, I get the following error:
>
> > > > > > > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
> > > > > > > TwitterException{message=500:Something is broken.  Please post to
> > the
> > > > > > > group so the Twitter team can investigate.[Some HTML here],
> > > > > > > statusCode=500, retryAfter=0, rateLimitStatus=null}
>
> > > > > > > I'm not sure if this is the group that the message is asking me
> > to
> > > > > > > post in, if not, please let me know the correct group to post to
> > so I
> > > > > > > can get some assistance.
>
> > > > > > > Thanks!


Re: [twitter-dev] Re: Issues with OAuth

2010-07-20 Thread Taylor Singletary
We may have had a hiccup period as we finished correcting last night's
remaining issues. Are you still seeing the 500s?

On Tue, Jul 20, 2010 at 11:56 AM, ap  wrote:

> Looks like the oAuth access token issue is back! Started getting 500's
> from Twitter API a few minutes ago.
>
> On Jul 20, 11:38 am, Kostya Nikolayev  wrote:
> > Taylor!
> >
> > This is what I'm sending:
> >
> > POST /1/statuses/filter.json HTTP/1.1\r\nHost: stream.twitter.com\r
> > \nUser-Agent: TweetStream\r\nAuthorization: OAuth
> > oauth_nonce=0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU,
> > oauth_signature=rbGAlSp1VIbuXbk4Wr99jumyi5o%3D,
> > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279640138,
> > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0\r\nContent-type:
> > application/x-www-form-urlencoded\r\nContent-length: 13\r\n\r
> > \ntrack=twitter
> >
> > Signature base string is:
> >
> > POST&http%3A%2F%2Fstream.twitter.com%2F1%2Fstatuses
> > %2Ffilter.json&oauth_consumer_key%3D150423549-
> > eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn%26oauth_nonce
> > %3D0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU%26oauth_signature_method
> > %3DHMAC-SHA1%26oauth_timestamp%3D1279640138%26oauth_token
> > %3DtnruTl8uNRwGvICnzYpww%26oauth_version%3D1.0%26track%3D
> >
> > Thanks,
> > Kostya
> >
> > On Jul 20, 6:18 pm, Taylor Singletary 
> > wrote:
> >
> > > Hi Kostya,
> >
> > > I'm able to connect to the streaming API over OAuth fine at the moment.
> >
> > > Can you share the full URL, HTTP method, and parameters that you are
> trying
> > > to access? If possible, also your signature base string?
> >
> > > Taylor
> >
> > > On Tue, Jul 20, 2010 at 8:09 AM, Kostya Nikolayev <
> kostya1...@gmail.com>wrote:
> >
> > > > Taylor,
> >
> > > > Has Sreaming API OAuth been affected ?
> >
> > > > Authenticating with the following oauth header gives 500 to me:
> > > > "OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
> > > > oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
> > > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
> > > >
> oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"
> >
> > > > Is it Streaming API OAuth issue?
> >
> > > > Thanks,
> > > > Kostya
> >
> > > > On Jul 19, 10:59 pm, Taylor Singletary  >
> > > > wrote:
> > > > > Hi Ap,
> >
> > > > > This is the right place for reporting issues like this -- well, one
> of
> > > > the
> > > > > right places anyway -- we have some issues with OAuth today that
> are
> > > > related
> > > > > to some wider issues related to updating objects associated with
> users
> > > > (like
> > > > > access tokens).
> >
> > > > > We hope to have this fixed soon!
> >
> > > > > Thanks,
> > > > > Taylor
> >
> > > > > On Mon, Jul 19, 2010 at 12:53 PM, ap 
> wrote:
> > > > > > I've been experiencing OAuth issues with my app today. If I'm
> already
> > > > > > logged into twitter, the OAuth redirects to my app just fine.
> However,
> > > > > > if I have to land on the authentication page and enter my
> username and
> > > > > > password and click submit, I get the following error:
> >
> > > > > > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
> > > > > > TwitterException{message=500:Something is broken.  Please post to
> the
> > > > > > group so the Twitter team can investigate.[Some HTML here],
> > > > > > statusCode=500, retryAfter=0, rateLimitStatus=null}
> >
> > > > > > I'm not sure if this is the group that the message is asking me
> to
> > > > > > post in, if not, please let me know the correct group to post to
> so I
> > > > > > can get some assistance.
> >
> > > > > > Thanks!
>


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread John Kalucki
We don't allow a single account to follow 60k users, so User Streams
isn't going to work.

-John


On Tue, Jul 20, 2010 at 12:22 PM, M. Edward (Ed) Borasky
 wrote:
> Is this a server application (Software as a Service) or do you want this to
> run on a desktop? If you deployed it as a desktop application, you could use
> the User Streams capability. The nice thing about User Streams is that you
> get more than just messages when someone you're following tweets - you get
> many other events, and you can track by keyword and location as well.
> --
> M. Edward (Ed) Borasky
> http://borasky-research.net http://twitter.com/znmeb
>
> "A mathematician is a device for turning coffee into theorems." - Paul Erdos
>
>
> Quoting PBro :
>
>> Hi,
>>
>> We are developing an application with which we want to give a message
>> to a user that one of his friends has posted a new tweet.
>> This application is expected to have 40-60 thousand users, so separate
>> api-call's isn't the best option.
>> What would you advise as best practice for retrieving new tweets of a
>> user's friends for this much users?
>>
>> Patrick
>>
>
>
>
>


Re: [twitter-dev] Re: A feed greater equivalent to the old gardenhose?

2010-07-20 Thread John Kalucki
It's ~1% and ~5%, for some meaning of percent that doesn't mean
exactly percent. The algorithm is documented on dev.twitter.com,
although the values are stale.

Please note that at least a year ago, I wrote:

Sampling proportions are subject to continuous unannounced refinement.
Our goal is to provide useful low-latency samples without overwhelming
clients or incurring excessive delivery cost. In particular, we
reserve the right to alter the sampling proportion as overall traffic
grows to keep the sampled feeds practical.

-John Kalucki
http://twitter.com/jkalucki
Infrastructure, Twitter Inc.



On Tue, Jul 20, 2010 at 12:30 PM, M. Edward (Ed) Borasky
 wrote:
>
> Spritzer is now 1% (was 5%). Is Gardenhose now 3% (was 15%)??
>
> --
> M. Edward (Ed) Borasky
> http://borasky-research.net http://twitter.com/znmeb
>
> "A mathematician is a device for turning coffee into theorems." - Paul Erdos
>
>
> Quoting John Kalucki :
>
>> Brian is correct. There are only two sampled rates on the Streaming API:
>> Spritzer and Gardenhose. There are no other sampled rates available without
>> a code change. We're having discussions about these sampled feeds, but the
>> current settings are the maximum that we can provide at the moment. Note
>> that even at this reduced setting, the Gardenhose is several times larger in
>> absolute volume than it was at launch.
>>
>> -John Kalucki
>> http://twitter.com/jkalucki
>> Infrastructure, Twitter Inc.
>>
>>
>> On Tue, Jul 20, 2010 at 1:11 AM, Tweetcepts  wrote:
>>
>>> I was just told by Brian Sutorius that in fact it's not possible to
>>> acquire a feed equal to the old gardenhose (let's say roughly 15%).
>>> That the only choices are either the now weaker gardenhose or the full
>>> firehose.
>>>
>>> Is there someone at Twitter that can confirm either way?
>>>
>>>
>>>
>>> On Jul 16, 10:20 am, Taylor Singletary 
>>> wrote:
>>> > You can request greater levels of Streaming access by sending a message
>>> to
>>> > a...@twitter.com from the email address associated with your Twitter
>>> account.
>>> > It's best to describe in detail how you'll use the data (sampling,
>>> keyword
>>> > tracking, geo, and the number of variables and rates you're looking to
>>> > employ), as well as the benefits it brings to users and background
>>> > information about your organization and products.
>>> >
>>> > Thanks,
>>> > Taylor
>>> >
>>> >
>>> >
>>> > On Fri, Jul 16, 2010 at 7:07 AM, Sanjay  wrote:
>>> > > Just saw the posting about the reduction in the gardenhose (and
>>> > > sprtizer) feeds (http://t.co/d6o1npx).  So for those of us who need
>>> > > the additional data and are designed around it (and can consume it),
>>> > > is there a way to get that level of feed back?  For me in particular
>>> > > this is going to significantly hamper the app that I'm working on and
>>> > > was looking to launch in a few weeks.
>>> >
>>> > > Help...?
>>> >
>>> > > Sanjay
>>>
>>
>
>
>


Re: [twitter-dev] Method statuses/filter from Streaming API return only incoming tweets and no updates

2010-07-20 Thread Pascal Jürgens
Hello Rostand,

I did my master's thesis using twitter data. My recommendation:

- You can not will not and should not get DMs. They are *private*. Even if you 
do a closed study with 300 consenting people, it's unethical. If you're in the 
US, the ethics committee of your university will have you for lunch.

- Using the stream is easier because the API requires OAUTH, but you will need 
to apply and wait. However, the API will give you historical data.

- Coding your software will take more time than you think!

---
SUMMARY

Use an external service instead! There are several people who can collect 
tweets for you. Have a look at:

http://140kit.com/
http://www.contextminer.org/

Good luck!

Pascal

On 20.Jul2010, at 21:49, Rostand wrote:

> Hi All,
> 
> I need for master research project  the public timeline of approx 300
> users.
> 
> That is, all the outgoing messages (updates, retweets.., DM) + all
> incoming messages (replies, @user...).
> 
> I first thought that the option 'follow' from the Streaming API
> following will do.
> 
> http://stream.twitter.com/1/statuses/filter.json?follow=3004231
> 
> But I just discovered that I get only the incoming tweets and not the
> outgoing ones.
> 
> Is this correct? Any workaround this ? Suggestion
> 
> It is king of urgent. Any quick reaction will be appreciated
> 
> Greetings
> 
> Rostand



Re: [twitter-dev] Method statuses/filter from Streaming API return only incoming tweets and no updates

2010-07-20 Thread John Kalucki
Without an authentication token for a user, there's no way to get their DMs
and other private and protected information. Follow gives you tweets and
retweets by those users, not tweets bound for those user's timelines. You
can use track to find mentions, including replies.

-John Kalucki
http://twitter.com/jkalucki
Infrastructure Twitter, Inc.




On Tue, Jul 20, 2010 at 12:49 PM, Rostand
wrote:

> Hi All,
>
> I need for master research project  the public timeline of approx 300
> users.
>
> That is, all the outgoing messages (updates, retweets.., DM) + all
> incoming messages (replies, @user...).
>
> I first thought that the option 'follow' from the Streaming API
> following will do.
>
> http://stream.twitter.com/1/statuses/filter.json?follow=3004231
>
> But I just discovered that I get only the incoming tweets and not the
> outgoing ones.
>
> Is this correct? Any workaround this ? Suggestion
>
> It is king of urgent. Any quick reaction will be appreciated
>
> Greetings
>
> Rostand
>


[twitter-dev] Simple oAuth php cURL token_request example not working

2010-07-20 Thread Derrick
The code below simply gives me "Failed to validate oauth signature and
token" : really battling to spot the problem here.

// Set url
$url = "http://api.twitter.com/oauth/request_token";;

// Params to pass to twitter and create signature
$params['oauth_callback'] = "http://localhost/twitter/tweet/";;
$params['oauth_consumer_key'] = $this->consumerKey;
$params['oauth_nonce'] = SHA1(time());
$params['oauth_timestamp'] = time();
$params['oauth_signature_method'] = $this->signatureMethod;
$params['oauth_version'] = $this->version;
ksort($params);

// Signing
// Concatenating
$concatenatedParams = '';
foreach($params as $k => $v)
{
  $k = urlencode($k);
  $v = urlencode($v);
  $concatenatedParams .= "{$k}={$v}&";
}
$concatenatedParams = urlencode(substr($concatenatedParams,
0,-1));

$signatureBaseString = "POST&".urlencode($url)."&".
$concatenatedParams;
$params['oauth_signature'] =
base64_encode( hash_hmac('sha1', $signatureBaseString, $this-
>secret."&", true) );


// Do cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
$exec = curl_exec ($ch);
$info = curl_getinfo($ch);
curl_close ($ch);

print $exec;


[twitter-dev] Method statuses/filter from Streaming API return only incoming tweets and no updates

2010-07-20 Thread Rostand
Hi All,

I need for master research project  the public timeline of approx 300
users.

That is, all the outgoing messages (updates, retweets.., DM) + all
incoming messages (replies, @user...).

I first thought that the option 'follow' from the Streaming API
following will do.

http://stream.twitter.com/1/statuses/filter.json?follow=3004231

But I just discovered that I get only the incoming tweets and not the
outgoing ones.

Is this correct? Any workaround this ? Suggestion

It is king of urgent. Any quick reaction will be appreciated

Greetings

Rostand


[twitter-dev] Re: Twitter OAuth Problem

2010-07-20 Thread Gabe
Actually I was able to turn the switch on and also make these changes.
Neither fixed the problem. Still getting the 401 error. I know OAuth
has been down today but it is working at least for now.

On Jul 20, 2:57 pm, Elmseeker  wrote:
> in twitteroauth.php you will find 4 lines
>
> function accessTokenURL()  { return 'https://api.twitter.com/oauth/
> access_token'; }
> function authenticateURL() { return 'https://twitter.com/oauth/
> authenticate'; }
> function authorizeURL()    { return 'https://twitter.com/oauth/
> authorize'; }
> function requestTokenURL() { return 'https://api.twitter.com/oauth/
> request_token'; }
>
> the 2 in the middle need to be changed to:
>
> function authenticateURL() { return 'https://api.twitter.com/oauth/
> authenticate'; }
> function authorizeURL()    { return 'https://api.twitter.com/oauth/
> authorize'; }
>
> hope this helps.
>
> On Jul 20, 11:02 am, Gabe  wrote:
>
>
>
> > Hi,
>
> > I have been using Abraham's OAuth library and I *almost* have it
> > working. I'm a longtime C++ developer but new to Twitter API.  Anyway,
> > it took me a while to use the callback.php file as the actual call
> > back. That (I thought) was the missing element, I was under the
> > impression that the "test.php" file in his library could be
> > substituted for the callback.  Anyway when I realized the mistake I
> > was happy to implement the new code.  The new callback is being called
> > but I am consistently getting HTTP Error Code 401 (unauthorized) when
> > it is being used, and I am using it basically "as is". Any insight
> > would be appreciated.
>
> > Note - I did regenerate my application registration recently - how
> > long does it take for those credentials to be usable?
>
> > Thanks much.
>
> > -Gabe


Re: [twitter-dev] Re: Twitter OAuth Problem

2010-07-20 Thread Taylor Singletary
We've got a somewhat confusing setup right now in this area, admittedly.

For most purposes, the twitter.com app registration area should be thought
of as deprecated. Though that area doesn't display the correct paths for
OAuth operations, assume that you should be using the api subdomain.

As for the setting for "Sign in with Twitter" -- we managed to not provide
that toggle on the dev.twitter.com app registration setup -- you can
re-enable it on the (deprecated) twitter.com app area.

Way less than optimal, but it's the way it is at the moment.

Issues with saving/creating apps should be just about resolved now as well.

Taylor


On Tue, Jul 20, 2010 at 12:22 PM, Gabe  wrote:

> I did notice something odd about that. My app page on Twitter says the
> opposite tho - to remove the "api.". I will try your suggestion and
> thanks!!
>
> On Jul 20, 2:57 pm, Elmseeker  wrote:
> > in twitteroauth.php you will find 4 lines
> >
> > function accessTokenURL()  { return 'https://api.twitter.com/oauth/
> > access_token'; }
> > function authenticateURL() { return 'https://twitter.com/oauth/
> > authenticate'; }
> > function authorizeURL(){ return 'https://twitter.com/oauth/
> > authorize'; }
> > function requestTokenURL() { return 'https://api.twitter.com/oauth/
> > request_token'; }
> >
> > the 2 in the middle need to be changed to:
> >
> > function authenticateURL() { return 'https://api.twitter.com/oauth/
> > authenticate'; }
> > function authorizeURL(){ return 'https://api.twitter.com/oauth/
> > authorize'; }
> >
> > hope this helps.
> >
> > On Jul 20, 11:02 am, Gabe  wrote:
> >
> >
> >
> > > Hi,
> >
> > > I have been using Abraham's OAuth library and I *almost* have it
> > > working. I'm a longtime C++ developer but new to Twitter API.  Anyway,
> > > it took me a while to use the callback.php file as the actual call
> > > back. That (I thought) was the missing element, I was under the
> > > impression that the "test.php" file in his library could be
> > > substituted for the callback.  Anyway when I realized the mistake I
> > > was happy to implement the new code.  The new callback is being called
> > > but I am consistently getting HTTP Error Code 401 (unauthorized) when
> > > it is being used, and I am using it basically "as is". Any insight
> > > would be appreciated.
> >
> > > Note - I did regenerate my application registration recently - how
> > > long does it take for those credentials to be usable?
> >
> > > Thanks much.
> >
> > > -Gabe
>


Re: [twitter-dev] Re: A feed greater equivalent to the old gardenhose?

2010-07-20 Thread M. Edward (Ed) Borasky

Spritzer is now 1% (was 5%). Is Gardenhose now 3% (was 15%)??

--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul Erdos


Quoting John Kalucki :


Brian is correct. There are only two sampled rates on the Streaming API:
Spritzer and Gardenhose. There are no other sampled rates available without
a code change. We're having discussions about these sampled feeds, but the
current settings are the maximum that we can provide at the moment. Note
that even at this reduced setting, the Gardenhose is several times larger in
absolute volume than it was at launch.

-John Kalucki
http://twitter.com/jkalucki
Infrastructure, Twitter Inc.


On Tue, Jul 20, 2010 at 1:11 AM, Tweetcepts  wrote:


I was just told by Brian Sutorius that in fact it's not possible to
acquire a feed equal to the old gardenhose (let's say roughly 15%).
That the only choices are either the now weaker gardenhose or the full
firehose.

Is there someone at Twitter that can confirm either way?



On Jul 16, 10:20 am, Taylor Singletary 
wrote:
> You can request greater levels of Streaming access by sending a message
to
> a...@twitter.com from the email address associated with your Twitter
account.
> It's best to describe in detail how you'll use the data (sampling,
keyword
> tracking, geo, and the number of variables and rates you're looking to
> employ), as well as the benefits it brings to users and background
> information about your organization and products.
>
> Thanks,
> Taylor
>
>
>
> On Fri, Jul 16, 2010 at 7:07 AM, Sanjay  wrote:
> > Just saw the posting about the reduction in the gardenhose (and
> > sprtizer) feeds (http://t.co/d6o1npx).  So for those of us who need
> > the additional data and are designed around it (and can consume it),
> > is there a way to get that level of feed back?  For me in particular
> > this is going to significantly hamper the app that I'm working on and
> > was looking to launch in a few weeks.
>
> > Help...?
>
> > Sanjay









[twitter-dev] Re: Twitter OAuth Problem

2010-07-20 Thread Gabe
I did notice something odd about that. My app page on Twitter says the
opposite tho - to remove the "api.". I will try your suggestion and
thanks!!

On Jul 20, 2:57 pm, Elmseeker  wrote:
> in twitteroauth.php you will find 4 lines
>
> function accessTokenURL()  { return 'https://api.twitter.com/oauth/
> access_token'; }
> function authenticateURL() { return 'https://twitter.com/oauth/
> authenticate'; }
> function authorizeURL()    { return 'https://twitter.com/oauth/
> authorize'; }
> function requestTokenURL() { return 'https://api.twitter.com/oauth/
> request_token'; }
>
> the 2 in the middle need to be changed to:
>
> function authenticateURL() { return 'https://api.twitter.com/oauth/
> authenticate'; }
> function authorizeURL()    { return 'https://api.twitter.com/oauth/
> authorize'; }
>
> hope this helps.
>
> On Jul 20, 11:02 am, Gabe  wrote:
>
>
>
> > Hi,
>
> > I have been using Abraham's OAuth library and I *almost* have it
> > working. I'm a longtime C++ developer but new to Twitter API.  Anyway,
> > it took me a while to use the callback.php file as the actual call
> > back. That (I thought) was the missing element, I was under the
> > impression that the "test.php" file in his library could be
> > substituted for the callback.  Anyway when I realized the mistake I
> > was happy to implement the new code.  The new callback is being called
> > but I am consistently getting HTTP Error Code 401 (unauthorized) when
> > it is being used, and I am using it basically "as is". Any insight
> > would be appreciated.
>
> > Note - I did regenerate my application registration recently - how
> > long does it take for those credentials to be usable?
>
> > Thanks much.
>
> > -Gabe


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread M. Edward (Ed) Borasky
Is this a server application (Software as a Service) or do you want  
this to run on a desktop? If you deployed it as a desktop application,  
you could use the User Streams capability. The nice thing about User  
Streams is that you get more than just messages when someone you're  
following tweets - you get many other events, and you can track by  
keyword and location as well.

--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul Erdos


Quoting PBro :


Hi,

We are developing an application with which we want to give a message
to a user that one of his friends has posted a new tweet.
This application is expected to have 40-60 thousand users, so separate
api-call's isn't the best option.
What would you advise as best practice for retrieving new tweets of a
user's friends for this much users?

Patrick







[twitter-dev] Re: Twitter OAuth Problem

2010-07-20 Thread Elmseeker
in twitteroauth.php you will find 4 lines

function accessTokenURL()  { return 'https://api.twitter.com/oauth/
access_token'; }
function authenticateURL() { return 'https://twitter.com/oauth/
authenticate'; }
function authorizeURL(){ return 'https://twitter.com/oauth/
authorize'; }
function requestTokenURL() { return 'https://api.twitter.com/oauth/
request_token'; }

the 2 in the middle need to be changed to:

function authenticateURL() { return 'https://api.twitter.com/oauth/
authenticate'; }
function authorizeURL(){ return 'https://api.twitter.com/oauth/
authorize'; }

hope this helps.

On Jul 20, 11:02 am, Gabe  wrote:
> Hi,
>
> I have been using Abraham's OAuth library and I *almost* have it
> working. I'm a longtime C++ developer but new to Twitter API.  Anyway,
> it took me a while to use the callback.php file as the actual call
> back. That (I thought) was the missing element, I was under the
> impression that the "test.php" file in his library could be
> substituted for the callback.  Anyway when I realized the mistake I
> was happy to implement the new code.  The new callback is being called
> but I am consistently getting HTTP Error Code 401 (unauthorized) when
> it is being used, and I am using it basically "as is". Any insight
> would be appreciated.
>
> Note - I did regenerate my application registration recently - how
> long does it take for those credentials to be usable?
>
> Thanks much.
>
> -Gabe


[twitter-dev] Re: Twitter OAuth Problem

2010-07-20 Thread Gabe
I think I might have answered my own question. It seems when I created
the new app registration I forgot to check the box at the bottom which
says to use Twitter for login. Now Twitter won't let me change it.  I
expect that will fix it.

On Jul 20, 2:02 pm, Gabe  wrote:
> Hi,
>
> I have been using Abraham's OAuth library and I *almost* have it
> working. I'm a longtime C++ developer but new to Twitter API.  Anyway,
> it took me a while to use the callback.php file as the actual call
> back. That (I thought) was the missing element, I was under the
> impression that the "test.php" file in his library could be
> substituted for the callback.  Anyway when I realized the mistake I
> was happy to implement the new code.  The new callback is being called
> but I am consistently getting HTTP Error Code 401 (unauthorized) when
> it is being used, and I am using it basically "as is". Any insight
> would be appreciated.
>
> Note - I did regenerate my application registration recently - how
> long does it take for those credentials to be usable?
>
> Thanks much.
>
> -Gabe


[twitter-dev] Re: create a new app

2010-07-20 Thread Tara
I've been getting this error when I try to save changes to an existing
app, too.


[twitter-dev] Re: Issues with OAuth

2010-07-20 Thread ap
Looks like the oAuth access token issue is back! Started getting 500's
from Twitter API a few minutes ago.

On Jul 20, 11:38 am, Kostya Nikolayev  wrote:
> Taylor!
>
> This is what I'm sending:
>
> POST /1/statuses/filter.json HTTP/1.1\r\nHost: stream.twitter.com\r
> \nUser-Agent: TweetStream\r\nAuthorization: OAuth
> oauth_nonce=0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU,
> oauth_signature=rbGAlSp1VIbuXbk4Wr99jumyi5o%3D,
> oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279640138,
> oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0\r\nContent-type:
> application/x-www-form-urlencoded\r\nContent-length: 13\r\n\r
> \ntrack=twitter
>
> Signature base string is:
>
> POST&http%3A%2F%2Fstream.twitter.com%2F1%2Fstatuses
> %2Ffilter.json&oauth_consumer_key%3D150423549-
> eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn%26oauth_nonce
> %3D0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU%26oauth_signature_method
> %3DHMAC-SHA1%26oauth_timestamp%3D1279640138%26oauth_token
> %3DtnruTl8uNRwGvICnzYpww%26oauth_version%3D1.0%26track%3D
>
> Thanks,
> Kostya
>
> On Jul 20, 6:18 pm, Taylor Singletary 
> wrote:
>
> > Hi Kostya,
>
> > I'm able to connect to the streaming API over OAuth fine at the moment.
>
> > Can you share the full URL, HTTP method, and parameters that you are trying
> > to access? If possible, also your signature base string?
>
> > Taylor
>
> > On Tue, Jul 20, 2010 at 8:09 AM, Kostya Nikolayev 
> > wrote:
>
> > > Taylor,
>
> > > Has Sreaming API OAuth been affected ?
>
> > > Authenticating with the following oauth header gives 500 to me:
> > > "OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
> > > oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
> > > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
> > > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"
>
> > > Is it Streaming API OAuth issue?
>
> > > Thanks,
> > > Kostya
>
> > > On Jul 19, 10:59 pm, Taylor Singletary 
> > > wrote:
> > > > Hi Ap,
>
> > > > This is the right place for reporting issues like this -- well, one of
> > > the
> > > > right places anyway -- we have some issues with OAuth today that are
> > > related
> > > > to some wider issues related to updating objects associated with users
> > > (like
> > > > access tokens).
>
> > > > We hope to have this fixed soon!
>
> > > > Thanks,
> > > > Taylor
>
> > > > On Mon, Jul 19, 2010 at 12:53 PM, ap  wrote:
> > > > > I've been experiencing OAuth issues with my app today. If I'm already
> > > > > logged into twitter, the OAuth redirects to my app just fine. However,
> > > > > if I have to land on the authentication page and enter my username and
> > > > > password and click submit, I get the following error:
>
> > > > > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
> > > > > TwitterException{message=500:Something is broken.  Please post to the
> > > > > group so the Twitter team can investigate.[Some HTML here],
> > > > > statusCode=500, retryAfter=0, rateLimitStatus=null}
>
> > > > > I'm not sure if this is the group that the message is asking me to
> > > > > post in, if not, please let me know the correct group to post to so I
> > > > > can get some assistance.
>
> > > > > Thanks!


[twitter-dev] oAuth down again?

2010-07-20 Thread EastSideDev
oAuth was working a few hours ago, I'm pretty sure it's down again. To
avoid having us guess, can Twitter have a link to a page to give us up
to the date status?


[twitter-dev] Twitter OAuth Problem

2010-07-20 Thread Gabe
Hi,

I have been using Abraham's OAuth library and I *almost* have it
working. I'm a longtime C++ developer but new to Twitter API.  Anyway,
it took me a while to use the callback.php file as the actual call
back. That (I thought) was the missing element, I was under the
impression that the "test.php" file in his library could be
substituted for the callback.  Anyway when I realized the mistake I
was happy to implement the new code.  The new callback is being called
but I am consistently getting HTTP Error Code 401 (unauthorized) when
it is being used, and I am using it basically "as is". Any insight
would be appreciated.

Note - I did regenerate my application registration recently - how
long does it take for those credentials to be usable?

Thanks much.

-Gabe


Re: [twitter-dev] 500 error when requesting access token

2010-07-20 Thread Ryan McKillen
Taylor, thanks. No changes to my code, but it's suddenly working. Maybe some
API hiccups that got resolved on your end...


Re: [twitter-dev] 500 error when requesting access token

2010-07-20 Thread Taylor Singletary
Hi Ryan,

oauth_verifier is always required on the access token step in the OAuth 1.0a
protocol, regardless of oauth_callback matching a pre-registered one or not.
We'll pass the oauth_verifier to you on your callback step which you then
need to send along with your access token request.

You may find it easier to debug OAuth issues if you use HTTP Headers to
authenticate instead of attaching parameters to the query string. If you're
still having issues, I would recommend sharing the full URI you are
executing, the HTTP method, the signature base string you've generated for
the request, and all parameters you are sending with the request (excluding
any secrets).

Thanks,
Taylor

On Tue, Jul 20, 2010 at 10:22 AM, Ryan  wrote:

> Having trouble with the OAuth process at the point where my callback
> requests the access token. Since the callback URL matches the one in
> my app settings, I did not think passing back the oauth_verifier was
> needed. But I get this error in XML:
>
>  '"1.0" encoding="UTF-8"?>
> 
>  /oauth/access_token?
> oauth_consumer_key=VkiB3AfQh6BWz6JTcFPHzg',
>  'amp;oauth_nonce' => 'a30511ba69dc30b600b48d39e0aa880e',
>  'amp;oauth_signature' => 'NPdMqVXLXCcfEwQfhh+48hne7p4=',
>  'amp;oauth_signature_method' => 'HMAC-SHA1',
>  'amp;oauth_timestamp' => '1279646107',
>  'amp;oauth_token' => 'uakv65JDkQrjGzyZP7RbazyHKKspywp0SJMbzmb4Co',
>  'amp;oauth_version' => '1.0
>  Invalid oauth_verifier parameter
> 
>
> Cool. Now, when I try passing the oauth_verifier Twitter comes back
> with a non-descript 500 error page in HTML. Not very helpful.
>
> Any help?
>


[twitter-dev] 500 error when requesting access token

2010-07-20 Thread Ryan
Having trouble with the OAuth process at the point where my callback
requests the access token. Since the callback URL matches the one in
my app settings, I did not think passing back the oauth_verifier was
needed. But I get this error in XML:

 '"1.0" encoding="UTF-8"?>

  /oauth/access_token?
oauth_consumer_key=VkiB3AfQh6BWz6JTcFPHzg',
  'amp;oauth_nonce' => 'a30511ba69dc30b600b48d39e0aa880e',
  'amp;oauth_signature' => 'NPdMqVXLXCcfEwQfhh+48hne7p4=',
  'amp;oauth_signature_method' => 'HMAC-SHA1',
  'amp;oauth_timestamp' => '1279646107',
  'amp;oauth_token' => 'uakv65JDkQrjGzyZP7RbazyHKKspywp0SJMbzmb4Co',
  'amp;oauth_version' => '1.0
  Invalid oauth_verifier parameter


Cool. Now, when I try passing the oauth_verifier Twitter comes back
with a non-descript 500 error page in HTML. Not very helpful.

Any help?


[twitter-dev] Re: Find all mentions

2010-07-20 Thread Sachin
Thanks for the help. I realize now that Klout actually does
authenticate users when they sign up.

Will look into the stream API.

Cheers.

On Jul 20, 11:33 am, John Kalucki  wrote:
> The best way to do this is to take a higher level of Streaming API access,
> then compute and persist the results on your end. For example, if you take a
> feed of all Retweets, or the full Firehose, you can perform retweet
> calculations for all public users. With track, you could track mentions of a
> subset of users, or with the firehose, all public mentions of all users.
>
> -John Kaluckihttp://twitter.com/jkalucki
> Infrastructure, Twitter Inc.
>
>
>
> On Tue, Jul 20, 2010 at 8:15 AM, Sachin  wrote:
> > Using the GET statuses/mentions request I can return all the @mentions
> > and RT's for the authenticating user. The API documentation says that
> > no authentication is required, but since there is no user ID parameter
> > I can see that it does in fact require authentication (reading the
> > forums have confirmed this I think).
>
> > Does anyone know of a way to get the # of mentions and RTs for a user
> > ID within a timeframe (i.e. last 30 days)?
>
> > Using the Search API I can get some results in json... but it seems to
> > be only returning the last 8 or so mentions.
>
> > Does anyone know how applications like Klout are getting these stats?
> > (http://klout.com/uschles/scoreshows 267 mentions and 63 retweets).
> > I'm sure they are still only accurate within a certain timeframe but
> > I'm curious as to how they're getting these stats at all without
> > authentication from the user.
>
> > Any help would be much appreciated.
>
> > Thanks,
>
> > Sachin


[twitter-dev] Re: Get just the IDs for a lists members

2010-07-20 Thread Orian Marx (@orian)
Yeah, this was actually requested in the issue tracker back in
December: http://code.google.com/p/twitter-api/issues/detail?id=1296

On Jul 19, 10:23 am, Taylor Singletary 
wrote:
> There's no way to get this at this time, but it'd be a good feature to
> request on the issue tracker:http://code.google.com/p/twitter-api/issues/list
>
>
>
> On Sun, Jul 18, 2010 at 2:09 PM, Dharmesh  wrote:
> > I'm looking to do do some analysis on twitter lists.
>
> > I'd like to be able to retrieve the list of all users that are members
> > of a list -- but all I need are the User IDs.
>
> > Is there a way to get a list of members (up to 5,000) like we can with
> > the call followers/ids and friends/ids?
>
> > Right now, we can only retrieve 20 members at a time -- which requires
> > many API calls for large lists and wastes bandwidth as I don't need
> > all the user data.
>
> > Thanks.


[twitter-dev] is search results reduction permanent

2010-07-20 Thread Azeem
Hi, I understand Twitter reduced api search results by a factor of 10
and is asking developers to migrate to Streaming API for large scale
search queries. Is this decision to alter search results permanent? If
no, is there a time-frame when this decision will be reversed?


[twitter-dev] Re: Issues with OAuth

2010-07-20 Thread Kostya Nikolayev
Taylor!

This is what I'm sending:

POST /1/statuses/filter.json HTTP/1.1\r\nHost: stream.twitter.com\r
\nUser-Agent: TweetStream\r\nAuthorization: OAuth
oauth_nonce=0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU,
oauth_signature=rbGAlSp1VIbuXbk4Wr99jumyi5o%3D,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279640138,
oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0\r\nContent-type:
application/x-www-form-urlencoded\r\nContent-length: 13\r\n\r
\ntrack=twitter

Signature base string is:

POST&http%3A%2F%2Fstream.twitter.com%2F1%2Fstatuses
%2Ffilter.json&oauth_consumer_key%3D150423549-
eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn%26oauth_nonce
%3D0IblKRcN17LUBG6zMnQk6DVrObhzcZowIVpPLtsRviU%26oauth_signature_method
%3DHMAC-SHA1%26oauth_timestamp%3D1279640138%26oauth_token
%3DtnruTl8uNRwGvICnzYpww%26oauth_version%3D1.0%26track%3D

Thanks,
Kostya

On Jul 20, 6:18 pm, Taylor Singletary 
wrote:
> Hi Kostya,
>
> I'm able to connect to the streaming API over OAuth fine at the moment.
>
> Can you share the full URL, HTTP method, and parameters that you are trying
> to access? If possible, also your signature base string?
>
> Taylor
>
> On Tue, Jul 20, 2010 at 8:09 AM, Kostya Nikolayev wrote:
>
> > Taylor,
>
> > Has Sreaming API OAuth been affected ?
>
> > Authenticating with the following oauth header gives 500 to me:
> > "OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
> > oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
> > oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
> > oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> > oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"
>
> > Is it Streaming API OAuth issue?
>
> > Thanks,
> > Kostya
>
> > On Jul 19, 10:59 pm, Taylor Singletary 
> > wrote:
> > > Hi Ap,
>
> > > This is the right place for reporting issues like this -- well, one of
> > the
> > > right places anyway -- we have some issues with OAuth today that are
> > related
> > > to some wider issues related to updating objects associated with users
> > (like
> > > access tokens).
>
> > > We hope to have this fixed soon!
>
> > > Thanks,
> > > Taylor
>
> > > On Mon, Jul 19, 2010 at 12:53 PM, ap  wrote:
> > > > I've been experiencing OAuth issues with my app today. If I'm already
> > > > logged into twitter, the OAuth redirects to my app just fine. However,
> > > > if I have to land on the authentication page and enter my username and
> > > > password and click submit, I get the following error:
>
> > > > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
> > > > TwitterException{message=500:Something is broken.  Please post to the
> > > > group so the Twitter team can investigate.[Some HTML here],
> > > > statusCode=500, retryAfter=0, rateLimitStatus=null}
>
> > > > I'm not sure if this is the group that the message is asking me to
> > > > post in, if not, please let me know the correct group to post to so I
> > > > can get some assistance.
>
> > > > Thanks!
>
>


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread John Kalucki
Yes.

GET stream.twitter.com/1/statuses/filter.json
follow=userid,userid,userid

You'll need to request a higher access level.

-John Kalucki
htttp://twitter.com/jkalucki
Infrastructure, Twitter Inc.


On Tue, Jul 20, 2010 at 7:52 AM, BJ Weschke  wrote:

>  The streaming API.
>
>
> On 7/20/2010 10:43 AM, PBro wrote:
>
>> Hi,
>>
>> We are developing an application with which we want to give a message
>> to a user that one of his friends has posted a new tweet.
>> This application is expected to have 40-60 thousand users, so separate
>> api-call's isn't the best option.
>> What would you advise as best practice for retrieving new tweets of a
>> user's friends for this much users?
>>
>> Patrick
>>
>>
>
>


Re: [twitter-dev] Find all mentions

2010-07-20 Thread John Kalucki
The best way to do this is to take a higher level of Streaming API access,
then compute and persist the results on your end. For example, if you take a
feed of all Retweets, or the full Firehose, you can perform retweet
calculations for all public users. With track, you could track mentions of a
subset of users, or with the firehose, all public mentions of all users.

-John Kalucki
http://twitter.com/jkalucki
Infrastructure, Twitter Inc.



On Tue, Jul 20, 2010 at 8:15 AM, Sachin  wrote:

> Using the GET statuses/mentions request I can return all the @mentions
> and RT's for the authenticating user. The API documentation says that
> no authentication is required, but since there is no user ID parameter
> I can see that it does in fact require authentication (reading the
> forums have confirmed this I think).
>
> Does anyone know of a way to get the # of mentions and RTs for a user
> ID within a timeframe (i.e. last 30 days)?
>
> Using the Search API I can get some results in json... but it seems to
> be only returning the last 8 or so mentions.
>
> Does anyone know how applications like Klout are getting these stats?
> (http://klout.com/uschles/score shows 267 mentions and 63 retweets).
> I'm sure they are still only accurate within a certain timeframe but
> I'm curious as to how they're getting these stats at all without
> authentication from the user.
>
> Any help would be much appreciated.
>
> Thanks,
>
> Sachin
>


Re: [twitter-dev] Re: Issues with OAuth

2010-07-20 Thread Taylor Singletary
Hi Kostya,

I'm able to connect to the streaming API over OAuth fine at the moment.

Can you share the full URL, HTTP method, and parameters that you are trying
to access? If possible, also your signature base string?

Taylor


On Tue, Jul 20, 2010 at 8:09 AM, Kostya Nikolayev wrote:

> Taylor,
>
> Has Sreaming API OAuth been affected ?
>
> Authenticating with the following oauth header gives 500 to me:
> "OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
> oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
> oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
> oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
> oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"
>
> Is it Streaming API OAuth issue?
>
> Thanks,
> Kostya
>
> On Jul 19, 10:59 pm, Taylor Singletary 
> wrote:
> > Hi Ap,
> >
> > This is the right place for reporting issues like this -- well, one of
> the
> > right places anyway -- we have some issues with OAuth today that are
> related
> > to some wider issues related to updating objects associated with users
> (like
> > access tokens).
> >
> > We hope to have this fixed soon!
> >
> > Thanks,
> > Taylor
> >
> > On Mon, Jul 19, 2010 at 12:53 PM, ap  wrote:
> > > I've been experiencing OAuth issues with my app today. If I'm already
> > > logged into twitter, the OAuth redirects to my app just fine. However,
> > > if I have to land on the authentication page and enter my username and
> > > password and click submit, I get the following error:
> >
> > > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
> > > TwitterException{message=500:Something is broken.  Please post to the
> > > group so the Twitter team can investigate.[Some HTML here],
> > > statusCode=500, retryAfter=0, rateLimitStatus=null}
> >
> > > I'm not sure if this is the group that the message is asking me to
> > > post in, if not, please let me know the correct group to post to so I
> > > can get some assistance.
> >
> > > Thanks!
> >
> >
>


[twitter-dev] Find all mentions

2010-07-20 Thread Sachin
Using the GET statuses/mentions request I can return all the @mentions
and RT's for the authenticating user. The API documentation says that
no authentication is required, but since there is no user ID parameter
I can see that it does in fact require authentication (reading the
forums have confirmed this I think).

Does anyone know of a way to get the # of mentions and RTs for a user
ID within a timeframe (i.e. last 30 days)?

Using the Search API I can get some results in json... but it seems to
be only returning the last 8 or so mentions.

Does anyone know how applications like Klout are getting these stats?
(http://klout.com/uschles/score shows 267 mentions and 63 retweets).
I'm sure they are still only accurate within a certain timeframe but
I'm curious as to how they're getting these stats at all without
authentication from the user.

Any help would be much appreciated.

Thanks,

Sachin


[twitter-dev] Re: Issues with OAuth

2010-07-20 Thread Kostya Nikolayev
Taylor,

Has Sreaming API OAuth been affected ?

Authenticating with the following oauth header gives 500 to me:
"OAuth oauth_nonce=N9wgHt2uPw8HqRwtOpjuVDSeuVYmc8UGDF8H0237v0,
oauth_signature=ALUT7tKXK%2Fw57SnJulj8x1l%2F7%2Fk%3D,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279638245,
oauth_consumer_key=150423549-eAqqrDB7nsbvxE85cHValKZazJ6z4137CEJ6Bnfn,
oauth_token=tnruTl8uNRwGvICnzYpww, oauth_version=1.0"

Is it Streaming API OAuth issue?

Thanks,
Kostya

On Jul 19, 10:59 pm, Taylor Singletary 
wrote:
> Hi Ap,
>
> This is the right place for reporting issues like this -- well, one of the
> right places anyway -- we have some issues with OAuth today that are related
> to some wider issues related to updating objects associated with users (like
> access tokens).
>
> We hope to have this fixed soon!
>
> Thanks,
> Taylor
>
> On Mon, Jul 19, 2010 at 12:53 PM, ap  wrote:
> > I've been experiencing OAuth issues with my app today. If I'm already
> > logged into twitter, the OAuth redirects to my app just fine. However,
> > if I have to land on the authentication page and enter my username and
> > password and click submit, I get the following error:
>
> > Mon Jul 19 15:40:47 EDT 2010 : Twitter exception:
> > TwitterException{message=500:Something is broken.  Please post to the
> > group so the Twitter team can investigate.[Some HTML here],
> > statusCode=500, retryAfter=0, rateLimitStatus=null}
>
> > I'm not sure if this is the group that the message is asking me to
> > post in, if not, please let me know the correct group to post to so I
> > can get some assistance.
>
> > Thanks!
>
>


Re: [twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread BJ Weschke

 The streaming API.

On 7/20/2010 10:43 AM, PBro wrote:

Hi,

We are developing an application with which we want to give a message
to a user that one of his friends has posted a new tweet.
This application is expected to have 40-60 thousand users, so separate
api-call's isn't the best option.
What would you advise as best practice for retrieving new tweets of a
user's friends for this much users?

Patrick
   




[twitter-dev] Re: Twitter account representing an application

2010-07-20 Thread Blixt
Great! Thanks! :)

On Jul 20, 4:19 pm, Taylor Singletary 
wrote:
> Hi,
>
> For a single login scenario like this, it's likely easiest to just use the
> "My Token" feature we have on the developer portal -- go 
> tohttp://dev.twitter.com/appsand select your application (or create one if
> you need to), then when viewing your application's details page, select the
> "My Token" link from the right-hand side bar.
>
> This will give you the access token and access token secret for your account
> for that application -- basically, what you would end up with had you done
> the entire OAuth song & dance. With these two components, you only need to
> build the OAuth signing process into your application, which would be pretty
> easy when done in conjunction with an OAuth library. We have some examples
> here:http://bit.ly/1token
>
> Taylor
>
>
>
> On Tue, Jul 20, 2010 at 4:41 AM, Blixt  wrote:
> > If I have an application that will be tweeting (always through its
> > dedicated Twitter account) every now and then, do I have to make this
> > application perform the whole OAuth handshake every time the token
> > expires? It would have to post username and password to the Twitter
> > log in form too I guess, since there will be no human interaction.
>
> > Or is there a way for an application to get a secret key that it can
> > use to post on behalf of a single Twitter account?


[twitter-dev] Retrieving new tweets for 40-60 thousand users

2010-07-20 Thread PBro
Hi,

We are developing an application with which we want to give a message
to a user that one of his friends has posted a new tweet.
This application is expected to have 40-60 thousand users, so separate
api-call's isn't the best option.
What would you advise as best practice for retrieving new tweets of a
user's friends for this much users?

Patrick


[twitter-dev] Re: Checking if a user still has authorized access of my application

2010-07-20 Thread PBro
Thanks for your answers. verify_credentials is working:)

On Jul 16, 5:35 pm, Matt Harris  wrote:
> Tom is correct. The easiest way to check if your application is still
> allowed by the user is to call verify_credentials. This is a read-only call
> without any parameters which will return 200 OK if you are allowed access
> and 401 if you are not.
>
> Best,
> Matt
>
> On Fri, Jul 16, 2010 at 8:01 AM, Thomas Woolway 
> wrote:
>
>
>
> > I'd have thought calling verify_credentials would do it - you'll get a 401
> > and a specific error message to tell you that the key is no longer valid.
>
> > Alternatively, why not try to perform your actions (like posting a tweet or
> > retrieving tweets) and if they return a 401, use that to indicate that the
> > user has revoked permissions.
>
> > Tom
>
> > On Fri, Jul 16, 2010 at 11:59 AM, PBro  wrote:
>
> >> Hi,
>
> >> I would like to know if it is possible to check if a user still allows
> >> my application to access his twitter account.
> >> We are building an application that will post tweets on the user's
> >> account and read new tweets from his account.
> >> Therefore i would like to check if the user hasn't revoked access of
> >> the application via his profile.
> >> So, is there something like getPermissions or maybe a callback for
> >> when a users revokes access?
>
> >> Sincerely,
> >> Patrick
>
> --
>
> Matt Harris
> Developer Advocate, Twitterhttp://twitter.com/themattharris


Re: [twitter-dev] Twitter account representing an application

2010-07-20 Thread Taylor Singletary
Hi,

For a single login scenario like this, it's likely easiest to just use the
"My Token" feature we have on the developer portal -- go to
http://dev.twitter.com/apps and select your application (or create one if
you need to), then when viewing your application's details page, select the
"My Token" link from the right-hand side bar.

This will give you the access token and access token secret for your account
for that application -- basically, what you would end up with had you done
the entire OAuth song & dance. With these two components, you only need to
build the OAuth signing process into your application, which would be pretty
easy when done in conjunction with an OAuth library. We have some examples
here: http://bit.ly/1token

Taylor

On Tue, Jul 20, 2010 at 4:41 AM, Blixt  wrote:

> If I have an application that will be tweeting (always through its
> dedicated Twitter account) every now and then, do I have to make this
> application perform the whole OAuth handshake every time the token
> expires? It would have to post username and password to the Twitter
> log in form too I guess, since there will be no human interaction.
>
> Or is there a way for an application to get a secret key that it can
> use to post on behalf of a single Twitter account?
>


Re: [twitter-dev] Re: A feed greater equivalent to the old gardenhose?

2010-07-20 Thread John Kalucki
Brian is correct. There are only two sampled rates on the Streaming API:
Spritzer and Gardenhose. There are no other sampled rates available without
a code change. We're having discussions about these sampled feeds, but the
current settings are the maximum that we can provide at the moment. Note
that even at this reduced setting, the Gardenhose is several times larger in
absolute volume than it was at launch.

-John Kalucki
http://twitter.com/jkalucki
Infrastructure, Twitter Inc.


On Tue, Jul 20, 2010 at 1:11 AM, Tweetcepts  wrote:

> I was just told by Brian Sutorius that in fact it's not possible to
> acquire a feed equal to the old gardenhose (let's say roughly 15%).
> That the only choices are either the now weaker gardenhose or the full
> firehose.
>
> Is there someone at Twitter that can confirm either way?
>
>
>
> On Jul 16, 10:20 am, Taylor Singletary 
> wrote:
> > You can request greater levels of Streaming access by sending a message
> to
> > a...@twitter.com from the email address associated with your Twitter
> account.
> > It's best to describe in detail how you'll use the data (sampling,
> keyword
> > tracking, geo, and the number of variables and rates you're looking to
> > employ), as well as the benefits it brings to users and background
> > information about your organization and products.
> >
> > Thanks,
> > Taylor
> >
> >
> >
> > On Fri, Jul 16, 2010 at 7:07 AM, Sanjay  wrote:
> > > Just saw the posting about the reduction in the gardenhose (and
> > > sprtizer) feeds (http://t.co/d6o1npx).  So for those of us who need
> > > the additional data and are designed around it (and can consume it),
> > > is there a way to get that level of feed back?  For me in particular
> > > this is going to significantly hamper the app that I'm working on and
> > > was looking to launch in a few weeks.
> >
> > > Help...?
> >
> > > Sanjay
>


Re: [twitter-dev] Life of an access token

2010-07-20 Thread Taylor Singletary
Hi,

Our system currently issues access tokens that do not expire, but may be
revoked by the user at any time through their account settings. With the
user's expectations properly communicated, an access token can be used to
post updates any time.

Taylor

On Tue, Jul 20, 2010 at 6:04 AM, Sushil wrote:

> Hi!
>
> What is the life of an access token? Once obtained, can it be used to
> post status updates anytime?
>


[twitter-dev] Life of an access token

2010-07-20 Thread Sushil
Hi!

What is the life of an access token? Once obtained, can it be used to
post status updates anytime?


[twitter-dev] OAuth and Streaming API

2010-07-20 Thread Kostya Nikolayev
Is OAuth functioning for the Streeming API at the moment?

I'm trying to make it work for the first time now and getting "HTTP/
1.1 500 Internal Server Error".

Had it been working before yesterdays (2010-Jul-19) crisis?

Had the crisis affected Streaming API?

Has it been fixed for Streaming API?

Thanks!


[twitter-dev] Twitter account representing an application

2010-07-20 Thread Blixt
If I have an application that will be tweeting (always through its
dedicated Twitter account) every now and then, do I have to make this
application perform the whole OAuth handshake every time the token
expires? It would have to post username and password to the Twitter
log in form too I guess, since there will be no human interaction.

Or is there a way for an application to get a secret key that it can
use to post on behalf of a single Twitter account?


[twitter-dev] NotImplementedError: Only tempfile.TemporaryFile is available for use

2010-07-20 Thread Pyrocks
I am using twitter Api to send message from my application to Twitter
profile page after authenticate the user in python.It is giving the
error like

NotImplementedError: Only tempfile.TemporaryFile is available for use.


My code is like


class MainHandler(webapp.RequestHandler):
def get(self):
api = twitter.Api(username='twitteruser',
password='***')
status = api.PostUpdate('I love python-twitter!')
self.response.out.write("tweet posted %s" % status)


def main():
  application = webapp.WSGIApplication([('/Tweetmess',
MainHandler)],
   debug=True)
  wsgiref.handlers.CGIHandler().run(application)


if __name__ == '__main__':
  main()



Can any body there to help me in  fixing this error?

Thanks and Regards.

Py



[twitter-dev] Re: A feed greater equivalent to the old gardenhose?

2010-07-20 Thread Tweetcepts
I was just told by Brian Sutorius that in fact it's not possible to
acquire a feed equal to the old gardenhose (let's say roughly 15%).
That the only choices are either the now weaker gardenhose or the full
firehose.

Is there someone at Twitter that can confirm either way?



On Jul 16, 10:20 am, Taylor Singletary 
wrote:
> You can request greater levels of Streaming access by sending a message to
> a...@twitter.com from the email address associated with your Twitter account.
> It's best to describe in detail how you'll use the data (sampling, keyword
> tracking, geo, and the number of variables and rates you're looking to
> employ), as well as the benefits it brings to users and background
> information about your organization and products.
>
> Thanks,
> Taylor
>
>
>
> On Fri, Jul 16, 2010 at 7:07 AM, Sanjay  wrote:
> > Just saw the posting about the reduction in the gardenhose (and
> > sprtizer) feeds (http://t.co/d6o1npx).  So for those of us who need
> > the additional data and are designed around it (and can consume it),
> > is there a way to get that level of feed back?  For me in particular
> > this is going to significantly hamper the app that I'm working on and
> > was looking to launch in a few weeks.
>
> > Help...?
>
> > Sanjay


[twitter-dev] NotImplementedError: Only tempfile.TemporaryFile is available for use

2010-07-20 Thread Pyrocks
I am using twitter Api to send message from my application to Twitter
profile page after authenticate the user in python.It is giving the
error like

NotImplementedError: Only tempfile.TemporaryFile is available for use.


My code is like


class MainHandler(webapp.RequestHandler):
def get(self):
api = twitter.Api(username='twitteruser',
password='***')
status = api.PostUpdate('I love python-twitter!')
self.response.out.write("tweet posted %s" % status)


def main():
  application = webapp.WSGIApplication([('/Tweetmess',
MainHandler)],
   debug=True)
  wsgiref.handlers.CGIHandler().run(application)


if __name__ == '__main__':
  main()



Can any body there to help me in  fixing this error?

Thanks and Regards.

Py



[twitter-dev] Re: Issues with OAuth

2010-07-20 Thread Rendy Pranata
I think its now fixed

On Jul 20, 3:41 pm, acreadinglist  wrote:
> Add me to the list.
>
> On Jul 19, 7:24 pm, JeremyE  wrote:
>
> > I'm having the same exact issue while developing my app. Internal
> > Server Error 500 from Twitter. Trying to get my access token.


[twitter-dev] Re: SPAM tweets from API, need help!

2010-07-20 Thread Shabaz
Thank you Taylor. Yes I changed my password as soon as this thing came
on my page.
Thank you again for your help :)

On Jul 14, 9:45 pm, Taylor Singletary 
wrote:
> Hi Shabaz,
>
> At some point you may have inadvertently (or intentionally) given your login
> and password to a third party application using what we call "basic
> authentication." You should be able to stop their ability to tweet on your
> behalf by changing your password. This method of authenticating will be
> going away very soon, but until then changing your password is the best
> defense.
>
> Taylor
>
>
>
> On Wed, Jul 14, 2010 at 12:10 PM, Shabaz  wrote:
> > I think there is some problem.
>
> > I have an account FriendCaller on twitter (twitter.com/friendcaller),
> > and some tweets were being sent through API (clicking the API brings
> > me here.
> > These tweets are related to some shopping stuff.
> > Tweets go like this:
> > "I put in my email and got a free $1000 best buy gift card!"
> > When I search on google for this exact string with quotes, I saw
> >http://buzztter.com/en/k/emailwhich shows the same tweet tweeted by
> > many users, some profiles even with a very few followers, so I think
> > its not the job of the 'free following' websites.
> > There seem to be some very severe problem, for which I need a solution
> > asap, because I cannot delete the tweets. It comes again and again
> > itself.
>
> > Help please!


[twitter-dev] Country based search

2010-07-20 Thread rachit gupta
Hi All,

I am a developer from India, working on integrating Twitter with few
of my application.

I wished to know, if there exists a way through which we can get
Twitter search result only from a particular country not using the
Geocode functionality, because Geocode functionality cant be extended
to country wide result.


[twitter-dev] Re: OAuth echo base string(TwitPic)

2010-07-20 Thread Nik Fletcher
http://dev.twitter.com/pages/oauth_echo

-N

On Jul 20, 10:02 am, Mounir Regragui  wrote:
> Hi everyone!
> So I would like to add a feature to upload a picture to twitter via
> twitpic!
>
> Seems like it is using something called OAuth echo, that has
> additional parameters to the standard OAuth!
> I would like to know how to build my base string, so i can generate a
> signature.
>
> Should I use the standard OAuth parameters, or should I use the
> additional parameters ? (like realm etc...)
>
> I did not found documentation on api.twitpic.com, maybe it is located
> somewhere else.
>
> Anyway, I'd appreciate any kind of help!
>
> Regards.


[twitter-dev] OAuth echo base string(TwitPic)

2010-07-20 Thread Mounir Regragui
Hi everyone!
So I would like to add a feature to upload a picture to twitter via
twitpic!

Seems like it is using something called OAuth echo, that has
additional parameters to the standard OAuth!
I would like to know how to build my base string, so i can generate a
signature.

Should I use the standard OAuth parameters, or should I use the
additional parameters ? (like realm etc...)

I did not found documentation on api.twitpic.com, maybe it is located
somewhere else.

Anyway, I'd appreciate any kind of help!

Regards.


[twitter-dev] Re: Can't retrieve requestToken because of a Redirection

2010-07-20 Thread Mounir Regragui
Seems like it's working now! (I didn't change my code !!)

So good news then :)

On 15 juil, 17:19, Mounir Regragui  wrote:
> And yes, the clock on the phones are correctly set :)
>
> On 15 juil, 17:16, Mounir Regragui  wrote:
>
> > Oops, I got the wrong communication dump^^ Sorry about that, the issue
> > is not on the authorization step, but on the access token step :p
>
> > Ok, so using thehttps://api.twitter.com/oauth/*urls, here is what
> > happens :
>
> > I get the request token, no problem
>
> > I open the web browser on the authorization page, everything is still
> > perfect
> > After the user allows my application to access his data, i'm
> > redirected to this URI : sociallib://twitter => this is so I am
> > redirected to my application, rather than staying on the web browser
> > view
>
> > So i'm back in my application context, and i try to retrieve the
> > access token with my request token and verifier.
>
> > I should be receiving a response with a string like this one :
>
> > oauth_token=myTokenAccessString&oauth_token_secret=MySecretString&user_id=123456&screen_name=somebody
>
> > And this is the string i receive when i run my program on an android
> > emulator, so I can retrieve the access token and secret!
>
> > But when I run the same application on actual android devices, I do
> > not receive that string as a response when i try to get my access
> > token!
> > What I receive is HTML code : You are being  > href="http://
> > mobile.twitter.com">redirected.
>
> > So I can't get my access token and secret. So maybe I did something
> > wrong (and if you think so, I will post you a very detailed step-by-
> > step guide of what I do, including base strings, and complete
> > communication dump, just tell me what you need :) ), but maybe it is a
> > server side issue. Maybe the server who is in charge of sending the
> > access token is configured so that is sends this html code to "mobile
> > phones", and that would mean that your server is not compatible with
> > some mobile devices.
>
> > Here is the HTTP request that the application sends :
>
> > POST /oauth/access_token HTTP/1.1
>
> > User-Agent: Java0
>
> > Host: api.twitter.com
>
> > Connection: Keep-Alive
>
> > Content-Type: application/x-www-form-urlencoded
>
> > authorization: OAuth oauth_consumer_key="myConsumerKey",
> > oauth_nonce="388ed89f6fb14fecf7981b2afa2cf793",
> > oauth_signature="dLtMBsQaEabtPrHd20xm280j9ug%3D",
> > oauth_signature_method="HMAC-SHA1", oauth_timestamp="1279214023",
> > oauth_token="someTokenString",
> > oauth_verifier="zxdzs62RWnINIgl1xdXKbxd3LXAoDJYJrmXvvkV4kcU",
> > oauth_version="1.0"
>
> > content-length: 0
>
> > The weird thing is that the exact same code runs flawlessly on an
> > android emulator and not on android phones. Or maybe there is
> > something I'm missing.
>
> > We are very exited about adding twitter features to our program, so I
> > hope I will figure this out asap!
>
> > Thanks again for helping me!
>
> > On 15 juil, 16:27, Taylor Singletary 
> > wrote:
>
> > > You should be consistently usinghttps://api.twitter.com/oauth/*forthe
> > > paths -- are you being automatically redirected to 
> > > thehttp://m.twitter.comsubdomainordidyou manually change your
> > > configuration to go to that
> > > instead?
>
> > > When you say it "goes wrong" -- what is the behavior you are observing? 
> > > The
> > > calls for request_token and access_token should be made using a standard
> > > HTTP library for your programming environment, but the authorize page 
> > > should
> > > be loaded in a web browser.
>
> > > We shouldn't have any issue with your custom URI scheme on the 
> > > request_token
> > > step.
>
> > > Do you know if your device's clock is set correctly?
>
> > > Thanks,
> > > Taylor
>
> > > On Thu, Jul 15, 2010 at 12:21 AM, Mounir Regragui 
> > > wrote:
>
> > > > Hello Taylor,
>
> > > > Thank you for helping me.
> > > > I tried with these endpoints:
> > > >https://api.twitter.com/oauth/request_token
> > > >https://api.twitter.com/oauth/access_token
> > > >https://api.twitter.com/oauth/authorize
>
> > > > DO work ont the emulator, doesn't on actual devices (tested on 5
> > > > different android devices)
>
> > > > Then i tried with these:
> > > >http://m.twitter.com/oauth/request_token
> > > >http://m.twitter.com/oauth/access_token
> > > >http://m.twitter.com/oauth/authorize
>
> > > > Same thing, do work on the emulator, does not on actual devices.
>
> > > > Here is a dump (header + string ^^) of the communication from the
> > > > emulator:
>
> > > > POST /oauth/request_token HTTP/1.1
>
> > > > User-Agent: Java0
>
> > > > Host: m.twitter.com
>
> > > > Connection: Keep-Alive
>
> > > > Content-Type: application/x-www-form-urlencoded
>
> > > > authorization: OAuth oauth_callback="sociallib%3A%2F%2Freviens",
> > > > oauth_consumer_key="mykey",
> > > > oauth_nonce="9c4001db102cfa150385c1e037bbef25",
> > > > oauth_signature="k6azYrtyuhP3LrM6oRvlI7ixK7A%3D",
> > > > oauth_signature_method="HMAC-SHA1", oa

[twitter-dev] Drip results of tweets incremented by 1 over each update

2010-07-20 Thread Vijay
Hi,

I am trying to show tweets on the client side using juitter widget. I
want to display tweets sliding down by 1 tweet at each update cycle.I
tried to use the id from the latest search.json result and use it in
the since_id= in the next search but that doesn't get me the result i
desire.

Eg: search 
http://search.twitter.com/search.json?result_type=recent&q=cat&rpp=10&since_id=18974766258

where id=18974766258 was the last tweet returned the last time in the
search result.

TIA for any help,
Vijay