[twitter-dev] Re: Possible to find out how many people have see a tweet?

2011-06-27 Thread Mohan Arun
>
> I would guess finding retweets of a given tweet would have a similar
> api call.
>

The documentation at http://dev.twitter.com/doc/get/statuses/retweets/:id
states it will return up to 100 of the first retweets of a given
tweet.

- Mohan

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


[twitter-dev] Re: Twitter API error on my website

2011-06-27 Thread Mohan Arun
> Hi Mohan,
>
> We are using a widget and it appears to still be happening, could this
> be because of an increase in traffic to the site?
>
> It works and then the next time you go to the site it will have the
> error again.
>
I would say this is most likely something to do with the base site
from
which the widget is hosted. Look through the code of the widget to
find where it loads from. Is it the case where you are using twitter's
own
embeddable widget? Try substituting twitter's version of the widget
and see if you get the same error.

- Mohan

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


Re: [twitter-dev] Detecting Over Capacity

2011-06-27 Thread Aldian Fazrihady
Does http status 503 always mean 'over capacity', no?

Aldian

On Tue, Jun 28, 2011 at 8:55 AM, R  wrote:

> I'm developing a Twitter app with Objective C. I'm detecting Twitter
> Over Capacity by looking at two XML element names:
>
>   - checking for nil
>  - contains the string "capacity"
>
> This seem rather clunky.  Is there a better way?
>
> --
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> https://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> https://groups.google.com/forum/#!forum/twitter-development-talk
>

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


[twitter-dev] Detecting Over Capacity

2011-06-27 Thread R
I'm developing a Twitter app with Objective C. I'm detecting Twitter
Over Capacity by looking at two XML element names:

  - checking for nil
 - contains the string "capacity"

This seem rather clunky.  Is there a better way?

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


Re: [twitter-dev] Re: sudden api slowdown

2011-06-27 Thread M. Edward (Ed) Borasky
I haven't been doing anything with the REST API recently but I think  
there was some kind of "event" on Streaming last night. I don't have  
the data here but it was about 2011-06-27T05:00:00Z if I remember  
correctly. I was connected to the "sample" stream with basic auth if  
that matters. It looked like a giant spike in tweet rate and it sent  
the Perl AnyEvent::Twitter::Stream library into deep space. It  
recovered fairly rapidly, although my machine didn't - I ended up  
rebooting. ;-)

--
http://twitter.com/znmeb http://borasky-research.net

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


Quoting Nicholas Chase :




On 6/27/2011 6:25 PM, jenny wrote:

To make things more exciting, all new site stream connections started
returning 401s half an hour ago(9:47utc)...
-jenny


Check your access tokens; that's what's been happening to me for the
last several days, and it comes down to the access key and secret
spontaneously changing.  (Still waiting to hear on that one...)

  Nick

--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker:   
https://code.google.com/p/twitter-api/issues/list

Change your membership to this group:
https://groups.google.com/forum/#!forum/twitter-development-talk


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


[twitter-dev] Re: Twitter API error on my website

2011-06-27 Thread Sports Banter
Hi Mohan,

We are using a widget and it appears to still be happening, could this
be because of an increase in traffic to the site?

It works and then the next time you go to the site it will have the
error again.

Cheers


Steven

On Jun 26, 11:15 pm, Mohan Arun  wrote:
> "The Twitter API returned an error while processing your request.
> Please try again."
>
> Are you using a widget or you are using some custom code
> for feeding the tweets in your wordpress website?
>
> If you are using some widget, then most probably it will
> start working again after some time.
>
> Mohan

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


[twitter-dev] Re: sudden api slowdown

2011-06-27 Thread jenny
thanks! that worked. no more 401s on site streams, just slow rest api
calls.

On Jun 27, 3:27 pm, Nicholas Chase  wrote:
> On 6/27/2011 6:25 PM, jenny wrote:
>
> > To make things more exciting, all new site stream connections started
> > returning 401s half an hour ago(9:47utc)...
> > -jenny
>
> Check your access tokens; that's what's been happening to me for the
> last several days, and it comes down to the access key and secret
> spontaneously changing.  (Still waiting to hear on that one...)
>
>   Nick

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


Re: [twitter-dev] Re: sudden api slowdown

2011-06-27 Thread Nicholas Chase



On 6/27/2011 6:25 PM, jenny wrote:

To make things more exciting, all new site stream connections started
returning 401s half an hour ago(9:47utc)...
-jenny


Check your access tokens; that's what's been happening to me for the 
last several days, and it comes down to the access key and secret 
spontaneously changing.  (Still waiting to hear on that one...)


  Nick

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


[twitter-dev] Re: sudden api slowdown

2011-06-27 Thread jenny
We have as well. Appears to have started 9-10pm utc on june 23. No
changes on our side, just overall slowdown of all twitter rest api
calls.

To make things more exciting, all new site stream connections started
returning 401s half an hour ago(9:47utc)...
-jenny


On Jun 27, 2:48 pm, joelkeepup  wrote:
> HI,
>
> Between June 23 and 24th we noticed a 3x slowdown on twitter api
> calls. Before the 23rd we had consistent api response time of a second
> for most calls with occasionally a couple seconds. Sometimes calls
> were very subsecond.
>
> As of June 24th (until now) all our calls are taking 2-3 seconds and
> occasional 20+ seconds.
>
> Its possible it could be something with our provider or our code, but
> we cant seem to pinpoint anything.
>
> Has anyone else noticed a slowdown?
>
> thanks
> Joel

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


[twitter-dev] 401: Could not authenticate with OAuth.

2011-06-27 Thread vishal
I am having trouble posting to twitter from my ruby on rails app. The
consumer keys and secrets are correct, also the oauth token and secret
seem to be fine. The code used to work fine but I have been getting
these error since today morning. Is anyone facing the same issue or am
I going wrong anywhere?

client = Twitter::Client.new(
:consumer_key => 'X',
:consumer_secret => 'XX',
:oauth_token => "XX",
:oauth_token_secret => "",
 :endpoint => 'https://api.twitter.com')

#https://api.twitter.com";,
@search_endpoint="https://search.twitter.com/";, @format=:json,
@consumer_key="", @oauth_token_secret="",
@adapter=:net_http, @oauth_token="",
@consumer_secret="XXX">

client.update "post message"

Twitter::Unauthorized: POST https://api.twitter.com/statuses/update.json:
401: Could not authenticate with OAuth.


Thanks
Vishal Kajjam

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


[twitter-dev] sudden api slowdown

2011-06-27 Thread joelkeepup
HI,

Between June 23 and 24th we noticed a 3x slowdown on twitter api
calls. Before the 23rd we had consistent api response time of a second
for most calls with occasionally a couple seconds. Sometimes calls
were very subsecond.

As of June 24th (until now) all our calls are taking 2-3 seconds and
occasional 20+ seconds.

Its possible it could be something with our provider or our code, but
we cant seem to pinpoint anything.

Has anyone else noticed a slowdown?

thanks
Joel

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


Re: [twitter-dev] Access tokens changing on their own?

2011-06-27 Thread Nicholas Chase
Yes, these are the access tokens for the app that I use to connect to 
streams.  So if I re-authorize my own account they will change?  Please 
tell me that it will ONLY happen with MY account...?  'Cause if that 
happens if ANYBODY reauthorizes...


Thanks!

---  Nick

On 6/27/2011 4:24 PM, David wrote:

Hi Nick,

Are these your account access tokens for your app that you use to 
connect to streams? Your access tokens will get reset if you go 
through the OAuth workflow and hit "No" or "Deny" with that account 
and later authorize it again.

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



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


[twitter-dev] display tweets for a private user using ASP or javascript

2011-06-27 Thread Son
Does anyone know how to display tweets for a private users using ASP
or javascript on a web page?



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


[twitter-dev] @anywhere not working?

2011-06-27 Thread Son
Is anyone else having problems with the @anywhere for twitter.


Thanks

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


Re: [twitter-dev] Access tokens changing on their own?

2011-06-27 Thread David
Hi Nick,

Are these your account access tokens for your app that you use to connect to 
streams? Your access tokens will get reset if you go through the OAuth 
workflow and hit "No" or "Deny" with that account and later authorize it 
again.

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


[twitter-dev] Tweet Button Zero Count and Hashes... Add hash to original_referer please?

2011-06-27 Thread Scott Phillips
I've tried every variation to try and get this to work, but I think in
the end it's a bug.

Using the iframe button, the latest code I've tried sets the url and
counturl as the same:
http://propertylabs.smugmug.com/services/graph/gallery/11425833_KwDKP/803171493_Cscqq

Which will usually redirect to:
http://propertylabs.smugmug.com/SunnySide/Ladybugs-2009-2010/11425833_KwDKP#803171493_Cscqq-A-LB

If I set that URL as the counturl, it doesn't work either, and I think
the issue is that you guys are ignoring everything after the hash, so
the final destination url never looks valid.

When I look at the code you generate, the original_referer (which I'm
guessing you validate against) doesn't have any hash info on it.

original_referer=http%3A%2F%2Fpropertylabs.smugmug.com%2FSunnySide
%2FLadybugs-2009-2010%2F11425833_KwDKP

Any chance you can add hashinfo to original_referer? Assuming that's
what you use to check against. Or does anyone have any other
suggestions?

Like button Code:
http://platform.twitter.com/widgets/tweet_button.html?url=http://
propertylabs.smugmug.com/services/graph/gallery/11425833_KwDKP/
803171493_Cscqq&counturl=http://propertylabs.smugmug.com/services/
graph/gallery/11425833_KwDKP/803171493_Cscqq&text=Great%20photo!
%20&count=horizontal" onload="this.style.visibility = 'visible';"
style="visibility: visible; ">

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


[twitter-dev] Tweet Button Zero Count and Hashes... Add hash to original_referer please?

2011-06-27 Thread Scott Phillips
I've tried every variation to try and get this to work, but I think in
the end it's a bug.

Using the iframe button, the latest code I've tried sets the url and
counturl as the same:
http://propertylabs.smugmug.com/services/graph/gallery/11425833_KwDKP/803171493_Cscqq

Which will usually redirect to:
http://propertylabs.smugmug.com/SunnySide/Ladybugs-2009-2010/11425833_KwDKP#803171493_Cscqq-A-LB

If I set that URL as the counturl, it doesn't work either, and I think
the issue is that you guys are ignoring everything after the hash, so
the final destination url never looks valid.

When I look at the code you generate, the original_referer (which I'm
guessing you validate against) doesn't have any hash info on it.

original_referer=http%3A%2F%2Fpropertylabs.smugmug.com%2FSunnySide
%2FLadybugs-2009-2010%2F11425833_KwDKP

Any chance you can add hashinfo to original_referer? Assuming that's
what you use to check against. Or does anyone have any other
suggestions?

Like button Code:
http://platform.twitter.com/widgets/tweet_button.html?url=http://
propertylabs.smugmug.com/services/graph/gallery/11425833_KwDKP/
803171493_Cscqq&counturl=http://propertylabs.smugmug.com/services/
graph/gallery/11425833_KwDKP/803171493_Cscqq&text=Great%20photo!
%20&count=horizontal" onload="this.style.visibility = 'visible';"
style="visibility: visible; ">

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


Re: [twitter-dev] Twitter API / People Search API not returning anything

2011-06-27 Thread RubenOrozco
Thanks Taylor! :)

Ruben

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


Re: [twitter-dev] Twitter API / People Search API not returning anything

2011-06-27 Thread Taylor Singletary
Hi Ruben,

We're looking into this issue and hope to have it resolved soon. Thanks for
the report.

@episod  - Taylor
Singletary


On Mon, Jun 27, 2011 at 9:51 AM, RubenOrozco  wrote:

> Hi Twitter Devs. 
>
> When people search Tweetfind.com , they get a searched box at the
> bottom(Twitter Find People), For a few weeks it was working. You were able
> to scroll down and it would load more Twitter Profiles.  A week or two ago,
> it stopped.
>
> The programmer that is helping me said this:
> *--*
> For People Search API: 
> http://api.twitter.com/1/**users/search
> .*json?q=basketball&page=1 is returning results while *
> http://api.twitter.com/1/**users/search
> .*json?q=basketball&page=2 is not returning anything from twitter API.
>
> Is there any problem with page 2 ?**
> --
> *
>
> --
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> https://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> https://groups.google.com/forum/#!forum/twitter-development-talk
>

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


[twitter-dev] Re: error 401 from oauth, starting a few days ago

2011-06-27 Thread arlomedia
Yes, I've made both of those changes, as I mentioned in my June 16
post. I just ran the requests again; here's what the request headers
look like now. The first is the token request and the second is the
timeline request:

POST https://api.twitter.com/oauth/request_token
Authorization: OAuth realm="", oauth_signature_method="HMAC-SHA1",
oauth_signature="[8 chars]%2F[18 chars]%3D", oauth_nonce="[13 chars]",
oauth_timestamp="1309193079", oauth_token="",
oauth_consumer_key="[consumer key from application settings page]",
oauth_version="1.0"
Content-Type: application/x-www-form-urlencoded

(This returns a response body containing name/value pairs for
oauth_token, oauth_token_secret and oauth_callback_confirmed. However,
the token values don't match the token values I see when I log into my
Twitter account and look at my application settings.)

GET https://api.twitter.com/1/statuses/user_timeline.xml?count=1
Authorization: OAuth realm="", oauth_token="[access token from
application settings page]", oauth_signature_method="HMAC-SHA1",
oauth_signature="%2F[26 chars]%3D", oauth_nonce="[13 chars]",
oauth_timestamp="1309193079", oauth_consumer_key="[consumer key from
application settings page]", oauth_version="1.0"

(This returns a response body containing the same error as before,
"This method requires authentication." The response also includes the
HTTP header "X-Warning: Invalid OAuth credentials detected.")

Does the URL for the first request also need to contain the version
number? Taylor didn't mention that, but when I add it, that first
request returns the error "Request failed with code 401: Invalid /
expired Token." I'm not sure if I even need that first request,
because I can get the access token manually from my application
settings page.

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


[twitter-dev] Twitter API / People Search API not returning anything

2011-06-27 Thread RubenOrozco
Hi Twitter Devs. 

When people search Tweetfind.com , they get a searched box at the 
bottom(Twitter Find People), For a few weeks it was working. You were able 
to scroll down and it would load more Twitter Profiles.  A week or two ago, 
it stopped.

The programmer that is helping me said this:
*--*
For People Search API: 
http://api.twitter.com/1/users/search.*json?q=basketball&page=1 is returning 
results while *http://api.twitter.com/1/users/search.*json?q=basketball&page=2 
is not returning anything from twitter API. 

Is there any problem with page 2 ?**
--
*

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


[twitter-dev] Re: Introduce yourself!

2011-06-27 Thread RubenOrozco
My name is Ruben Orozco from Santa Barbara, CA. 

I've use the Twitter API to develop http://www.TweetFind.com


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


[twitter-dev] Re: connection reset errors

2011-06-27 Thread Khandelwal
I'm still seeing the connection reset errors. Anyone have any advice?
It's Errno 54 from the urllib in Python I believe (I'm using Tweepy
under the hood).

On Jun 24, 11:36 am, Khandelwal  wrote:
> Both yesterday and today, I've been seeing quite a few "Connection
> reset by peer" errors. They happen 15 - 30 minutes apart, with
> successful queries against the API run in between.
>
> My requests look like the following:
>
> send: 'GET /1/friends/ids.json?cursor=-1&user_id=24912726 HTTP/1.1\r
> \nAccept-Encoding: identity\r\nHost: api.twitter.com\r\nAuthorization:
> OAut
> h realm="", oauth_version="1.0", oauth_signature="", oauth_nonce="",
> oauth_timestamp="", oa
> uth_token="", oauth_consumer_key="", oauth_signature_method="HMAC-
> SHA1"\
> r\n\r\n
>
> (The oauth values have been stripped from the request above).
>
> Am I supposed to see these errors regularly? If yes, what should be
> the accepted practice? Any advice would be most helpful.

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


Re: [twitter-dev] Re: Problem With Fetching Followers and Following Id's

2011-06-27 Thread kamesh SmartDude
hai george,

suppose per request u want to show 100 follower/following.

case 1: The user may have lessthan 5000 followers/following (suppose say
100)
1. store all the Ids u received from twitter and send the request to fetch
first 100 follower/following
2. once u received the list of 100 followers/following remove the First 100
IDs...
3. supppose user want next 100this time no need to send request for
IDS...because u already have 100 ids...so send the request to fetch next 100
follower/following...once u received remove the idsso u already have all
the list of followers/following

case 2: The User may have morethan 5000 followers/following
1. store all the Ids u received and *the Cursor Value* from twitter and send
the request to fetch first 100 follower/following
2. once u received the list of 100 followers/following remove the First 100
IDs...
3. supppose user want next 100this time no need to send request for
IDS...because u already have 100 ids...so send the request to fetch next 100
follower/following...once u received remove the idsso u already have all
the list of followers/following
4. in this case u already fetched all the follower/following list of
5000so now u need to fetch the next IDS using the cursor...once u got
the next set of IDS...follow step 1 to 3...again

//kamesh

On Mon, Jun 27, 2011 at 8:38 PM, quenotacom  wrote:

> sorry, I dont understand what you mean, the problem is : I can call the
> followers query I accept say 100, calling lookup for them, the problem is,
> cursor_next is pointing to 5001 ocurrence,
> so i have to do all the job again.
>
> --
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> https://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> https://groups.google.com/forum/#!forum/twitter-development-talk
>

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


[twitter-dev] Re: Select nth friend/follower

2011-06-27 Thread quenotacom
I am having the same problem.

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


[twitter-dev] Re: 401 Unauthorized in Python/Twisted app

2011-06-27 Thread Taylor Singletary
Hi Eryn,

I'm not too familiar with the Twisted framework or its implementation
of OAuth, so take what I recommend with a grain of salt.

* Access tokens generated through the OAuth flow on Twitter,
regardless of the technique used (PIN code, xAuth, vanilla OAuth) are
long-lived and do not expire until the end-user makes an explicit
effort to revoke the access. You store the access token and access
token secret.

* While OAuth in theory should "just work" when it works in one spot,
there's a great amount of variation in the amount of "wrongness" that
given services will tolerate when evaluating the credentials. Long-
term, we're working to normalize the entire validation procedure
across all of our services, but in reality the streaming API and the
REST API use different OAuth engines to evaluate the validity of the
request -- the streaming API's OAuth verification is considerably
stricter than the REST API's more forgiving implementation.

* I notice that your authorization header is missing a oauth_timestamp
parameter -- is that a copy and paste error? Do you know how to locate
the OAuth signature base string in the Python library you are using --
it can often be buried under private or protected methods but the
string is invaluable in debugging issues like this.

Thanks,
Taylor

On Jun 24, 7:54 pm, Eryn Wells  wrote:
> Hello all,
>
> I'm quite new to OAuth and the Twitter API, and this is my first post to this 
> list.
>
> I'm working on an app in Python using the Twisted framework. It uses 
> brosner's fork of python-oauth2[1] to do the initial authentication and 
> subsequent request signing. I'm using the PIN code flow for authentication. 
> Do access tokens need to be generated every time you start the app, or can 
> they be stored between runs and reused? If so, how long are the valid? Right 
> now, my code writes the access token and secret out to a file and recovers it 
> the next time it starts. The procedure seems to go just fine – I don't get 
> any errors – but I can't really verify that everything is Correct because I 
> don't really know what I'm looking for…
>
> Second thing, I'm at the point where I'm trying to do the initial connection 
> tohttps://userstream.twitter.com/2/user.json. I'm using SSLConnect and 
> web.HTTPClient, if that helps… I write out the command (GET ), and the 
> headers (a Host and an Authorization header). The OAuth library generates the 
> following Authorization header content. I get back a 401 Unauthorized error 
> with a WWW-Authenticate: Basic header. I've heard from @twitterapi that User 
> Streams require OAuth, so why am I getting a Basic auth response?
>
> OAuth realm="Firehose", oauth_nonce="25622603816219309853125867384777", 
> oauth_consumer_key="", oauth_signature_method="HMAC-SHA1", 
> oauth_version="1.0", oauth_token="", 
> oauth_signature="1AV5YG4DsfCV4jDoQcOCOmxZ2Gw%3D"
>
> Anything obvious there that I'm doing wrong?
>
> Thanks,
> Eryn

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


Re: [twitter-dev] Re: Problem With Fetching Followers and Following Id's

2011-06-27 Thread quenotacom
sorry, I dont understand what you mean, the problem is : I can call the 
followers query I accept say 100, calling lookup for them, the problem is, 
cursor_next is pointing to 5001 ocurrence,
so i have to do all the job again. 

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


Re: [twitter-dev] XAuth Authorization

2011-06-27 Thread Georgooty varghese
Hi,


xAuth is not enabled by deafult when you registering the application.

To enabling this, you should send a  detailed mail to  a...@twitter.com with
the application details.

Regards,
George





On Mon, Jun 27, 2011 at 2:55 PM, yatibawri  wrote:

> Hi all,
>
> I have a query on how can i register my app with xAuth.
> I get an error in this line :
>
>  AccessToken token = twitter.getOAuthAccessToken();
> I get an error:Failed : The screen name / password combination seems
> to be invalid.
> and Error 401..
>
> So please help me to solve my issue
>
> --
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> https://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> https://groups.google.com/forum/#!forum/twitter-development-talk
>

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


[twitter-dev] Twitter List Widget Tweets Population Issue.

2011-06-27 Thread Srini
Thanks in Advance.

Using "Twitter List Widget", i am able to populate the tweets in my
application but after certain amount of time i am getting empty widget
and in back end it is showing following error message:

TWTR.Widget.receiveCallback_1({"error":"Rate limit exceeded. Clients
may not make more than 150 requests per hour.","request":"\/1\/
oregontrail\/lists\/oregontrail\/statuses.json?
callback=TWTR.Widget.receiveCallback_1&since_id=83288622127775744&refresh=true&include_rts=true&clientsource=TWITTERINC_WIDGET&1309179192096=cachebust"})

 so any one can help me to resolve this issue.

Thanks,

Srini

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


[twitter-dev] Twitter Widget Tweets Population Issue.

2011-06-27 Thread srinu
Hi,

Thanks in Advance.

Using "Twitter List Widget", i am able to populate the tweets in my
application but after certain amount of time i am getting empty widget
and in back end it is showing following error message:

TWTR.Widget.receiveCallback_1({"error":"Rate limit exceeded. Clients
may not make more than 150 requests per hour.","request":"\/1\/
oregontrail\/lists\/oregontrail\/statuses.json?
callback=TWTR.Widget.receiveCallback_1&since_id=83288622127775744&refresh=true&include_rts=true&clientsource=TWITTERINC_WIDGET&1309179192096=cachebust"})

 so any one can help me to resolve this issue.

Thanks,

Srini


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


[twitter-dev] The remote server returned an expectation error 417 Expectation failed.

2011-06-27 Thread Jay Amrutkar
I'm authenticating twitter user using open authentication (oauth)
through my gadget.
I'm calling requestToken service of twitter.

var accessor = { consumerSecret: 'mySecretKey',
   tokenSecret: ''
   };

var message = { action: 'https://api.twitter.com/oauth/request_token'
  , method: 'POST'
  , parameters: {
  oauth_signature_method:'HMAC-SHA1',
  oauth_consumer_key:'myConsumerKey'

  }
  };

OAuth.setTimestampAndNonce(message);
OAuth.SignatureMethod.sign(message, accessor);

var params = {};
params[gadgets.io.RequestParameters.METHOD] =
gadgets.io.MethodType.POST;
var URL = message.action;
params[gadgets.io.RequestParameters.HEADERS] = {'Content-Type':
'application/x-www-form-urlencoded',
'Authorization': OAuth.getAuthorizationHeader("https://
api.twitter.com/",message.parameters)
};
params[gadgets.io.RequestParameters.POST_DATA] =
OAuth.formEncode(message.parameters);

params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;
gadgets.io.makeRequest(URL, showResponse, params);


function showResponse(response)
{alert(response.text);}

I'm getting an error as The remote server returned an expectation
error 417 Expectation failed.
Please provide me some solution.
thanks,
jay

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


[twitter-dev] XAuth Authorization

2011-06-27 Thread yatibawri
Hi all,

I have a query on how can i register my app with xAuth.
I get an error in this line :

 AccessToken token = twitter.getOAuthAccessToken();
I get an error:Failed : The screen name / password combination seems
to be invalid.
and Error 401..

So please help me to solve my issue

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


[twitter-dev] Re: How long can we access a past profile picture?

2011-06-27 Thread yama
Thanks Matt,

Oh that's right!
It consumes API rate limit using the second method.
So, if I consider a rate limited API, I should user the first method,
which is just a link to image.
But then, when user change it, the possibility of unaccessible to the
image may occur.
Is it right?

I have to show a lot of comments with the images on my website.
So, probably i will user the first one to show the profile image.

Thanks,
yama



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