[twitter-dev] Re: oAuth reporting a status update error when none exists

2010-11-29 Thread EastSideDev
I double-checked my code, and I'm only calling statuses/update once:

$connection = new TwitterOAuth($ctck, $ctcks, $ot,$ots);
$opResult = $connection->post('statuses/update',
array('status' => $statusUpdate), TRUE);
if (!$opResult['id']) {
$msgText .= $opResult['error']." ";
}

This is code that was working fine, until recently (no changes).

On Nov 29, 10:00 pm, Abraham Williams <4bra...@gmail.com> wrote:
> It sound to me like your code might be making the same API request twice.
> This would result in the status getting posted and the error message you end
> up with.
>
> If you are commonly creating statuses with the same text it might just seem
> like a new status is getting posted when they are not.
>
> Abraham
> -
> Abraham Williams | Hacker Advocate | abrah.am
> @abraham  | github.com/abraham | blog.abrah.am
> This email is: [ ] shareable [x] ask first [ ] private.
>
> On Mon, Nov 29, 2010 at 20:18, EastSideDev  wrote:
> > I have an application that uses oAuth to post a tweet on behalf of a
> > user. I noticed today that when I do a status update, I'm getting a
> > "Status is a duplicate" error message, when in fact the status posted
> > correctly.
>
> > I have not changed my code, and I am using the Twitter oAuth library
> > (same code been working fine since June). Are we experiencing some API
> > issues?
>
> > --
> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > API updates via Twitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> >http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> >http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Problem - SSL CA cert

2010-11-29 Thread Georgooty varghese
Dear Twitter,
I wont be able to log in to twitter insecure using twitter(using curl
command line tool, you disable this with -k/--insecure). But facebook has no
problem. Why this?

I think that client need a certifuication? Is it right?

Anybody please help me? I am waiting for your reply.

Regards,
George.

On Mon, Nov 29, 2010 at 1:04 PM, Georgooty varghese wrote:

> Dear Twitter,
>
> Thanks for reply. I do the the all things says in
> http://curl.haxx.se/docs/sslcerts.html . So the issue solved in the PC
> using libcurl. But the issue not solved in embedded environment board. I
> have copied the same file in board, but the issue not solved.  If any other
> certification need in board?.
>
> How the issue is solved?
>
> Anybody please help me.
>
> Regards,
> George
>
>
> On Thu, Nov 25, 2010 at 6:13 PM, Cameron Kaiser wrote:
>
>> > I have developed a twitter application in C language using Libcurl. I
>> have
>> > used xAuth authentication.The application was working in PC as fine. I
>> am
>> > special thanks to twitter engineers for helping to me successfully
>> > completion of twitter application in PC. Now I am facing a critical
>> issue.
>> > My C code is inegrating into embedded environment (board), I got SSL
>> > certification pblm when query accesstoken(HTTPS).  I can't get the
>> > accesstoken.
>> > What certificates do I need when I use SSL?.
>> > What certification need twitter for SSL(HTTPS).? How to get the secure
>> SSL
>> > certificate?
>>
>> http://curl.haxx.se/docs/sslcerts.html
>>
>> --
>>  personal:
>> http://www.cameronkaiser.com/ --
>>  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
>> ckai...@floodgap.com
>> -- Bugs of a feather flock together. -- Russell Nelson
>> 
>>
>> --
>> Twitter developer documentation and resources: http://dev.twitter.com/doc
>> API updates via Twitter: http://twitter.com/twitterapi
>> Issues/Enhancements Tracker:
>> http://code.google.com/p/twitter-api/issues/list
>> Change your membership to this group:
>> http://groups.google.com/group/twitter-development-talk
>>
>
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] oAuth reporting a status update error when none exists

2010-11-29 Thread Abraham Williams
It sound to me like your code might be making the same API request twice.
This would result in the status getting posted and the error message you end
up with.

If you are commonly creating statuses with the same text it might just seem
like a new status is getting posted when they are not.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham  | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Mon, Nov 29, 2010 at 20:18, EastSideDev  wrote:

> I have an application that uses oAuth to post a tweet on behalf of a
> user. I noticed today that when I do a status update, I'm getting a
> "Status is a duplicate" error message, when in fact the status posted
> correctly.
>
> I have not changed my code, and I am using the Twitter oAuth library
> (same code been working fine since June). Are we experiencing some API
> issues?
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Twitter API

2010-11-29 Thread Tom Callahan
I have one question here...
I know that we can fetch the recent posts from a user's account,
however is it possible to fetch replies to a particular tweet?
Please guide me on that.

Thanks in advance!!!

On Nov 29, 5:10 pm, Igor Kharin  wrote:
> Once you authorized an user and got his access token you're free to
> use all the API methods like statuses/mentions 
> (replies):http://dev.twitter.com/doc/get/statuses/mentions
>
> Good luck!
>
> On Mon, Nov 29, 2010 at 5:35 PM, Tom Callahan  wrote:
> > Thank you very muchit worked :-)
>
> > Can you also please help me in more thing : How can I fetch the tweet
> > replies from somebody's account?
>
> > On Nov 28, 6:22 pm, Igor Kharin  wrote:
> >> Here's how "Sign in with Twitter" button 
> >> works:http://dev.twitter.com/pages/sign_in_with_twitter
>
> >> For end-user is just like one-click operation, he doesn't need "to
> >> generate the access token." All the magic comes from server-side. You
> >> will need an access token for every account you working with. This is
> >> just how OAuth works.
>
> >> On Fri, Nov 26, 2010 at 6:20 PM, Tom Callahan  
> >> wrote:
> >> > Hi All,
>
> >> > I am trying to develop a platform where I can allow people to login &
> >> > add multiple twitter accounts. They will be able to post tweets, view
> >> > posted tweets, view tweet replies etc.
>
> >> > I came to know that Basic Authentication has been stopped for Twitter
> >> > API & so I am using oAuth to connect to Twitter.
>
> >> > I have registered my application inhttp://dev.twitter.com/apps&have
> >> > got the access token and access token secret. However, the way I see
> >> > it now, for every Twitter account that gets added to my application,
> >> > the user will have to generate the access token. This process is very
> >> > complicated & is not user-friendly.
>
> >> > I am requesting you to please let me know how can I find a solution
> >> > for the same where I can automatically get the access token for all
> >> > the twitter accounts that gets added to my application. I have seen a
> >> > similar process in use here -http://mediafunnel.com/
>
> >> > Please help me with this. Your support & cooperation will be highly
> >> > appreciated.
>
> >> > Thanks in advance!!
>
> >> > Regards,
> >> > Tom
>
> >> > --
> >> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> >> > API updates via Twitter:http://twitter.com/twitterapi
> >> > Issues/Enhancements 
> >> > Tracker:http://code.google.com/p/twitter-api/issues/list
> >> > Change your membership to this 
> >> > group:http://groups.google.com/group/twitter-development-talk
>
> > --
> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > API updates via Twitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this 
> > group:http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Introducing Qwerly API (shameless plug)

2010-11-29 Thread Abraham Williams
Nice job Max. It was very accurate for my profile.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham  | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Sat, Nov 20, 2010 at 08:19, Max Niederhofer  wrote:

> Hi folks,
>
> I wanted to introduce myself. I'm Max, founder of Qwerly (http://
> qwerly.com/). Qwerly lets you find a person's other social network
> profiles using their Twitter username as a query. So @maxniederhofer
> resolves to my Facebook, LinkedIn, Foursquare, Plancast and so on (see
> here: http://qwerly.com/max).
>
> We've just launched our API (http://dev.qwerly.com/, documentation:
> http://dev.qwerly.com/docs) and I thought it might be useful for some
> of you to complement your user profiles or user data analysis.
>
> A few notes: no, we're not based on Rapleaf. This is something we've
> developed ourselves. We're very conscious that we only want to use
> public identifiers (e.g. not email) and only display data that is
> public on the web. We do not want to mix user ID data with cookie
> data, so we disallow passing on our data to data brokers/exchanges
> (Bluekai, eXelate) or ad networks. Our API is free for non-commercial
> use (pre-funding startups, not-for-profit web apps, commercial
> trials).
>
> I'd love for some of you to check it out & comment. Happy to answer
> any questions.
>
> Max Niederhofer
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: How do I find the URL of a Twitter user WWW page, having only their twitterID?

2010-11-29 Thread Abraham Williams
As I said in my email it was the second tip listed from the link.

https://twitter.com/account/redirect_by_id?id=9436992

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham  | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Mon, Nov 22, 2010 at 13:42, Kaspa  wrote:

> Sorry guys but none of the above tips seem to be working...
>
> Any other thoughts?
>
> K.
>
> On Nov 18, 11:17 pm, Abraham Williams <4bra...@gmail.com> wrote:
> > Second tip:
> http://blog.abrah.am/2010/04/little-known-twitter-and-twitterapi.html
> >
> > Abraham
> > -
> > Abraham Williams | Hacker Advocate | abrah.am
> > @abraham  | github.com/abraham |
> blog.abrah.am
> > This email is: [ ] shareable [x] ask first [ ] private.
> >
> > On Thu, Nov 18, 2010 at 14:15, Tom van der Woerdt  wrote:
> >
> > > Doesn't seem to work with "#newtwitter".
> >
> > > Tom
> >
> > > On 11/18/10 11:14 PM, @Red_Eyes wrote:
> > > > You can do it, but you have to be logged in first which suggests that
> > > > this would be a rate limited lookup.
> >
> > > > eg:http://twitter.com/?id=
> >
> > > > Regards
> >
> > > > On Nov 18, 6:00 pm, Kaspa  wrote:
> > > >> The title says it all. Been looking for some time now.
> > > >> (I know I can lookup the API for user detail and then use that.
> That's
> > > >> not what I want, I want a way of directly putting the URL together)
> >
> > > >> Are URLs that directly use userIDs in some way prohibited?
> >
> > > --
> > > Twitter developer documentation and resources:
> http://dev.twitter.com/doc
> > > API updates via Twitter:http://twitter.com/twitterapi
> > > Issues/Enhancements Tracker:
> > >http://code.google.com/p/twitter-api/issues/list
> > > Change your membership to this group:
> > >http://groups.google.com/group/twitter-development-talk
> >
> >
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] oAuth reporting a status update error when none exists

2010-11-29 Thread EastSideDev
I have an application that uses oAuth to post a tweet on behalf of a
user. I noticed today that when I do a status update, I'm getting a
"Status is a duplicate" error message, when in fact the status posted
correctly.

I have not changed my code, and I am using the Twitter oAuth library
(same code been working fine since June). Are we experiencing some API
issues?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Search with Geocode

2010-11-29 Thread Daniel
I have problems trying making queries as:

http://search.twitter.com/search.json?geocode=37.781157,-122.398720,1mi

The results allways:

{"results":[],"max_id":9449483417488384,"since_id":
9449483417488384,"refresh_url":"?
since_id=9449483417488384&q=","results_per_page":15,"page":
1,"completed_in":0.017688,"warning":"adjusted since_id to
9449483417488384 due to temporary
error","since_id_str":"9449483417488384","max_id_str":"9449483417488384","query":""}


You may try more options at: http://metaki.com

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Differences between "trends" and "trends/current"??

2010-11-29 Thread M. Edward (Ed) Borasky
I'm starting to write some code that uses the "trends" portions of the  
API. I notice that there are two "similar" endpoints, 'GET trends" and  
"GET trends/current". They look pretty much alike in the  
documentation, except for a minor format difference in the returned  
JSON. However, if I actually use the "Try it" option, it looks like  
"GET trends/current" returns more information.


Given that my application is a data collector, I'd obviously prefer  
more information and plan to code using "GET trends/current". Is this  
just a documentation glitch, or is the "new" format from "GET  
trends/current" an undocumented feature that might disappear?


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

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





--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Best scalable method to process mentions

2010-11-29 Thread fbparis
I guess you should use the stream api to get mentions in real time. No
need to process it directly, you could code a simple client connected
to the stream api which record new mention in database, then launch
your script time to time and get the mentions via the database rather
than via the twitter api.

On Nov 30, 1:25 am, Serdar  wrote:
> Hi I have just launched my first twitter application. Basically:
>
> -People send a tweet that mentions @appName (authorizing not needed)
> -App checks for new @appName mentions *from time to time*, and process
> them.
>
> There is a max mentions limit (200) that can be retrieved at a time
> via API. I know I'm not hitting this limit soon with the app but I
> want to code a scalable method fo get mentions.
>
> Unfortunaltely we do not have the option to get mentions in the
> 'oldest first' order.
>
> This causes a little tricky code for getting mentions in chunks and
> not missing older tweets. (Suppose you had 200+ mentions since last
> check).
>
> For testing I limit, 'max mentions to get at a time' to 10, in my code
> and it seems to be working.
>
> I won't go into more details...
>
> -I would like to know if any of you have coded something similar?
>
> -Would love to see an alternative, as I'm not happy with my code!
>
> -Is there an API method I could use for this purpose, which would make
> things easier?
>
> Thanks,
> Serdar.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Getting tweets from users following a particular user

2010-11-29 Thread fbparis
Simply create an account to follow them :) Or make a list...

On Nov 30, 1:51 am, Louis  wrote:
> I was under the impression that using 'follow' simply returns tweets
> or retweets which were originally created by, or were in reply to, a
> specific user - I'm interested in getting *any* tweet from all users
> following this special user (sampled possibly).
>
> For example, I could use it to see what people who follow @Microsoft
> talk about, Microsoft related or not.
>
> On Nov 29, 9:12 pm, "M. Edward (Ed) Borasky" 
>
>
>
>
>
>
> research.net> wrote:
> > Quoting Louis :
>
> > > I'd like to stream tweets from the set of users which follow a
> > > specific user. Is there a way to do this directly, or a way to get a
> > > list of such users, so I can then specify to filter tweets from them
> > > only?
>
> > It depends on how many followers the user has. Up to 5000, you can do  
> > it with the "follow" parameter either on the "filter" Streaming  
> > endpoint or on User Streams. Over 5000, you will need to get "elevated  
> > access" via Gnip.
>
> > --
> > M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb
>
> > "A mathematician is a device for turning coffee into theorems." - Paul Erdos

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Authenticating with $_SESSION['oauth']['oauth_token'] and $_SESSION['oauth']['oauth_token_secret'] returns "Request token must be exchanged for an access token before use"

2010-11-29 Thread Matt Harris
Tobias,

No problem. Glad you got it working.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Nov 29, 2010 at 4:55 PM, Tobias C. Jensen <2bia...@gmail.com> wrote:

> Never mind, problem solved. Dumb question! :)
>
> On 29 Nov., 23:41, "Tobias C. Jensen" <2bia...@gmail.com> wrote:
> > Hi guys.
> >
> > I'm trying to authenticate with the tmhOAuth PHP class by Matt Harris.
> >
> > I'm using $_SESSION['oauth']['oauth_token'] as 'user_token' and
> > $_SESSION['oauth']['oauth_token_secret'] as 'user_secret'.
> >
> > But when I try to verify_credentials it returns the error:
> >
> > {"request":"\/1\/account\/verify_credentials.json","error":"Request
> > token must be exchanged for an access token before use"}
> >
> > Am I doing it wrong? Is the oauth_token and oauth_token_secret
> > sessions not the right ones to use?
> >
> > If I use a token and secret that I stored a month ago it works just
> > fine..
> >
> > Thanks in advance!
> >
> > Regards,
> > Tobias C. Jensen
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Authenticating with $_SESSION['oauth']['oauth_token'] and $_SESSION['oauth']['oauth_token_secret'] returns "Request token must be exchanged for an access token before use"

2010-11-29 Thread Tobias C. Jensen
Never mind, problem solved. Dumb question! :)

On 29 Nov., 23:41, "Tobias C. Jensen" <2bia...@gmail.com> wrote:
> Hi guys.
>
> I'm trying to authenticate with the tmhOAuth PHP class by Matt Harris.
>
> I'm using $_SESSION['oauth']['oauth_token'] as 'user_token' and
> $_SESSION['oauth']['oauth_token_secret'] as 'user_secret'.
>
> But when I try to verify_credentials it returns the error:
>
> {"request":"\/1\/account\/verify_credentials.json","error":"Request
> token must be exchanged for an access token before use"}
>
> Am I doing it wrong? Is the oauth_token and oauth_token_secret
> sessions not the right ones to use?
>
> If I use a token and secret that I stored a month ago it works just
> fine..
>
> Thanks in advance!
>
> Regards,
> Tobias C. Jensen

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Getting tweets from users following a particular user

2010-11-29 Thread Louis
I was under the impression that using 'follow' simply returns tweets
or retweets which were originally created by, or were in reply to, a
specific user - I'm interested in getting *any* tweet from all users
following this special user (sampled possibly).

For example, I could use it to see what people who follow @Microsoft
talk about, Microsoft related or not.

On Nov 29, 9:12 pm, "M. Edward (Ed) Borasky"  wrote:
> Quoting Louis :
>
> > I'd like to stream tweets from the set of users which follow a
> > specific user. Is there a way to do this directly, or a way to get a
> > list of such users, so I can then specify to filter tweets from them
> > only?
>
> It depends on how many followers the user has. Up to 5000, you can do  
> it with the "follow" parameter either on the "filter" Streaming  
> endpoint or on User Streams. Over 5000, you will need to get "elevated  
> access" via Gnip.
>
> --
> M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb
>
> "A mathematician is a device for turning coffee into theorems." - Paul Erdos

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Best scalable method to process mentions

2010-11-29 Thread Serdar
Hi I have just launched my first twitter application. Basically:

-People send a tweet that mentions @appName (authorizing not needed)
-App checks for new @appName mentions *from time to time*, and process
them.

There is a max mentions limit (200) that can be retrieved at a time
via API. I know I'm not hitting this limit soon with the app but I
want to code a scalable method fo get mentions.

Unfortunaltely we do not have the option to get mentions in the
'oldest first' order.

This causes a little tricky code for getting mentions in chunks and
not missing older tweets. (Suppose you had 200+ mentions since last
check).

For testing I limit, 'max mentions to get at a time' to 10, in my code
and it seems to be working.

I won't go into more details...

-I would like to know if any of you have coded something similar?

-Would love to see an alternative, as I'm not happy with my code!

-Is there an API method I could use for this purpose, which would make
things easier?

Thanks,
Serdar.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] cancel follow request

2010-11-29 Thread mostafa farghaly
Hi,

Canceling outgoing follow request works fine on twitter.com by:
http://api.twitter.com/1/friendships/cancel.json

but calling it from the API return:
The server understood the request, but is refusing to fulfill it.

could you please allow us to cancel outgoing follow request from the
API.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: lang=en queries to search API not working

2010-11-29 Thread Tom Park
> We are seeing the same problem.  RSS feeds with lang=en stopped
> working ~2 days ago (they were working prior).

It appears if you use  iso_language_code=en  then it works.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: lang=en queries to search API not working

2010-11-29 Thread Tod
We are seeing the same problem.  RSS feeds with lang=en stopped
working ~2 days ago (they were working prior).

Tod

On Nov 29, 5:02 pm, Matt Harris  wrote:
> Thanks for the all the information you have collected. The team is
> investigating this issue and we'll let you know as soon as they have some
> news.
>
> Thanks for bearing with us,
>
> @themattharris
> Developer Advocate, Twitterhttp://twitter.com/themattharris
>
> On Mon, Nov 29, 2010 at 1:56 PM, Naveen  wrote:
> > Also seems to happen with the geocode parameter, adding a since_id
> > makes the results return but we should not be able to that.
>
> > On Nov 29, 10:22 am, clichekiller  wrote:
> > > This has been a problem for some time now, is nothing be done to
> > > address it?  The since fix isn't great because anything outside of
> > > that five to six day window will not be returned.
>
> > > On Nov 28, 5:23 am, MartinW  wrote:
>
> > > > Hi Steve,
>
> > > > I've found the same problem over the past couple of days too. I had
> > > > also narrowed it down to the lang parameter but selecting all does
> > > > still not guarantee results.
>
> > > > This is now impacting my live site as no results are being returned.
> > > > I'm also going to investigate whether rate limiting could be the
> > > > issue.
>
> > > > Please let me know if you get any further with your investigations.
>
> > > > Cheers
> > > > Martin Wright
>
> > > >http://www.twitseek.com
>
> > > > On Nov 27, 3:42 am, steve  wrote:
>
> > > > > This reproduces even onhttp://search.twitter.com.  If you try to
> > > > > filter to "en" only results you get back 0 items for most queries.
> > > > > Select "try all languages" from the search portal or remove "lang=en"
> > > > > from your API query and you get results for your queries (most of
> > > > > which are in english.)
>
> > > > > What's weird is this seemed to be working fine until about 2 days
> > > > > ago.  And its been very intermittent since.  Yesterday queries would
> > > > > work for a while then they would stop working (same query to the
> > > > > API.)  But today they seem to be broken for me all day.  Other
> > members
> > > > > of my team reported the same issue yesterday so it defenitly seems to
> > > > > be something on your end.
>
> > > > > BTW... When calling the API and this happens we're getting back an
> > > > > error similar to this:
>
> > jsonp1290717568994({"results":[],"max_id":7896158276488192,"since_id":
> > > > > 7896158276488192,"refresh_url":"?
>
> > since_id=7896158276488192&q=Thanksgiving","results_per_page":50,"page":
> > > > > 1,"completed_in":0.019352,"warning":"adjusted since_id to
> > > > > 7896158276488192 due to temporary
>
> > error","since_id_str":"7896158276488192","max_id_str":"7896158276488192","q
> > ­uery":"Thanksgiving"});
>
> > > > > I did a search and this error was reported back in June but nobody
> > > > > ever responded... Crossing my fingers that this message doesn't go
> > > > > into the void as well...
>
> > --
> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > API updates via Twitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> >http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> >http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Authenticating with $_SESSION['oauth']['oauth_token'] and $_SESSION['oauth']['oauth_token_secret'] returns "Request token must be exchanged for an access token before use"

2010-11-29 Thread Tobias C. Jensen
Hi guys.

I'm trying to authenticate with the tmhOAuth PHP class by Matt Harris.

I'm using $_SESSION['oauth']['oauth_token'] as 'user_token' and
$_SESSION['oauth']['oauth_token_secret'] as 'user_secret'.

But when I try to verify_credentials it returns the error:

{"request":"\/1\/account\/verify_credentials.json","error":"Request
token must be exchanged for an access token before use"}

Am I doing it wrong? Is the oauth_token and oauth_token_secret
sessions not the right ones to use?

If I use a token and secret that I stored a month ago it works just
fine..

Thanks in advance!

Regards,
Tobias C. Jensen

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Trends data not updating for woeid = 4118 (Toronto) since Nov 22

2010-11-29 Thread Matt Harris
Hi Ian,

Thanks for letting us know about this. The team found an issue in the code
and have been working on a fix. You should see the trends updated over the
next few hours (if they aren't already).

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Fri, Nov 26, 2010 at 12:28 PM, Ian Irving  wrote:

> polling http://api.twitter.com/1/trends/4118.json
>
> has been returning the same data set since ~ Nov 22
>
> in fact the data set reports
>
> as_of: "2010-11-26T20:18:43Z"
> created_at: "2010-11-22T22:13:28Z"
>
> I've retrieved a few other locations and not seen a problem.
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] collecting tweet message ids

2010-11-29 Thread Matt Harris
Hi Rajinder,

We would really like to offer access to the historical timeline but our
infrastructure doesn't allow access to anymore than 3200 right now. The
Tweets are safe and have not been deleted or lost, they are just not
available. We also don't have a timeline for access to historical tweets
right now.

In answer to your second question, when there are no more statuses available
we'll return an HTTP 200 with an empty timeline. For example:

JSON:
[]

XML:




Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Nov 29, 2010 at 10:42 AM, Rajinder Yadav wrote:

> On Mon, Nov 29, 2010 at 12:27 PM, Matt Harris 
> wrote:
> > Hi Rajinder.
> > The user_timeline returns upto 200 statuses per page starting with the
> most
> > recent. To retrieve a complete page of 200 you will want to make a
> request
> > similar to:
> >
> >
> http://api.twitter.com/1/statuses/user_timeline.json?count=200\&include_rts=1
> > This request will return upto the most recent 200 statuses. To retrieve
> the
> > next 200 you would make this request:
> >
> >
> http://api.twitter.com/1/statuses/user_timeline.json?count=200\&include_rts=1\&page=2
> > When requesting this many statuses at once you may get a 503 error
> response
> > from us. If this happens wait a few seconds and try the request again.
> > Hope that helps,
> > @themattharris
> > Developer Advocate, Twitter
> > http://twitter.com/themattharris
>
> Hi Matt,
>
> thanks, that is a better solution than what I have been using.
> Questions, am I limited up to only 3200 statuses? is it possible to go
> beyond this limit and get the entire statues for a user?
>
> When there are no more status request (empty set), what http error
> code can I expect. Likewise if 3200 status is a hard limit what http
> error will I get when this limit is hit?
>
> Finally if I have exceeded my rate limit what is the http code returned?
>
> Kind Regards,
> Rajinder Yadav
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: lang=en queries to search API not working

2010-11-29 Thread Matt Harris
Thanks for the all the information you have collected. The team is
investigating this issue and we'll let you know as soon as they have some
news.

Thanks for bearing with us,

@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Nov 29, 2010 at 1:56 PM, Naveen  wrote:

> Also seems to happen with the geocode parameter, adding a since_id
> makes the results return but we should not be able to that.
>
>
> On Nov 29, 10:22 am, clichekiller  wrote:
> > This has been a problem for some time now, is nothing be done to
> > address it?  The since fix isn't great because anything outside of
> > that five to six day window will not be returned.
> >
> > On Nov 28, 5:23 am, MartinW  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi Steve,
> >
> > > I've found the same problem over the past couple of days too. I had
> > > also narrowed it down to the lang parameter but selecting all does
> > > still not guarantee results.
> >
> > > This is now impacting my live site as no results are being returned.
> > > I'm also going to investigate whether rate limiting could be the
> > > issue.
> >
> > > Please let me know if you get any further with your investigations.
> >
> > > Cheers
> > > Martin Wright
> >
> > >http://www.twitseek.com
> >
> > > On Nov 27, 3:42 am, steve  wrote:
> >
> > > > This reproduces even onhttp://search.twitter.com.  If you try to
> > > > filter to "en" only results you get back 0 items for most queries.
> > > > Select "try all languages" from the search portal or remove "lang=en"
> > > > from your API query and you get results for your queries (most of
> > > > which are in english.)
> >
> > > > What's weird is this seemed to be working fine until about 2 days
> > > > ago.  And its been very intermittent since.  Yesterday queries would
> > > > work for a while then they would stop working (same query to the
> > > > API.)  But today they seem to be broken for me all day.  Other
> members
> > > > of my team reported the same issue yesterday so it defenitly seems to
> > > > be something on your end.
> >
> > > > BTW... When calling the API and this happens we're getting back an
> > > > error similar to this:
> >
> > > >
> jsonp1290717568994({"results":[],"max_id":7896158276488192,"since_id":
> > > > 7896158276488192,"refresh_url":"?
> > > >
> since_id=7896158276488192&q=Thanksgiving","results_per_page":50,"page":
> > > > 1,"completed_in":0.019352,"warning":"adjusted since_id to
> > > > 7896158276488192 due to temporary
> > > >
> error","since_id_str":"7896158276488192","max_id_str":"7896158276488192","q
> ­uery":"Thanksgiving"});
> >
> > > > I did a search and this error was reported back in June but nobody
> > > > ever responded... Crossing my fingers that this message doesn't go
> > > > into the void as well...
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: lang=en queries to search API not working

2010-11-29 Thread Naveen
Also seems to happen with the geocode parameter, adding a since_id
makes the results return but we should not be able to that.


On Nov 29, 10:22 am, clichekiller  wrote:
> This has been a problem for some time now, is nothing be done to
> address it?  The since fix isn't great because anything outside of
> that five to six day window will not be returned.
>
> On Nov 28, 5:23 am, MartinW  wrote:
>
>
>
>
>
>
>
> > Hi Steve,
>
> > I've found the same problem over the past couple of days too. I had
> > also narrowed it down to the lang parameter but selecting all does
> > still not guarantee results.
>
> > This is now impacting my live site as no results are being returned.
> > I'm also going to investigate whether rate limiting could be the
> > issue.
>
> > Please let me know if you get any further with your investigations.
>
> > Cheers
> > Martin Wright
>
> >http://www.twitseek.com
>
> > On Nov 27, 3:42 am, steve  wrote:
>
> > > This reproduces even onhttp://search.twitter.com.  If you try to
> > > filter to "en" only results you get back 0 items for most queries.
> > > Select "try all languages" from the search portal or remove "lang=en"
> > > from your API query and you get results for your queries (most of
> > > which are in english.)
>
> > > What's weird is this seemed to be working fine until about 2 days
> > > ago.  And its been very intermittent since.  Yesterday queries would
> > > work for a while then they would stop working (same query to the
> > > API.)  But today they seem to be broken for me all day.  Other members
> > > of my team reported the same issue yesterday so it defenitly seems to
> > > be something on your end.
>
> > > BTW... When calling the API and this happens we're getting back an
> > > error similar to this:
>
> > > jsonp1290717568994({"results":[],"max_id":7896158276488192,"since_id":
> > > 7896158276488192,"refresh_url":"?
> > > since_id=7896158276488192&q=Thanksgiving","results_per_page":50,"page":
> > > 1,"completed_in":0.019352,"warning":"adjusted since_id to
> > > 7896158276488192 due to temporary
> > > error","since_id_str":"7896158276488192","max_id_str":"7896158276488192","q
> > >  ­uery":"Thanksgiving"});
>
> > > I did a search and this error was reported back in June but nobody
> > > ever responded... Crossing my fingers that this message doesn't go
> > > into the void as well...

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Search API Optional lang Has Problem.

2010-11-29 Thread redevries
There is an issue with Twitter's language detection. When specifying a
language (lang=nl) , there is no result, when using lang=all, I do get
results, in my language.

Using lang=all gives us so many results, that we're hitting the rate
limits with lots of stuff we're throwing away straight away after
we've passed it past our own language detection

Are there any plans to fix this?

On Nov 29, 1:50 am, Jeong Hoon Kim  wrote:
> About 5 days ago, Suddenly Search API Optional lang had no results..My
> optional lang is ko.
> Did anybody apply Search API lang option? Did the results come out
> correctly?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Getting tweets from users following a particular user

2010-11-29 Thread M. Edward (Ed) Borasky

Quoting Louis :


I'd like to stream tweets from the set of users which follow a
specific user. Is there a way to do this directly, or a way to get a
list of such users, so I can then specify to filter tweets from them
only?


It depends on how many followers the user has. Up to 5000, you can do  
it with the "follow" parameter either on the "filter" Streaming  
endpoint or on User Streams. Over 5000, you will need to get "elevated  
access" via Gnip.


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

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


--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Getting tweets from users following a particular user

2010-11-29 Thread Louis
I'd like to stream tweets from the set of users which follow a
specific user. Is there a way to do this directly, or a way to get a
list of such users, so I can then specify to filter tweets from them
only?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Where can I find the updated rate limit after OAuth?

2010-11-29 Thread Taylor Singletary
statuses/followers and statuses/friends don't require authentication and are
likely subject to this condition. When calling these resources, are you
explicitly providing the user_id or screen_name?

These methods are some of the oldest offered in the API and aren't really
the best choices for consuming data of that nature. You would be better
positioned to use friends/ids and followers/ids in conjunction with
users/lookup

Taylor


On Mon, Nov 29, 2010 at 10:54 AM, m36tb6ll  wrote:

>
> Thanks for the reply, Taylor...
>
> Are the API requests "statuses/followers" and "statuses/friends"
> included in the "public-only" resources that you are referring to? Or,
> I'm I not making any sense? :)
>
> Randolph
>
>
> On Nov 30, 2:19 am, Taylor Singletary 
> wrote:
> > There are some API methods that don't have the concept of an
> unauthenticated
> > user -- these "public-only" resources will not consider OAuth credentials
> > when calculating the rate limit. We are looking to make the application
> of
> > rate limiting across resources, regardless of whether the resource
> expects
> > auth or not, consistent in the future.
> >
> > Taylor
> >
> > On Mon, Nov 29, 2010 at 10:05 AM, Randolph Estebat  >wrote:
> >
> >
> >
> > > Thanks for the reply, Igor...
> >
> > > Yes it should be. The problem is that the headers are giving me the
> limit
> > > 150 rather than the expected 350 after OAuth.
> >
> > > Any ideas why this is the case?
> >
> > > Thanks again.
> >
> > > On Mon, Nov 29, 2010 at 8:17 PM, Igor Kharin 
> wrote:
> >
> > >> All rate limited methods responses include X-Ratelimit-Remaining and
> > >> X-Ratelimit-Limit HTTP-headers, use them or
> > >>http://dev.twitter.com/doc/get/account/rate_limit_status
> >
> > >> On Fri, Nov 26, 2010 at 1:55 PM, m36tb6ll 
> wrote:
> >
> > >> > Hi! I am a newbie in the field and am working on my first twitter
> web
> > >> > app. I have created a variable loop timer using rate_limit_status
> > >> > which works well in maximizing the usage of the twitter API without
> > >> > going over the hourly limits.
> >
> > >> > Now that I have incorporated OAuth, I was expecting to see the limit
> > >> > increase from 150 (unauthenticated requests) to 350 (authenticated
> > >> > requests). But, I am still seeing the 150 limit both in the response
> > >> > headers and Firebug when calling rate_limit_status API after OAuth.
> >
> > >> > Is there something I'm missing here?
> >
> > >> > Your help would be greatly appreciated. Thanks in advance...
> >
> > >> > --
> > >> > Twitter developer documentation and resources:
> > >>http://dev.twitter.com/doc
> > >> > API updates via Twitter:http://twitter.com/twitterapi
> > >> > Issues/Enhancements Tracker:
> > >>http://code.google.com/p/twitter-api/issues/list
> > >> > Change your membership to this group:
> > >>http://groups.google.com/group/twitter-development-talk
> >
> > >> --
> > >> Twitter developer documentation and resources:
> http://dev.twitter.com/doc
> > >> API updates via Twitter:http://twitter.com/twitterapi
> > >> Issues/Enhancements Tracker:
> > >>http://code.google.com/p/twitter-api/issues/list
> > >> Change your membership to this group:
> > >>http://groups.google.com/group/twitter-development-talk
> >
> > > --
> > > Randolph Estebat
> >
> > > --
> > > Twitter developer documentation and resources:
> http://dev.twitter.com/doc
> > > API updates via Twitter:http://twitter.com/twitterapi
> > > Issues/Enhancements Tracker:
> > >http://code.google.com/p/twitter-api/issues/list
> > > Change your membership to this group:
> > >http://groups.google.com/group/twitter-development-talk
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Where can I find the updated rate limit after OAuth?

2010-11-29 Thread m36tb6ll

Thanks for the reply, Taylor...

Are the API requests "statuses/followers" and "statuses/friends"
included in the "public-only" resources that you are referring to? Or,
I'm I not making any sense? :)

Randolph


On Nov 30, 2:19 am, Taylor Singletary 
wrote:
> There are some API methods that don't have the concept of an unauthenticated
> user -- these "public-only" resources will not consider OAuth credentials
> when calculating the rate limit. We are looking to make the application of
> rate limiting across resources, regardless of whether the resource expects
> auth or not, consistent in the future.
>
> Taylor
>
> On Mon, Nov 29, 2010 at 10:05 AM, Randolph Estebat wrote:
>
>
>
> > Thanks for the reply, Igor...
>
> > Yes it should be. The problem is that the headers are giving me the limit
> > 150 rather than the expected 350 after OAuth.
>
> > Any ideas why this is the case?
>
> > Thanks again.
>
> > On Mon, Nov 29, 2010 at 8:17 PM, Igor Kharin  wrote:
>
> >> All rate limited methods responses include X-Ratelimit-Remaining and
> >> X-Ratelimit-Limit HTTP-headers, use them or
> >>http://dev.twitter.com/doc/get/account/rate_limit_status
>
> >> On Fri, Nov 26, 2010 at 1:55 PM, m36tb6ll  wrote:
>
> >> > Hi! I am a newbie in the field and am working on my first twitter web
> >> > app. I have created a variable loop timer using rate_limit_status
> >> > which works well in maximizing the usage of the twitter API without
> >> > going over the hourly limits.
>
> >> > Now that I have incorporated OAuth, I was expecting to see the limit
> >> > increase from 150 (unauthenticated requests) to 350 (authenticated
> >> > requests). But, I am still seeing the 150 limit both in the response
> >> > headers and Firebug when calling rate_limit_status API after OAuth.
>
> >> > Is there something I'm missing here?
>
> >> > Your help would be greatly appreciated. Thanks in advance...
>
> >> > --
> >> > Twitter developer documentation and resources:
> >>http://dev.twitter.com/doc
> >> > API updates via Twitter:http://twitter.com/twitterapi
> >> > Issues/Enhancements Tracker:
> >>http://code.google.com/p/twitter-api/issues/list
> >> > Change your membership to this group:
> >>http://groups.google.com/group/twitter-development-talk
>
> >> --
> >> Twitter developer documentation and resources:http://dev.twitter.com/doc
> >> API updates via Twitter:http://twitter.com/twitterapi
> >> Issues/Enhancements Tracker:
> >>http://code.google.com/p/twitter-api/issues/list
> >> Change your membership to this group:
> >>http://groups.google.com/group/twitter-development-talk
>
> > --
> > Randolph Estebat
>
> > --
> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > API updates via Twitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> >http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> >http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] collecting tweet message ids

2010-11-29 Thread Rajinder Yadav
On Mon, Nov 29, 2010 at 12:27 PM, Matt Harris  wrote:
> Hi Rajinder.
> The user_timeline returns upto 200 statuses per page starting with the most
> recent. To retrieve a complete page of 200 you will want to make a request
> similar to:
>
>  http://api.twitter.com/1/statuses/user_timeline.json?count=200\&include_rts=1
> This request will return upto the most recent 200 statuses. To retrieve the
> next 200 you would make this request:
>
>  
> http://api.twitter.com/1/statuses/user_timeline.json?count=200\&include_rts=1\&page=2
> When requesting this many statuses at once you may get a 503 error response
> from us. If this happens wait a few seconds and try the request again.
> Hope that helps,
> @themattharris
> Developer Advocate, Twitter
> http://twitter.com/themattharris

Hi Matt,

thanks, that is a better solution than what I have been using.
Questions, am I limited up to only 3200 statuses? is it possible to go
beyond this limit and get the entire statues for a user?

When there are no more status request (empty set), what http error
code can I expect. Likewise if 3200 status is a hard limit what http
error will I get when this limit is hit?

Finally if I have exceeded my rate limit what is the http code returned?

Kind Regards,
Rajinder Yadav

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: randomly 401 error

2010-11-29 Thread themattharris
Hi Alvin,

The error in that response tells me your signature is incorrect.
Double check you are generating your signature using the algorithm
described here:
http://dev.twitter.com/auth#signing-requests

In particular I notice the parameters in your GET request are not in
lexicographical order, and so I wonder if they may not be in order in
your signature base string.

Best,
Matt

On Nov 24, 10:10 pm, Alvin Wang  wrote:
> hello, Matt
>
> After removing the symbol "&" and parameter realm, the frequency of
> 401 is lower.
> But it becomes the problem as I attach below
>
> http://9.share.photo.xuite.net/u9011022/19d319b/4424859/170775808_x.jpg
>
> On 11月25日, 上午2時32分, Matt Harris  wrote:
>
>
>
>
>
>
>
> > Hey Alvin,
>
> > Your URL looks badly formed as it includes
> > .../home_timeline.json?&count=5 I would expect to see
> > .../home_timeline.json?count=5...
> > (so no & after the ?). You also have realm in your query string when it
> > isn't needed. Realm is optional and when used, is only used in the
> > Authorization header. When using OAuth in the query string you shouldn't
> > pass realm. Your parameters should also be in lexicographical order.
>
> > In your case I would have expected your URL to look like this:
>
> >http://api.twitter.com/1/statuses/home_timeline.json?count=5&oauth_co...
> > &page=1
>
> > You can read more about signing requests on our developer resources site:
> >http://dev.twitter.com/pages/auth#signing-requests
>
> > Best
> > @themattharris
> > Developer Advocate, Twitterhttp://twitter.com/themattharris
>
> > 2010/11/23 Alvin Wang 
>
> > > hello Matt,
> > > here is the image when 401 occurs.
>
> > >http://dl.dropbox.com/u/162763/1.png
>
> > > On 11月23日, 下午2時17分, Matt Harris  wrote:
> > > > Hey Alvin,
>
> > > > So the community and developers can help you we'll need to know a little
> > > bit
> > > > more about the error you are receiving. Things like the API request you
> > > are
> > > > making, the request basestring, and the full response you get back are
> > > good
> > > > things to include.
>
> > > > Be careful to not include any passwords or OAuth secrets in anything you
> > > > share.
>
> > > > Best,
> > > > @themattharris
> > > > Developer Advocate, Twitterhttp://twitter.com/themattharris
>
> > > > 2010/11/22 Alvin Wang 
>
> > > > > Are there any other solutions? Retry will still got 401 randomly. Just
> > > > > wondering is there any twitter tech person can help?
>
> > > > > On 11月23日, 上午3時28分, Nick Bradbury  wrote:
> > > > > > I also ran into this problem, even though I knew the signature was
> > > > > > fine.  This post from a Twitter "Developer Advocate" indicates that
> > > > > a401may be due to Twitter being stressed:
>
> > >http://www.devcomments.com/re-intermittent-401-and-502-during-oauth-p...
>
> > > > > > In my case, ignoring the401and resending the request a little later
> > > > > > solved the problem the majority of the time.
>
> > > > > > On Nov 22, 2:43 am, Alvin Wang  wrote:
>
> > > > > > > Hi,
> > > > > > > I am currently developing an application using twitter api.
> > > > > > > However, i will ramdomly receive401error (invalid signature).
> > > > > > > Sometime it's working fine but sometime are not.
> > > > > > > Can you please help us to resolve this problem?
>
> > > > > > > BR,
> > > > > > > Alvin- 隱藏被引用文字 -
>
> > > > > > - 顯示被引用文字 -
>
> > > > > --
> > > > > Twitter developer documentation and resources:
> > >http://dev.twitter.com/doc
> > > > > API updates via Twitter:http://twitter.com/twitterapi
> > > > > Issues/Enhancements Tracker:
> > > > >http://code.google.com/p/twitter-api/issues/list
> > > > > Change your membership to this group:
> > > > >http://groups.google.com/group/twitter-development-talk
>
> > > --
> > > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > > API updates via Twitter:http://twitter.com/twitterapi
> > > Issues/Enhancements Tracker:
> > >http://code.google.com/p/twitter-api/issues/list
> > > Change your membership to this group:
> > >http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Search API Optional lang Has Problem.

2010-11-29 Thread clichekiller
This has happened before.  Appending a since clause works around it,
but limits your search results to only five days.  Also last time this
happened they fixed it within a few weeks.  I just wish we could get
an official comment on this.

On Nov 28, 5:50 pm, Jeong Hoon Kim  wrote:
> About 5 days ago, Suddenly Search API Optionallanghad no results..My
> optionallangis ko.
> Did anybody apply Search APIlangoption? Did the results come out
> correctly?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] API call for Replying a tweet

2010-11-29 Thread avinash
Hi,
I'm building a website where i want authenticated twitter users to
reply to their tweets.
Here are the details, in my website i have users who get authenticated
from twitter end via OAuth.
I then fetch their timelines.
Now what i want to implement is that users should be able to reply to
the tweets from my website.
Is it possible that when the user wishes to reply and clicks on the
"Reply" link in my website he/she is shown the same screen which we
see when we click on "Reply" link while replying to a tweet @twitter.

Please do guide me if I could implement such a feature via some api/
url if its not a security issue at your end.
Thanks,
Avinash

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: lang=en queries to search API not working

2010-11-29 Thread clichekiller
This has been a problem for some time now, is nothing be done to
address it?  The since fix isn't great because anything outside of
that five to six day window will not be returned.

On Nov 28, 5:23 am, MartinW  wrote:
> Hi Steve,
>
> I've found the same problem over the past couple of days too. I had
> also narrowed it down to the lang parameter but selecting all does
> still not guarantee results.
>
> This is now impacting my live site as no results are being returned.
> I'm also going to investigate whether rate limiting could be the
> issue.
>
> Please let me know if you get any further with your investigations.
>
> Cheers
> Martin Wright
>
> http://www.twitseek.com
>
> On Nov 27, 3:42 am, steve  wrote:
>
>
>
> > This reproduces even onhttp://search.twitter.com.  If you try to
> > filter to "en" only results you get back 0 items for most queries.
> > Select "try all languages" from the search portal or remove "lang=en"
> > from your API query and you get results for your queries (most of
> > which are in english.)
>
> > What's weird is this seemed to be working fine until about 2 days
> > ago.  And its been very intermittent since.  Yesterday queries would
> > work for a while then they would stop working (same query to the
> > API.)  But today they seem to be broken for me all day.  Other members
> > of my team reported the same issue yesterday so it defenitly seems to
> > be something on your end.
>
> > BTW... When calling the API and this happens we're getting back an
> > error similar to this:
>
> > jsonp1290717568994({"results":[],"max_id":7896158276488192,"since_id":
> > 7896158276488192,"refresh_url":"?
> > since_id=7896158276488192&q=Thanksgiving","results_per_page":50,"page":
> > 1,"completed_in":0.019352,"warning":"adjusted since_id to
> > 7896158276488192 due to temporary
> > error","since_id_str":"7896158276488192","max_id_str":"7896158276488192","q­uery":"Thanksgiving"});
>
> > I did a search and this error was reported back in June but nobody
> > ever responded... Crossing my fingers that this message doesn't go
> > into the void as well...

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Where can I find the updated rate limit after OAuth?

2010-11-29 Thread Taylor Singletary
There are some API methods that don't have the concept of an unauthenticated
user -- these "public-only" resources will not consider OAuth credentials
when calculating the rate limit. We are looking to make the application of
rate limiting across resources, regardless of whether the resource expects
auth or not, consistent in the future.

Taylor

On Mon, Nov 29, 2010 at 10:05 AM, Randolph Estebat wrote:

>
> Thanks for the reply, Igor...
>
> Yes it should be. The problem is that the headers are giving me the limit
> 150 rather than the expected 350 after OAuth.
>
> Any ideas why this is the case?
>
> Thanks again.
>
>
>
> On Mon, Nov 29, 2010 at 8:17 PM, Igor Kharin  wrote:
>
>> All rate limited methods responses include X-Ratelimit-Remaining and
>> X-Ratelimit-Limit HTTP-headers, use them or
>> http://dev.twitter.com/doc/get/account/rate_limit_status
>>
>> On Fri, Nov 26, 2010 at 1:55 PM, m36tb6ll  wrote:
>> >
>> > Hi! I am a newbie in the field and am working on my first twitter web
>> > app. I have created a variable loop timer using rate_limit_status
>> > which works well in maximizing the usage of the twitter API without
>> > going over the hourly limits.
>> >
>> > Now that I have incorporated OAuth, I was expecting to see the limit
>> > increase from 150 (unauthenticated requests) to 350 (authenticated
>> > requests). But, I am still seeing the 150 limit both in the response
>> > headers and Firebug when calling rate_limit_status API after OAuth.
>> >
>> > Is there something I'm missing here?
>> >
>> > Your help would be greatly appreciated. Thanks in advance...
>> >
>> > --
>> > Twitter developer documentation and resources:
>> http://dev.twitter.com/doc
>> > API updates via Twitter: http://twitter.com/twitterapi
>> > Issues/Enhancements Tracker:
>> http://code.google.com/p/twitter-api/issues/list
>> > Change your membership to this group:
>> http://groups.google.com/group/twitter-development-talk
>> >
>>
>> --
>> Twitter developer documentation and resources: http://dev.twitter.com/doc
>> API updates via Twitter: http://twitter.com/twitterapi
>> Issues/Enhancements Tracker:
>> http://code.google.com/p/twitter-api/issues/list
>> Change your membership to this group:
>> http://groups.google.com/group/twitter-development-talk
>>
>
>
>
> --
> Randolph Estebat
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Search API Optional lang Has Problem.

2010-11-29 Thread Hayes Davis
I'm seeing this as well. Including filter:links or setting that language
causes the search to fail. I get an error message saying "since_id has been
adjusted due to a temporary error". I'm *not* including a since_id in the
search parameters.

Hayes


On Mon, Nov 29, 2010 at 10:08 AM, Randomness wrote:

> Same problem here. When lang=all is used I am getting results. When a
> language is specified I get zero results most of the time, while in
> some cases I do get a result. Seems very strange.
>
> On Nov 29, 9:25 am, fbparis  wrote:
> > And same with some search operators (like source:xxx)
> >
> > Sorry for posting twice :)
> >
> > On Nov 29, 1:50 am, Jeong Hoon Kim  wrote:
> >
> >
> >
> > > About 5 days ago, Suddenly Search API Optional lang had no results..My
> > > optional lang is ko.
> > > Did anybody apply Search API lang option? Did the results come out
> > > correctly?- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Search API Optional lang Has Problem.

2010-11-29 Thread Randomness
Same problem here. When lang=all is used I am getting results. When a
language is specified I get zero results most of the time, while in
some cases I do get a result. Seems very strange.

On Nov 29, 9:25 am, fbparis  wrote:
> And same with some search operators (like source:xxx)
>
> Sorry for posting twice :)
>
> On Nov 29, 1:50 am, Jeong Hoon Kim  wrote:
>
>
>
> > About 5 days ago, Suddenly Search API Optional lang had no results..My
> > optional lang is ko.
> > Did anybody apply Search API lang option? Did the results come out
> > correctly?- Hide quoted text -
>
> - Show quoted text -

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Where can I find the updated rate limit after OAuth?

2010-11-29 Thread Randolph Estebat
Thanks for the reply, Igor...

Yes it should be. The problem is that the headers are giving me the limit
150 rather than the expected 350 after OAuth.

Any ideas why this is the case?

Thanks again.


On Mon, Nov 29, 2010 at 8:17 PM, Igor Kharin  wrote:

> All rate limited methods responses include X-Ratelimit-Remaining and
> X-Ratelimit-Limit HTTP-headers, use them or
> http://dev.twitter.com/doc/get/account/rate_limit_status
>
> On Fri, Nov 26, 2010 at 1:55 PM, m36tb6ll  wrote:
> >
> > Hi! I am a newbie in the field and am working on my first twitter web
> > app. I have created a variable loop timer using rate_limit_status
> > which works well in maximizing the usage of the twitter API without
> > going over the hourly limits.
> >
> > Now that I have incorporated OAuth, I was expecting to see the limit
> > increase from 150 (unauthenticated requests) to 350 (authenticated
> > requests). But, I am still seeing the 150 limit both in the response
> > headers and Firebug when calling rate_limit_status API after OAuth.
> >
> > Is there something I'm missing here?
> >
> > Your help would be greatly appreciated. Thanks in advance...
> >
> > --
> > Twitter developer documentation and resources:
> http://dev.twitter.com/doc
> > API updates via Twitter: http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
> >
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>



-- 
Randolph Estebat

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Error creating tweets by API

2010-11-29 Thread Matt Harris
Hi Luis,

So we can help you can you post the API request and response body. It maybe
you have something wrong with your character encoding. I'm looking for
information such including your OAuth Basestring and POST parameters.

Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Sat, Nov 27, 2010 at 5:08 AM, Luis Victor Quintas <
luisvictorquin...@gmail.com> wrote:

> I discovered ...
>
> When I had the words "And you?" equivalent to "And you?" in Portuguese, he
> returned the error 400.
>
> Now that I have drawn is functioning normally, not strange?
>
> Regards,
>
> Luís Victor Quintas
>
> 2010/11/27 Andy Matsubara 
>
> Twitter returns error when you submit duplicate tweets.
>> I guess it is your case.
>>
>> Andy Matsubara
>>
>> On Sat, Nov 27, 2010 at 6:11 AM, Luis Victor Quintas <
>> luisvictorquin...@gmail.com> wrote:
>>
>>> The API is not timed with, and still returns error 400! 404 returns in a
>>> few moments ...
>>>
>>> If I try to publish a tweet with other text, works perfectly.
>>>
>>> It may have been blocked?
>>>
>>> Regards,
>>>
>>> Luís Victor Quintas
>>>
>>> 2010/11/26 Igor Kharin 
>>>
>>> http://apiwiki.twitter.com/w/page/22554652/HTTP-Response-Codes-and-Errors

 > 400 Bad Request: The request was invalid.  An accompanying error
 message will explain why. This is the status code will be returned during
 rate limiting.
 > 401 Unauthorized: Authentication credentials were missing or
 incorrect.

 Response body may be helpful as well.

 On Fri, Nov 26, 2010 at 3:08 AM, Luis Victor Quintas
  wrote:
 > Hello everybody,
 >
 > I created an application using the Twitter API, the TwitVou.com. It is
 > an application for creating invitations and see who will participate.
 >
 > Whenever you create an invitation or a user participates in an
 > invitation, the application publishes a tweet.
 >
 > A few days ago that is no longer publishing the tweets, and returns
 > the error 400 or 401. When I try to publish other texts, works
 > normally by the API.
 >
 > Anyone know that it might be?
 >
 > Regards,
 >
 > Luís Victor Quintas
 >
 > --
 > Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 > API updates via Twitter: http://twitter.com/twitterapi
 > Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 > Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk
 >

 --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

>>>
>>>
>>>
>>> --
>>> Luís Victor Quintas
>>>  luisvictorquintas
>>>  luisvictorquin...@gmail.com
>>>  luisvictorquintas
>>>
>>>  --
>>> Twitter developer documentation and resources:
>>> http://dev.twitter.com/doc
>>> API updates via Twitter: http://twitter.com/twitterapi
>>> Issues/Enhancements Tracker:
>>> http://code.google.com/p/twitter-api/issues/list
>>> Change your membership to this group:
>>> http://groups.google.com/group/twitter-development-talk
>>>
>>
>>  --
>> Twitter developer documentation and resources: http://dev.twitter.com/doc
>> API updates via Twitter: http://twitter.com/twitterapi
>> Issues/Enhancements Tracker:
>> http://code.google.com/p/twitter-api/issues/list
>> Change your membership to this group:
>> http://groups.google.com/group/twitter-development-talk
>>
>
>
>
> --
> Luís Victor Quintas
>  luisvictorquintas
>  luisvictorquin...@gmail.com
>  luisvictorquintas
>
>  --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] collecting tweet message ids

2010-11-29 Thread Matt Harris
Hi Rajinder.

The user_timeline returns upto 200 statuses per page starting with the most
recent. To retrieve a complete page of 200 you will want to make a request
similar to:

http://api.twitter.com/1/statuses/user_timeline.json?count=200\&include_rts=1

This request will return upto the most recent 200 statuses. To retrieve the
next 200 you would make this request:

http://api.twitter.com/1/statuses/user_timeline.json?count=200\&include_rts=1\&page=2

When requesting this many statuses at once you may get a 503 error response
from us. If this happens wait a few seconds and try the request again.

Hope that helps,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Thu, Nov 25, 2010 at 9:07 PM, Rajinder Yadav  wrote:

> Hi I would like to know how I can go about retrieving all the tweet message
> ids from a user's timeline?
>
> I am using the user_timeline to get the message ids, is there a better
> faster way?
>
> The following page seems to indicate I can obtain up to 3200 statuses.
>
> http://dev.twitter.com/doc/get/statuses/user_timeline
>
> However I am not able to fetch 3200 statuses. Also if I pass in a count of
> 200, I something only get 20 in my result other times 4, this occurs in the
> cases where there are say 4 statuses by the user.
>
> If I have to make multiple calls, how can I go about fetching a list of all
> the user_timeline message ids?
>
> Also can someone from please explain to me how the page parameter works,
> specially in the case of varying result sizes?
>
> Finally how is the message ordered in the user_timeline, can I make an
> assumption that the last status at the bottom on the page will always be
> older than the top?
>
> Thanks,
>
> --
> Kind Regards,
> Rajinder Yadav
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: include_entities option for search API

2010-11-29 Thread Matt Harris
Thanks for the suggestion. Entities in Search has been added to our
Enhancement requests list. You can add your vote for this feature by staring
it.
http://code.google.com/p/twitter-api/issues/detail?id=1967

We do not have a timeline for when this feature could be added so I
recommend you keep an eye on our announcements list (
http://groups.google.com/group/twitter-api-announce ) and follow @twitterapi
for information as it becomes available.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Thu, Nov 25, 2010 at 4:39 PM, _ado  wrote:

> *bump*
>
> This would be a really useful feature to have as it would allow
> tighter integration with the other API calls.
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] delimited (streaming API) now default?

2010-11-29 Thread Matt Harris
Hey,

I haven't been able to reproduce this using my Streaming API library. When
delimited=length is sent as a parameter we will include the number of bytes
(in decimal) for the object being sent.

What I did notice is that 0x6EF = 1775 and 0x710 = 1808 -- in both cases the
Hex values are 6 bytes longer than the object we are returning.

The hex value you are seeing isn't something we're have added. Is it
possible some debug code was added to your streaming library?

One way to test is to make a request using curl only and see if the Hex
values are showing there as well. You can do this by running:
curl https://stream.twitter.com/1/statuses/filter.json -d
"track=twitter" -u YOUR_USERNAME

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Nov 29, 2010 at 7:52 AM, ianrose  wrote:

> It appears to me that when using the statuses/filter streaming API
> method, elements are not length-delimited by default, even if you
> don't specify "?delimited=length".  And if you DO add "?
> delimited=length", you get double length fields.  For example:
>
> if I query http://stream.twitter.com/1/statuses/filter.json, I get
> something like:
>
> 64B
> {  }
>
> 731
> {  }
>
> 
>
> If, on the other hand, I query
> http://stream.twitter.com/1/statuses/filter.json?delimited=length,
> I get something like:
>
> 6EF
> 1769
> {  }
>
> 710
> 1802
> {  }
>
> So its passing me a length in hex, and then a length in decimal, and
> then the actual status update.  It sure seems like 'delimited=length'
> is redundant now.  But was this API change ever documented?  I can't
> find any announcements about it and the dev docs still describe the
> old format.
>
> thanks!
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] RT and mentions

2010-11-29 Thread radu ungurean
Hello,

I need a way to bring all retweets of a tweet and all mentions of a
twitter username. Please help.

Basically what I need is to get the count of the retweets, and count
of mentions.

Radu

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] delimited (streaming API) now default?

2010-11-29 Thread ianrose
It appears to me that when using the statuses/filter streaming API
method, elements are not length-delimited by default, even if you
don't specify "?delimited=length".  And if you DO add "?
delimited=length", you get double length fields.  For example:

if I query http://stream.twitter.com/1/statuses/filter.json, I get
something like:

64B
{  }

731
{  }



If, on the other hand, I query 
http://stream.twitter.com/1/statuses/filter.json?delimited=length,
I get something like:

6EF
1769
{  }

710
1802
{  }

So its passing me a length in hex, and then a length in decimal, and
then the actual status update.  It sure seems like 'delimited=length'
is redundant now.  But was this API change ever documented?  I can't
find any announcements about it and the dev docs still describe the
old format.

thanks!

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Geocoded searches broken

2010-11-29 Thread Taylor Singletary
Hi all,

We're working to fix this issue as quickly as we can. Thanks for all the
great examples.

Taylor

On Mon, Nov 29, 2010 at 1:11 AM, Judotens Budiarto wrote:

> This happened in my script too.
> Try to put &since=2010-11-29 (today stamp) in your url request might solve
> the problem
>
>
>
>
> On Mon, Nov 29, 2010 at 6:56 AM, bob.hitching  wrote:
>
>> seeing the same problem on http://geome.me, for example -
>>
>>
>> http://search.twitter.com/search.json?geocode=37.44452,-122.161304,7km&q=love
>>
>> Response includes:
>> ... "warning":"adjusted since_id to 9031872674339840 due to temporary
>> error" ...
>>
>> thanks to Randy for the workaround.
>>
>> help us Twitter!
>>
>> On Nov 28, 10:41 am, MikeUCUD  wrote:
>> > I'm having the same issue.  It worked again for a little while, but
>> > hasn't worked in a day or 2.
>>
>> --
>> Twitter developer documentation and resources: http://dev.twitter.com/doc
>> API updates via Twitter: http://twitter.com/twitterapi
>> Issues/Enhancements Tracker:
>> http://code.google.com/p/twitter-api/issues/list
>> Change your membership to this group:
>> http://groups.google.com/group/twitter-development-talk
>>
>
>
>
> --
> Regards,
>
> Judotens M. Budiarto,
> @judotens | 2557A0A2
> http://judotens.com | http://dunialain.net
>
>  --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Geocoded searches broken

2010-11-29 Thread Judotens Budiarto
This happened in my script too.
Try to put &since=2010-11-29 (today stamp) in your url request might solve
the problem



On Mon, Nov 29, 2010 at 6:56 AM, bob.hitching  wrote:

> seeing the same problem on http://geome.me, for example -
>
>
> http://search.twitter.com/search.json?geocode=37.44452,-122.161304,7km&q=love
>
> Response includes:
> ... "warning":"adjusted since_id to 9031872674339840 due to temporary
> error" ...
>
> thanks to Randy for the workaround.
>
> help us Twitter!
>
> On Nov 28, 10:41 am, MikeUCUD  wrote:
> > I'm having the same issue.  It worked again for a little while, but
> > hasn't worked in a day or 2.
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>



-- 
Regards,

Judotens M. Budiarto,
@judotens | 2557A0A2
http://judotens.com | http://dunialain.net

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] RE: Spam Tweets

2010-11-29 Thread Ray of Los Angeles

Awesome, thanks EH.

On Nov 29, 2010, at 1:38 AM, Edward Hotchkiss wrote:


id_str iteration.

On Nov 27, 2010, at 9:43 AM, TweetzMatter wrote:


Anyones valid answer is appreciated:

How is it that moments after opening a twitter account, 2 or 3  
'spam' followers have already found it?

Drives me crazy. Thanks.

--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk



Regards,


Edward Hotchkiss
edw...@edwardhotchkiss.com
http://www.edwardhotchkiss.com/




--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Where can I find the updated rate limit after OAuth?

2010-11-29 Thread Igor Kharin
All rate limited methods responses include X-Ratelimit-Remaining and
X-Ratelimit-Limit HTTP-headers, use them or
http://dev.twitter.com/doc/get/account/rate_limit_status

On Fri, Nov 26, 2010 at 1:55 PM, m36tb6ll  wrote:
>
> Hi! I am a newbie in the field and am working on my first twitter web
> app. I have created a variable loop timer using rate_limit_status
> which works well in maximizing the usage of the twitter API without
> going over the hourly limits.
>
> Now that I have incorporated OAuth, I was expecting to see the limit
> increase from 150 (unauthenticated requests) to 350 (authenticated
> requests). But, I am still seeing the 150 limit both in the response
> headers and Firebug when calling rate_limit_status API after OAuth.
>
> Is there something I'm missing here?
>
> Your help would be greatly appreciated. Thanks in advance...
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group: 
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Twitter API

2010-11-29 Thread Igor Kharin
Once you authorized an user and got his access token you're free to
use all the API methods like statuses/mentions (replies):
http://dev.twitter.com/doc/get/statuses/mentions

Good luck!

On Mon, Nov 29, 2010 at 5:35 PM, Tom Callahan  wrote:
> Thank you very muchit worked :-)
>
> Can you also please help me in more thing : How can I fetch the tweet
> replies from somebody's account?
>
> On Nov 28, 6:22 pm, Igor Kharin  wrote:
>> Here's how "Sign in with Twitter" button 
>> works:http://dev.twitter.com/pages/sign_in_with_twitter
>>
>> For end-user is just like one-click operation, he doesn't need "to
>> generate the access token." All the magic comes from server-side. You
>> will need an access token for every account you working with. This is
>> just how OAuth works.
>>
>> On Fri, Nov 26, 2010 at 6:20 PM, Tom Callahan  
>> wrote:
>> > Hi All,
>>
>> > I am trying to develop a platform where I can allow people to login &
>> > add multiple twitter accounts. They will be able to post tweets, view
>> > posted tweets, view tweet replies etc.
>>
>> > I came to know that Basic Authentication has been stopped for Twitter
>> > API & so I am using oAuth to connect to Twitter.
>>
>> > I have registered my application inhttp://dev.twitter.com/apps&; have
>> > got the access token and access token secret. However, the way I see
>> > it now, for every Twitter account that gets added to my application,
>> > the user will have to generate the access token. This process is very
>> > complicated & is not user-friendly.
>>
>> > I am requesting you to please let me know how can I find a solution
>> > for the same where I can automatically get the access token for all
>> > the twitter accounts that gets added to my application. I have seen a
>> > similar process in use here -http://mediafunnel.com/
>>
>> > Please help me with this. Your support & cooperation will be highly
>> > appreciated.
>>
>> > Thanks in advance!!
>>
>> > Regards,
>> > Tom
>>
>> > --
>> > Twitter developer documentation and resources:http://dev.twitter.com/doc
>> > API updates via Twitter:http://twitter.com/twitterapi
>> > Issues/Enhancements 
>> > Tracker:http://code.google.com/p/twitter-api/issues/list
>> > Change your membership to this 
>> > group:http://groups.google.com/group/twitter-development-talk
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group: 
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Twitter API

2010-11-29 Thread Tom Callahan
Thank you very muchit worked :-)

Can you also please help me in more thing : How can I fetch the tweet
replies from somebody's account?

On Nov 28, 6:22 pm, Igor Kharin  wrote:
> Here's how "Sign in with Twitter" button 
> works:http://dev.twitter.com/pages/sign_in_with_twitter
>
> For end-user is just like one-click operation, he doesn't need "to
> generate the access token." All the magic comes from server-side. You
> will need an access token for every account you working with. This is
> just how OAuth works.
>
> On Fri, Nov 26, 2010 at 6:20 PM, Tom Callahan  wrote:
> > Hi All,
>
> > I am trying to develop a platform where I can allow people to login &
> > add multiple twitter accounts. They will be able to post tweets, view
> > posted tweets, view tweet replies etc.
>
> > I came to know that Basic Authentication has been stopped for Twitter
> > API & so I am using oAuth to connect to Twitter.
>
> > I have registered my application inhttp://dev.twitter.com/apps&; have
> > got the access token and access token secret. However, the way I see
> > it now, for every Twitter account that gets added to my application,
> > the user will have to generate the access token. This process is very
> > complicated & is not user-friendly.
>
> > I am requesting you to please let me know how can I find a solution
> > for the same where I can automatically get the access token for all
> > the twitter accounts that gets added to my application. I have seen a
> > similar process in use here -http://mediafunnel.com/
>
> > Please help me with this. Your support & cooperation will be highly
> > appreciated.
>
> > Thanks in advance!!
>
> > Regards,
> > Tom
>
> > --
> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > API updates via Twitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this 
> > group:http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Location returning no results

2010-11-29 Thread bounder
I use Abraham Williams's Twitteroauth https://github.com/abraham/twitteroauth
to search for Tweets near a location (for http://twitter.com/#!/birminghamuk)
but in the last few days it has started returning no results.

Similarly search.Twitter.com is returning no results for any search
"near a location"


Is anyone else having these issues?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: twitter_tweets_are_not_updating_in_my_site

2010-11-29 Thread bujji
hi i am facing this problem from past one week before it was working
fine  i have not changed any code .
 when i checked the log file it is showing fetching tweets from
twitter and shows latest fetched  tweets id but it is  not saving to
database ,to save data it has to enter  in to the loop where i have
written xml  (i am using hpricot to parse xml file ) code and it is
not displaying any information written inside hpricot xml file .

On Nov 27, 2:10 am, Edward Hotchkiss 
wrote:
> more details.
>
> On Nov 26, 2010, at 6:52 AM, bujji wrote:
>
>
>
> > helloTwitterDevelopment Talk,
>
> >               I have developed one rails project   to display the
> > tweets in my site of selected people and I am using
> > 'grackle' ,previously the tweets are updating properly,but now
> > suddenly the tweets are not updating properly and it is showing old
> > tweets,I don't know what's the actual problem when i checked in log
> > file it is showing fetching data from the selected people which i had
> > requested but it is not storing data in database  ,could any one know
> > about this please  help me to solve this problem
>
> > thanks in advance
>
> > --
> >Twitterdeveloper documentation and resources:http://dev.twitter.com/doc
> > API updates viaTwitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this 
> > group:http://groups.google.com/group/twitter-development-talk
>
> Regards,
>
> 
> Edward Hotchkiss
> edw...@edwardhotchkiss.comhttp://www.edwardhotchkiss.com/
> 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Search API Optional lang Has Problem.

2010-11-29 Thread fbparis
And same with some search operators (like source:xxx)

Sorry for posting twice :)

On Nov 29, 1:50 am, Jeong Hoon Kim  wrote:
> About 5 days ago, Suddenly Search API Optional lang had no results..My
> optional lang is ko.
> Did anybody apply Search API lang option? Did the results come out
> correctly?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Search API Optional lang Has Problem.

2010-11-29 Thread fbparis
Same here.

On Nov 29, 1:50 am, Jeong Hoon Kim  wrote:
> About 5 days ago, Suddenly Search API Optional lang had no results..My
> optional lang is ko.
> Did anybody apply Search API lang option? Did the results come out
> correctly?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk