Re: [twitter-dev] OAuth Newb Question

2010-08-16 Thread Abraham Williams
Have a look at my PHP library TwitterOAuth. It is easy to get started on and
supports just about everything. Feel free to ping me if you have any
questions.

http://github.com/abraham/twitteroauth

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


On Sat, Aug 14, 2010 at 16:11, artguillotine gburk...@gmail.com wrote:

 I have an application already created in php that access' twitter.
 There is a big switch to OAuth coming this week.  How hard is it to
 add OAuth to an existing application and is there any examples or
 previous discussions in the groups?  Do I have to rebuild the
 application or would I simply need to add an authorization key?

 Any help is greatly appreciated.

 GB


[twitter-dev] Re: Return Public Timeline Tweets based on Geo Location

2010-08-16 Thread Bess
You can use Twitter Search API to filter or limit the GEO location.

within range from 1 to 1000 in units of mi or km

near:San Francisco within:1000mi

Twitter search string
http://search.twitter.com/search.atom?geocode=37.775196,-122.419204,1000.0miq=+near:%22San+Francisco%22+within:1000mi

You can see it use geocode latitude and longitude, use near filter for
places and use within filter as diameter range.

You can use string to construct your search query to adjust your
search results. I have used this several times in a few mobile apps.
It works well.

On Aug 14, 2:34 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 On 8/14/10 11:20 PM, Mark W wrote:



  I've searched for a solution, but couldn't find one.

  I'm looking for a way that I can feed in a GeoLocation (Lat,Long) and
  get the latest x tweets posted from around that area.

  statuses/public_timeline doesn't support GeoLocation.

  I looked at search, which can limit the returned amount by
  GeoLocation, however, it requires a query search string, which I don't
  have.

  Any help or friendly point in the right direction is appreciated...

  Thanks.

  Mark

 The streams function of twitter can do this.

 http://dev.twitter.com/doc/post/statuses/filter

 Tom


[twitter-dev] sorting retweets_of_me by the retweet's status ID, and not the retweeted status' ID

2010-08-16 Thread escarp
All,

In researching whether we needed to file a feature request, we noticed
a few messages here from people looking for a simpler way to see the
newest retweet first in retweets_of_me, instead of seeing results
sorted by the original status' ID. We've put in a feature request for
a retweets_of_me flag to return results by the retweet's status ID as
well as using the since_id parameter to only look for retweets with an
ID above the parameter.

If any of you who're looking for this functionality see this message,
convey your interest by starring the feature request:
http://code.google.com/p/twitter-api/issues/detail?id=1806

Best,
escarp


[twitter-dev] Re: official twitter equivalent of tweetimag.es

2010-08-16 Thread Ken
There's also

http://api.twitter.com/1/users/profile_image/:id

You might call that less volatile as ids don't change.

I notice on the dev page referenced by Abraham, these methods *must
not be used* as image source URLs.
Any plans to introduce such URLs?


On Aug 16, 6:17 am, Abraham Williams 4bra...@gmail.com wrote:
 http://dev.twitter.com/doc/get/users/profile_image/:screen_name

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

 On Sun, Aug 15, 2010 at 13:11, Kyle Bragger kyle.brag...@gmail.com wrote:
  Apologies if this has been asked before; ~45 min of searching and I
  couldn't find anything.

  I vaguely remember seeing something Twitter offered that was an
  official equivalent of tweetimag.es — non-volatile urls for user
  photos.

  Am I crazy?




[twitter-dev] oauth_signature

2010-08-16 Thread alex
still confused about oauth_signature. what is oauth_signature? who
generate oauth_signature? If it is consumer, how to generate
oauth_signature ? Im using Abraham's PHP library TwitterOAuth


[twitter-dev] What can this error be about?

2010-08-16 Thread Rushikesh Bhanage
Hi there,

We have developed an app (you can see http://honestfollowers.com), in which
user can search for his honest followers.

I have successfully tested this for users having up to 5k followers. But
when I search with users having greater than 5k followers (like 'imishant',
'ashabhosle' etc), I get below error :

Warning: Invalid argument supplied for foreach() in
/home/rohit25/public_html/honestfollowers.com/get_data.php on line 356

Above error probably is encountered due to the foreach loop we are using
stops receiving data. I tried searching the same account (imishant) few
hours ago and the operation was crawled and executed completely. So I am
confused whether this is a problem from Twitter's side or not. I have tested
my app with many other accounts and many get executed completely but some
don't and those are mostly accounts with more than 15k followers. Also those
which displays error gets executed completely when searched on different
point of time. So is this a problem from Twitter's side? Does Twitter API
sometimes break operation if when sending huge chunks of data? What solution
you suggest to fetch and execute such amount of data?

No doubt site is perfectly running for users having below 2k, 3k followers.

P.S: We have white listed Twitter Account!

Thank you in advance!


RE: [twitter-dev] What can this error be about?

2010-08-16 Thread Dean Collins
Lol - deancollins http://twitter.com/deancollins  is not an Honest
follower!

 

You might need a bit of an explanation on what this means as I imagine a
lot of people are going to search their own name and have the same
reaction I did...not honest? Wtf?

 

Regards,

Dean Collins
Cognation Inc
d...@cognation.net
mailto:d...@cognation.net +1-212-203-4357   New York
+61-2-9016-5642   (Sydney in-dial).
+44-20-3129-6001 (London in-dial).



From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of
Rushikesh Bhanage
Sent: Monday, 16 August 2010 7:43 AM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] What can this error be about?

 

Hi there,

We have developed an app (you can see http://honestfollowers.com), in
which user can search for his honest followers.

I have successfully tested this for users having up to 5k followers. But
when I search with users having greater than 5k followers (like
'imishant', 'ashabhosle' etc), I get below error :

Warning: Invalid argument supplied for foreach() in
/home/rohit25/public_html/honestfollowers.com/get_data.php on line 356

Above error probably is encountered due to the foreach loop we are using
stops receiving data. I tried searching the same account (imishant) few
hours ago and the operation was crawled and executed completely. So I am
confused whether this is a problem from Twitter's side or not. I have
tested my app with many other accounts and many get executed completely
but some don't and those are mostly accounts with more than 15k
followers. Also those which displays error gets executed completely when
searched on different point of time. So is this a problem from Twitter's
side? Does Twitter API sometimes break operation if when sending huge
chunks of data? What solution you suggest to fetch and execute such
amount of data?

No doubt site is perfectly running for users having below 2k, 3k
followers.

P.S: We have white listed Twitter Account! 

Thank you in advance!



[twitter-dev] Twitter Button Counts

2010-08-16 Thread artesea
On my website I have added the Twitter Button and I want it to use my
own customer short URL. However I'm finding it never counts the number
of search results.

eg:
http://www.libdemvoice.org/office-of-the-public-guardian-finally-starts-to-get-some-serious-public-scrutiny-20680.html
has http://ldv.org.uk/20680 as a shortlink

I'm using data-url with http://ldv.org.uk/20680 and continuously get
back 0. Click on the zero and at the moment I get 4 search results.
I noticed that bit.ly mentioned an undocumented data-counturl, setting
this to the shortlink continues to bring up 0, however using the full
link I get 1, but as most people tweet our shortlink already I want
those numbers, and those using the full link are those RSS-Tweet
people who I don't really care about.

Is there any reason why using my custom short links we aren't getting
back any results?


Re: [twitter-dev] oauth_signature

2010-08-16 Thread Tom van der Woerdt
On 8/16/10 12:36 PM, alex wrote:
 still confused about oauth_signature. what is oauth_signature? who
 generate oauth_signature? If it is consumer, how to generate
 oauth_signature ? Im using Abraham's PHP library TwitterOAuth

OAuth signature is a short hash created from the data you are sending to
Twitter. You generate it by generating the Base String, and taking the
HMAC-SHA1 of this, using both your consumer key and the user's key
(resource owner's key, as the RFC calls them).

I have no idea how to do this with Abraham's PHP library, but I'm sure
that it is a lot easier than the way I just described (which is already
easy).

Tom


Re: [twitter-dev] What can this error be about?

2010-08-16 Thread Tom van der Woerdt
On 8/16/10 1:43 PM, Rushikesh Bhanage wrote:
 Hi there,
 
 We have developed an app (you can see http://honestfollowers.com), in
 which user can search for his honest followers.
 
 I have successfully tested this for users having up to 5k followers. But
 when I search with users having greater than 5k followers (like
 'imishant', 'ashabhosle' etc), I get below error :
 
 Warning: Invalid argument supplied for foreach() in
 /home/rohit25/public_html/honestfollowers.com/get_data.php
 http://honestfollowers.com/get_data.php on line 356
 
 Above error probably is encountered due to the foreach loop we are using
 stops receiving data. I tried searching the same account (imishant) few
 hours ago and the operation was crawled and executed completely. So I am
 confused whether this is a problem from Twitter's side or not. I have
 tested my app with many other accounts and many get executed completely
 but some don't and those are mostly accounts with more than 15k
 followers. Also those which displays error gets executed completely when
 searched on different point of time. So is this a problem from Twitter's
 side? Does Twitter API sometimes break operation if when sending huge
 chunks of data? What solution you suggest to fetch and execute such
 amount of data?
 
 No doubt site is perfectly running for users having below 2k, 3k followers.
 
 P.S: We have white listed Twitter Account!
 
 Thank you in advance!

Hi,

There can be numerous reasons for a simple PHP error, but this one means
that you don't feed an array into foreach.

Which can also have numerous reasons. I think that, in your case, it may
be because of a 500 Internal Server Error which Twitter gives every now
and then. You should do some checks on the information you get from
Twitter before using it. ;-) Not all API calls always work.

Tom


Re: [twitter-dev] Twitter Button Counts

2010-08-16 Thread Tom van der Woerdt
On 8/16/10 2:05 PM, artesea wrote:
 On my website I have added the Twitter Button and I want it to use my
 own customer short URL. However I'm finding it never counts the number
 of search results.
 
 eg:
 http://www.libdemvoice.org/office-of-the-public-guardian-finally-starts-to-get-some-serious-public-scrutiny-20680.html
 has http://ldv.org.uk/20680 as a shortlink
 
 I'm using data-url with http://ldv.org.uk/20680 and continuously get
 back 0. Click on the zero and at the moment I get 4 search results.
 I noticed that bit.ly mentioned an undocumented data-counturl, setting
 this to the shortlink continues to bring up 0, however using the full
 link I get 1, but as most people tweet our shortlink already I want
 those numbers, and those using the full link are those RSS-Tweet
 people who I don't really care about.
 
 Is there any reason why using my custom short links we aren't getting
 back any results?

I have one theory and that is that the Twitter button caches the
numbers. Try opening a different browser - I've heard people that said
that this works.

You should also make sure that you don't generate a new shortlink for
every tweet.

Tom



[twitter-dev] Re: What can this error be about?

2010-08-16 Thread Rushikesh Bhanage
Hi Dean,

Thank you for trying out our app. You should check out our how it
works link (http://www.honestfollowers.com/howitworks.php). I just
went though your account and I can see you follow more than 500
people. According to us it is hard to keep up with all the updates
when someone follows that much amount of followers. Also when we check
several 100s of people who are honest followers we got to know the
maximum number a user can follow is 170. And if he is a client user
that number can be extended to 500. In your case you are exceeding the
limit which can make hard to you to follow all the updates. We are
trying to show you how many exactly honest followers you have and
those who read each and every tweet of yours. Also we have been
constantly making changes to make it perfect. I would love to hear
from you more about your experience on our site.

Thank you.

On Aug 16, 4:58 pm, Dean Collins d...@cognation.net wrote:
 Lol - deancollins http://twitter.com/deancollins  is not an Honest
 follower!

 You might need a bit of an explanation on what this means as I imagine a
 lot of people are going to search their own name and have the same
 reaction I did...not honest? Wtf?

 Regards,

 Dean Collins
 Cognation Inc
 d...@cognation.net
 mailto:d...@cognation.net +1-212-203-4357   New York
 +61-2-9016-5642   (Sydney in-dial).
 +44-20-3129-6001 (London in-dial).

 

 From: twitter-development-talk@googlegroups.com
 [mailto:twitter-development-t...@googlegroups.com] On Behalf Of
 Rushikesh Bhanage
 Sent: Monday, 16 August 2010 7:43 AM
 To: twitter-development-talk@googlegroups.com
 Subject: [twitter-dev] What can this error be about?

 Hi there,

 We have developed an app (you can seehttp://honestfollowers.com), in
 which user can search for his honest followers.

 I have successfully tested this for users having up to 5k followers. But
 when I search with users having greater than 5k followers (like
 'imishant', 'ashabhosle' etc), I get below error :

 Warning: Invalid argument supplied for foreach() in
 /home/rohit25/public_html/honestfollowers.com/get_data.php on line 356

 Above error probably is encountered due to the foreach loop we are using
 stops receiving data. I tried searching the same account (imishant) few
 hours ago and the operation was crawled and executed completely. So I am
 confused whether this is a problem from Twitter's side or not. I have
 tested my app with many other accounts and many get executed completely
 but some don't and those are mostly accounts with more than 15k
 followers. Also those which displays error gets executed completely when
 searched on different point of time. So is this a problem from Twitter's
 side? Does Twitter API sometimes break operation if when sending huge
 chunks of data? What solution you suggest to fetch and execute such
 amount of data?

 No doubt site is perfectly running for users having below 2k, 3k
 followers.

 P.S: We have white listed Twitter Account!

 Thank you in advance!


[twitter-dev] Re: What can this error be about?

2010-08-16 Thread Rushikesh Bhanage
Hi,

I see what you are saying. I am waiting for Twitter to reply on this
issue. There should be some alternate to get all this data. Otherwise
they wouldn't whitelist an account with 20,000 calls if this is the
case. Can you suggest any method where I can get all the data?

Thanks!

On Aug 16, 5:11 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 On 8/16/10 1:43 PM, Rushikesh Bhanage wrote:



  Hi there,

  We have developed an app (you can seehttp://honestfollowers.com), in
  which user can search for his honest followers.

  I have successfully tested this for users having up to 5k followers. But
  when I search with users having greater than 5k followers (like
  'imishant', 'ashabhosle' etc), I get below error :

  Warning: Invalid argument supplied for foreach() in
  /home/rohit25/public_html/honestfollowers.com/get_data.php
  http://honestfollowers.com/get_data.php on line 356

  Above error probably is encountered due to the foreach loop we are using
  stops receiving data. I tried searching the same account (imishant) few
  hours ago and the operation was crawled and executed completely. So I am
  confused whether this is a problem from Twitter's side or not. I have
  tested my app with many other accounts and many get executed completely
  but some don't and those are mostly accounts with more than 15k
  followers. Also those which displays error gets executed completely when
  searched on different point of time. So is this a problem from Twitter's
  side? Does Twitter API sometimes break operation if when sending huge
  chunks of data? What solution you suggest to fetch and execute such
  amount of data?

  No doubt site is perfectly running for users having below 2k, 3k followers.

  P.S: We have white listed Twitter Account!

  Thank you in advance!

 Hi,

 There can be numerous reasons for a simple PHP error, but this one means
 that you don't feed an array into foreach.

 Which can also have numerous reasons. I think that, in your case, it may
 be because of a 500 Internal Server Error which Twitter gives every now
 and then. You should do some checks on the information you get from
 Twitter before using it. ;-) Not all API calls always work.

 Tom


[twitter-dev] Re: OAuth + Whitelisting, transition questions

2010-08-16 Thread Matt Trinneer
Thanks Taylor!

Appreciate the assistance.

On Aug 14, 12:16 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 At this time, whitelisting applies to IP addresses and member accounts.
 OAuth and applications as entities themselves have no relation to
 whitelisting. Whitelisting currently has no relation to method of
 authorization (basic auth vs. OAuth).

 Short answer: Whitelisting doesn't change for you.

 But during the phase out of basic auth, your whitelisted requests while
 using basic auth will decrease by 10% each week day until all access will be
 denied in totality.

 Taylor

 On Sat, Aug 14, 2010 at 4:51 AM, Matt Trinneer matt.trinn...@gmail.comwrote:



  I agree Tom and am in the process of doing that.  I guess my biggest
  question could be rephrased as:

  After switching to OAuth will my extended rate limits automatically
  apply to OAuth requests from the same user/IP?

  Matt

  On Aug 13, 2:50 pm, Tom van der Woerdt i...@tvdw.eu wrote:
   On 8/13/10 8:08 PM, Matt Trinneer wrote:

Hello,

I'm curious to understand how the transition to OAuth will take place
for whitelisted accounts.  Currently I have 2 streaming accounts,
which if I understand correctly will not be impacted at all, and a
whitelisted basic auth access (20k/hour) for a specific set of IPs.

I've read that the Basic Auth rate limit will decrease by 10 calls a
day for 15 days until it's finally turned off for good.  Is this still
true?  If so, how the decrease apply to the extended 20k/hour rate
limit? Will it see a corresponding 6.6% (1320 call) reduction every
day during the same period?

Also, in order to have the extended rate limit I currently have
available to my new OAuth application, is there anything I need to
do?  Or does the fact that the new OAuth application was registered
under the same username and requests originate from ip combination
automatically transfer the limits?

Thanks for any insight you can offer.

Matt

   Hi Matt,

   I would like to point out that I think that you should stop worrying
   about the Basic Auth rate limiting and simply implement OAuth. It's
   about time that you do so anyway.

   Your extended limit is IP-based and does not care about the type you use
   - basic or OAuth.

   Tom


[twitter-dev] Can I use the Twitter API to get tweets for a specific user and timeframe?

2010-08-16 Thread Ben H
I've been doing some research into using the Twitter API, and I'm not
sure if I'm understanding it correctly. I want to get tweets from a
specific user for a specific time-frame. From what I can tell, using
the search function to specify a date range doesn't work because only
the last 7 days are kept. I could just get the tweets and work out the
date range with JavaScript, but the documentation states the the max
you can get is 200 tweets, so if the tweets from the date range I want
aren't in the last 200 I can't do it.

Is there anyway I can do this?


Re: [twitter-dev] Re: OAuth with Rails help getting going

2010-08-16 Thread Rajinder Yadav

On 10-08-15 01:13 PM, Tom van der Woerdt wrote:

On 8/14/10 7:21 PM, Rajinder Yadav wrote:
   

On 10-08-14 09:20 AM, Tom van der Woerdt wrote:
 

On 8/14/10 5:22 AM, Rajinder Yadav wrote:

   

On 10-08-13 08:35 PM, Rajinder Yadav wrote:

 

Hello,

I'm not having success with the following code, I get a Sorry, page
doesn't exist! webpage. I am using the OAuth v0.4.1 gem.  Your help
and guidance is very appreciated, thanks!

If I type the following out in IRB, it seems to work, but of course I
can't redirect from the shell.


class HomeController   ApplicationController

def index
   @consumer = OAuth::Consumer.new( bLI9szbXTJQnXKA,
 XXm41S6SYEy9uYR5oiAUxToPvQUlMd6g9A,
 { :site=https://api.twitter.com/oauth/request_token; } )

@request_tok...@consumer.get_request_token

session[:consumer]  = @consumer
session[:request_token] = @request_token

redirect_to @request_token.authorize_url
end

end


   

Hi I found by making the following change I now see the allow/deny page.
However when I click on allow, I do not get redirected back to my
callback page?


@consumer = OAuth::Consumer.new( bLI9szbXTJQnXKA,
 XXm41S6SYEy9uYR5oiAUxToPvQUlMd6g9A,
 :site=https://twitter.com;,
 :request_token_path =   /oauth/request_token,
 :authorize_path =   /oauth/authorize,
 :access_token_path  =   /oauth/access_token,
 :http_method =   :get ) )


What I am seeing in the pin page, saying:

You've successfully granted access to _TestApp!
Simply return to _TestApp and enter the following PIN to complete
the process.

How do I get Twitter to return back to my callback page on my site? My
app type is correctly set to browser.

--

Kind Regards,
Rajinder Yadav


 

Hi,

You should send theoauth_callback  parameter, as specified by the
documentation.

Tom

   

Hi Tom,

I have tired sending oauth_callback, made sure that my callback url
matches exactly the one specified in twitter app setting, something like
this:

redirect_to @request_token.authorize_url + oauth_callback= +
CGI.escape(http://myhome.dnydns.org/callback;)

I am testing the site from home using dynamic dns setup, would this be
causing the problem?
Also in the call to OAuth::Consumer.new, should the http_method be :get
or :post ?
I've also changed :site=https://twitter.com; to, :site =
https://api.twitter.com;
I'm still not sure what I am doing wrong and I feel like I am chasing my
tail!

 

Hi Rajinder,

Sorry if you misunderstood my last message. You are supposed to send the
callback in your oauth_callback parameter. If you get the PIN page, then
you send oob - out-of-bands, as your oauth_callback.

http://tools.ietf.org/html/rfc5849#section-2.1
Section 2.1 of RFC 5849 (OAuth 1.0) specifies oauth_callback as REQUIRED
- so, you are probably already sending it (either that, or Twitter
doesn't follow the specifications).

Also, it is a part of Section 2.1 of the OAuth specification - the part
where the client talks to the server. The line you changed was Section
2.2 - the redirection part.

Tom
   

Hi Tom,

I finally figured it out, the examples for RoR using OAuth seem to be 
stale. I was peeved at what seems to be a 'simple' process has to get so 
complicated.


--
Kind Regards,
Rajinder Yadav



[twitter-dev] Tracking Twitter Client Statistics

2010-08-16 Thread VictorAlexander
Hello,

I was wondering if anyone has managed to track stats for their twitter
clients. I currently develop on the iphone platform and am almost
finished with a twitter-related app. Does anyone know how we can track
how many tweets have been tweeted from a specific client and how many
users are using it? Thanks in advance!

Vicc


[twitter-dev] Reading Tweets on Date

2010-08-16 Thread VIP
Hi,

How can I read the tweets on a particular date ?

Ex:
 GetMethod get = new GetMethod(http://search.twitter.com/
search.json?)
  get.setQueryString(until=2010-08-15);


Regards, Anil


Re: [twitter-dev] Reading Tweets on Date

2010-08-16 Thread Taylor Singletary
Hi Anil,

There's no way to fixate the search API on a specific date in exactitude.
Instead, you could perform a query similar to the one you have in your
example here to bound the results until a certain date, then use the rpp and
page paramaters to paginate through the set iteratively, stopping when the
range steps out of the day you're focusing on. Depending on your query and
the number of tweets returned (and within the index of around ~5 days
currently of tweets), you may even get all your results in a single page.

Taylor



On Mon, Aug 16, 2010 at 5:58 AM, VIP vcanilku...@gmail.com wrote:

 Hi,

 How can I read the tweets on a particular date ?

 Ex:
  GetMethod get = new GetMethod(http://search.twitter.com/
 search.json?)
  get.setQueryString(until=2010-08-15);


 Regards, Anil



Re: [twitter-dev] Tracking Twitter Client Statistics

2010-08-16 Thread Taylor Singletary
Hi Victor,

Currently the best means to track these kind of statistics is likely by
maintaining them yourself. With an application on the iPhone platform, you
could utilize a local cache on the device, counting API actions and
interesting statistics, then batch push them to your own server for bulk
collection and analytics. Alternatively, you could also employ an analytics
service that supported ad-hoc data collection.

Taylor

On Mon, Aug 16, 2010 at 3:59 AM, VictorAlexander 
victor.alexan...@berkeley.edu wrote:

 Hello,

 I was wondering if anyone has managed to track stats for their twitter
 clients. I currently develop on the iphone platform and am almost
 finished with a twitter-related app. Does anyone know how we can track
 how many tweets have been tweeted from a specific client and how many
 users are using it? Thanks in advance!

 Vicc



[twitter-dev] User timeline doesn't include retweets...

2010-08-16 Thread eric.morand
Hi guys,

I'm having a lot of trouble displaying user timelines the same way
they are displayed on twitter.com. On twitter.com, retweets by the
user are included into the timeline. But when I rquest the user
timeline using...

https://api.twitter.com/statuses/user_timeline.json?include_entities=1page=1user_id=xxxinclude_rts=true

...retweets are not included, even though they should (http://
dev.twitter.com/doc/get/statuses/user_timeline).

I suppose the documentation is not up-to-date and include_rts doesn't
work anymore.

What is the official way to retrieve the retweets of user timelines ?


Thanks by advance,


Eric.


[twitter-dev] Re: Can I use the Twitter API to get tweets for a specific user and timeframe?

2010-08-16 Thread arian
Unfortunately, no.

see this thread
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/a7802a981c2aedee/15f9705c14e7b96f?lnk=gstq=arian#15f9705c14e7b96f

Arian

On 16 ago, 01:45, Ben H crusa...@gmail.com wrote:
 I've been doing some research into using the Twitter API, and I'm not
 sure if I'm understanding it correctly. I want to get tweets from a
 specific user for a specific time-frame. From what I can tell, using
 the search function to specify a date range doesn't work because only
 the last 7 days are kept. I could just get the tweets and work out the
 date range with JavaScript, but the documentation states the the max
 you can get is 200 tweets, so if the tweets from the date range I want
 aren't in the last 200 I can't do it.

 Is there anyway I can do this?


Re: [twitter-dev] Re: Twitter API the Basic Auth Shutdown: Everything you need to know.

2010-08-16 Thread Taylor Singletary
Quick correction on some mis-typed dates in the summary section:

  - Beginning Aug 17, basic auth rate limiting will decrease by 15 requests
on each week day (10% drop per weekday)
  - Aug 16, 8am Pacific - we'll shut basic auth temporarily off for 10
minutes
  - Aug 19, 5pm Pacific - we'll shut basic auth temporarily for 10 minutes
  - On August 31th, all basic auth requests will be served with a 401 HTTP
status code.


On Sun, Aug 15, 2010 at 9:09 AM, Jacky jaga...@gmail.com wrote:

 Thanks for a great job in transitioning...
 Incidentally, any chance of instituting having multiple aliases for a
 single user...so it is possible check timeline by checking an alias of
 a user in addition to just user id or name..I am asking because this
 has plenty of real world applications...

 Shob

 On Aug 13, 4:12 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  Hi Developers,
 
  Basic authentication is being deprecated beginning on August 16th. After
  August 31st, API clients will no longer be able to identify themselves
 using
  only a login and password when accessing the Twitter REST API.
 
  For those that just like to skim, here are the basics:
 
- Basic Auth will be completely shut off on August 30th.
- Beginning Aug 17, basic auth rate limiting will decrease by 15
 requests
  on each week day (10% drop per weekday)
- Aug 16, 8am Pacific - we'll shut basic auth temporarily off for 10
  minutes
- Aug 31, 5pm Pacific - we'll shut basic auth temporarily for 10
 minutes
- On August 30th, all basic auth requests will be served with a 401
 HTTP
  status code.
 
  We've discussed at length in the past why this transition is important.
 We
  recognize that it significantly increases the difficulty of working with
 the
  Twitter API. OAuth is not a silver bullet for security, but protects our
  users and the platform ecosystem notably better than basic
 authentication.
 
  Today, non-whitelisted basic authentication GET requests are limited to
 150
  calls per hour. POST operations, such as tweeting, are not effected by
 this
  limit. Basic auth apps can continue tweeting with impunity until the full
  turn off occurs on August 31st.
 
  Beginning August 17th, non-whitelisted basic authentication GET requests
  will be limited to 135 calls per hour. We will reduce the number of calls
  per hour by 15 each week day until August 31st. This means on August 18th
  Basic Authentication will be allowed 120 GET requests per hour, August
 19th
  105 GET requests per hour and so on. The decrement will happen on each
  Monday, Tuesday, Wednesday, Thursday, and Friday until August 31st.
 
  For whitelisted basic auth requests, the decrement will be comparative to
  the general ramp down levels -- about 10% of your total rate limit will
  decrement every day starting on August 16th. On August 31st, whitelisted
  basic auth requests will cease functioning as well.
 
  On August 31st, all basic auth requests will be serviced a 401 HTTP
 status
  code.
 
  You may have noticed that we temporarily shut basic authentication off
 today
  for 10 minutes. We gave minimal notice today, and recognize that more
 notice
  would have been optimal. We will be doing these integration tests a few
 more
  times before the total deprecation date.
 
  The next basic auth switch-off will occur on Monday, August 16th at 8am
  Pacific for 10 minutes. After that, we'll do another of these tests on
  Thursday, August 19th at 5pm Pacific for another 10 minutes. We'll do
 more
  of these after that, and we'll announce them closer to that time. As
 always,
  follow @twitterapi to keep track in real time.
 
  If you haven't started transitioning your application, we recommend
 reading
  our write up athttp://dev.twitter.com/pages/basic_to_oauthand leveraging
  the Twitter Developer mailing list when you need assistance.
 
  As always, we're here to help. Let's walk into this new morning together.
 
  Thanks,
  Taylor Singletary
  Developer Advocate, Twitter Platformhttp://twitter.com/episod



[twitter-dev] Re: Request to improve Tweet button JS interface

2010-08-16 Thread D. Smith
What, nobody else thinkgs it could be useful to have some sort or JS
based UI for the Tweet button? The Facebook JS UI is pretty good, you
can open the prompt and pre-fill it with a text message to be posted
to the wall right from your own javascript, user then just has to
click on Post button.
Also in Facebook UI you can have a simple one line of JS to test if
user is logged in to Facebook.
It would be great if Twitter made a simple UI for opening the Tweet
window programmatically, and also allowing to listen to onSuccess
(tweet posted, window closed) or onFailure events. It would also be
great to programmatically test if user is currently logged in to
Twitter (or at least has Twitter account).

Please lets get this topic going, I think it's important.



On Aug 15, 12:24 pm, Dmitri Snytkine d.snytk...@gmail.com wrote:
 Hello!
 I have a small request about the official Tweet button.
 It would be great if there was some way to know when user has
 successfully sent a tweet via a tweet popup window and after the
 window is closed.

 I am sure Twitter dev team can implement this easily. The benefit to a
 site owner is that if I know that a user has just Tweeted about my
 page, I therefore know that a user has a Twitter account, then I can
 show some prompt to ask a user to join my site with their Twitter
 account, I can also show a custom message like Thank you for sharing
 this page on Twtitter as well as can do many other things, even
 recording some data to my database to keep track which of my
 registered users has shared pages.

 All I need is some sort of a callback function to be fired on closing
 of that window.
 This could be some sort of custom event that I can subscribe to or
 some sort of callback function.

 Does this make sense?


Re: [twitter-dev] Re: Request to improve Tweet button JS interface

2010-08-16 Thread Taylor Singletary
Some of the features you are looking for are part of the @Anywhere arm of
the platform: http://dev.twitter.com/anywhere

Taylor

On Mon, Aug 16, 2010 at 8:29 AM, D. Smith emai...@sharedlog.com wrote:

 What, nobody else thinkgs it could be useful to have some sort or JS
 based UI for the Tweet button? The Facebook JS UI is pretty good, you
 can open the prompt and pre-fill it with a text message to be posted
 to the wall right from your own javascript, user then just has to
 click on Post button.
 Also in Facebook UI you can have a simple one line of JS to test if
 user is logged in to Facebook.
 It would be great if Twitter made a simple UI for opening the Tweet
 window programmatically, and also allowing to listen to onSuccess
 (tweet posted, window closed) or onFailure events. It would also be
 great to programmatically test if user is currently logged in to
 Twitter (or at least has Twitter account).

 Please lets get this topic going, I think it's important.



 On Aug 15, 12:24 pm, Dmitri Snytkine d.snytk...@gmail.com wrote:
  Hello!
  I have a small request about the official Tweet button.
  It would be great if there was some way to know when user has
  successfully sent a tweet via a tweet popup window and after the
  window is closed.
 
  I am sure Twitter dev team can implement this easily. The benefit to a
  site owner is that if I know that a user has just Tweeted about my
  page, I therefore know that a user has a Twitter account, then I can
  show some prompt to ask a user to join my site with their Twitter
  account, I can also show a custom message like Thank you for sharing
  this page on Twtitter as well as can do many other things, even
  recording some data to my database to keep track which of my
  registered users has shared pages.
 
  All I need is some sort of a callback function to be fired on closing
  of that window.
  This could be some sort of custom event that I can subscribe to or
  some sort of callback function.
 
  Does this make sense?



[twitter-dev] Re: Request to improve Tweet button JS interface

2010-08-16 Thread D. Smith
Anywhere looks interesting. I'm surprised I did not know anything
about it :)
But still, adding some of the the features from Anywhere to the Tweet
button would be great!



On Aug 16, 11:37 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Some of the features you are looking for are part of the @Anywhere arm of
 the platform:http://dev.twitter.com/anywhere

 Taylor



 On Mon, Aug 16, 2010 at 8:29 AM, D. Smith emai...@sharedlog.com wrote:
  What, nobody else thinkgs it could be useful to have some sort or JS
  based UI for the Tweet button? The Facebook JS UI is pretty good, you
  can open the prompt and pre-fill it with a text message to be posted
  to the wall right from your own javascript, user then just has to
  click on Post button.
  Also in Facebook UI you can have a simple one line of JS to test if
  user is logged in to Facebook.
  It would be great if Twitter made a simple UI for opening the Tweet
  window programmatically, and also allowing to listen to onSuccess
  (tweet posted, window closed) or onFailure events. It would also be
  great to programmatically test if user is currently logged in to
  Twitter (or at least has Twitter account).

  Please lets get this topic going, I think it's important.

  On Aug 15, 12:24 pm, Dmitri Snytkine d.snytk...@gmail.com wrote:
   Hello!
   I have a small request about the official Tweet button.
   It would be great if there was some way to know when user has
   successfully sent a tweet via a tweet popup window and after the
   window is closed.

   I am sure Twitter dev team can implement this easily. The benefit to a
   site owner is that if I know that a user has just Tweeted about my
   page, I therefore know that a user has a Twitter account, then I can
   show some prompt to ask a user to join my site with their Twitter
   account, I can also show a custom message like Thank you for sharing
   this page on Twtitter as well as can do many other things, even
   recording some data to my database to keep track which of my
   registered users has shared pages.

   All I need is some sort of a callback function to be fired on closing
   of that window.
   This could be some sort of custom event that I can subscribe to or
   some sort of callback function.

   Does this make sense?


[twitter-dev] Access Token updating on App page

2010-08-16 Thread Evan Anderson
I've seen that read, read + write access is based on access tokens,
and you can request new access tokens if you update your settings.

However, It seems that the access tokens Twitter gives you explicitly
on an app's settings page don't update to reflect this when you update
your app's access settings. I was just curious if the twitter dev team
was aware of this and any indication if they will update the access
tokens in the future to reflect an app's access setting.

Best,
Evan Anderson


[twitter-dev] Re: Introducing the Tweet Button

2010-08-16 Thread Jonathan Strauss
I just posted a WP plugin that uses the dataurl attribute to make the
tweet button work with awe.sm, bit.ly, su.pr, and tinyurl:
http://wordpress.org/extend/plugins/tweet-button-with-shortening/

It also allows multi-author blogs to automatically add the post author
to the recommended users screen after the tweet.

On Aug 12, 12:18 pm, Abraham Williams 4bra...@gmail.com wrote:
 Clint,

 Include a data-url attribute in the a element. It will get wrapped in a
 t.co but the user will still hit the arst.ch domain.

 a href=http://twitter.com/share; class=twitter-share-button 
 data-url=http://arst.ch/xyz; data-count=vertical
 data-via=abrahamTweet/ascript type=text/javascript 
 src=http://platform.twitter.com/widgets.js;/script

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



 On Thu, Aug 12, 2010 at 11:30, Clint Ecker clintec...@gmail.com wrote:
  On Thu, Aug 12, 2010 at 10:28 AM, themattharris
  thematthar...@twitter.com wrote:
   Today we’re launching the Tweet Button to make it easy for your users
   to share your website with their followers. When they click on the
   Tweet Button, a Tweet box will appear pre-populated with a message and
   link chosen by you. Once they have sent a Tweet they can choose to
   follow accounts recommended by you. All of this happens on your
   website, so the user never has to leave.

  Hi Matt,

  I'd really like to use this on Ars Technica, but it seems to force the
  t.co shortener on us.  We have our own shorturl system (arst.ch) and I
  need to use that.  Can you explain how I might go about doing
  that—I've scoured the docs and have seen no mention of custom Short
  URLs.

  Thanks!
  Clint


[twitter-dev] Re: New tweet button - is t.co mandatory?

2010-08-16 Thread Jonathan Strauss
I've just posted a WP plugin that makes it easy to use the tweet
button with awe.sm, bit.ly, su.pr, and tinyurl:
http://wordpress.org/extend/plugins/tweet-button-with-shortening/

On Aug 13, 8:17 am, Matt LeMay from bit.ly matthew.le...@gmail.com
wrote:
 Hi, folks-

 Yes indeed, t.co links will be unwrapped in the stream, so bit.ly pro
 users will still be able to use custom domains, along with bit.ly's
 analytics features.

 We put a post up on our blog explaining how publishers can continue to
 use bit.ly pro domains with the Tweet Button:

 http://blog.bit.ly/post/945591208/using-bit-ly-with-twitters-tweet-bu...

 And we are working on some additional tools and resources for
 publishers.

 If you have any specific questions about implementation, do not
 hesitate to contact supp...@bit.ly, or to e-mail me directly!

 Thanks-
 Matt LeMay
 m...@bit.ly

 On Aug 13, 10:06 am, Tom van der Woerdt i...@tvdw.eu wrote:



  On 8/13/10 5:04 AM, pthomsen wrote:

   I read in the techcrunch article, that the posting url is wrapped in
   t.co, but then when displayed in the stream, the url gets unwrapped
   again, so you should see the moxs.ie url (in my case). This doesn't
   happen for me. I only see the t.co url.

   Is there a whitelist of URLs that are accepted by twitter for
   'unwrapping-in-the-stream'? If so, how do I get on that list?

   Thanks,
   Per

  Yesterday I noticed that t.co links were unwrapped in the search, but it
  looks like that is no longer the case at the moment. Probably taken
  offline for a few hours to perfect the algorithm, like Twitter usually
  does after implementing something new (happened to Lists too).

  It looked like all t.co links are unwrapped, so don't worry ;-)

  Tom


[twitter-dev] Re: Twitter Button Counts

2010-08-16 Thread Jonathan Strauss
I am seeing the issue with awe.sm links. It seems unlikely, but my
theory is that Twitter isn't unwrapping *all* redirect links to
attribute to the count, only those on certain domains.

See:
http://backtweets.com/search?q=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Ftweet-button-with-shortening%2F
vs.
http://search.twitter.com/search?q=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Ftweet-button-with-shortening%2F

Anyone have any info on this?


On Aug 16, 5:13 am, Tom van der Woerdt i...@tvdw.eu wrote:
 On 8/16/10 2:05 PM, artesea wrote:





  On my website I have added the Twitter Button and I want it to use my
  own customer short URL. However I'm finding it never counts the number
  of search results.

  eg:
 http://www.libdemvoice.org/office-of-the-public-guardian-finally-star...
  hashttp://ldv.org.uk/20680as a shortlink

  I'm using data-url withhttp://ldv.org.uk/20680and continuously get
  back 0. Click on the zero and at the moment I get 4 search results.
  I noticed that bit.ly mentioned an undocumented data-counturl, setting
  this to the shortlink continues to bring up 0, however using the full
  link I get 1, but as most people tweet our shortlink already I want
  those numbers, and those using the full link are those RSS-Tweet
  people who I don't really care about.

  Is there any reason why using my custom short links we aren't getting
  back any results?

 I have one theory and that is that the Twitter button caches the
 numbers. Try opening a different browser - I've heard people that said
 that this works.

 You should also make sure that you don't generate a new shortlink for
 every tweet.

 Tom


Re: [twitter-dev] Access Token updating on App page

2010-08-16 Thread Taylor Singletary
Good point, Evan.

In the mean time -- if you go and explicitly reject your access token on
http://twitter.com/settings/connections and then re-negotiate it on the my
token feature on dev.twitter.com, you should be able to get around this
limitation.

Taylor

On Mon, Aug 16, 2010 at 9:29 AM, Evan Anderson ejdander...@gmail.comwrote:

 I've seen that read, read + write access is based on access tokens,
 and you can request new access tokens if you update your settings.

 However, It seems that the access tokens Twitter gives you explicitly
 on an app's settings page don't update to reflect this when you update
 your app's access settings. I was just curious if the twitter dev team
 was aware of this and any indication if they will update the access
 tokens in the future to reflect an app's access setting.

 Best,
 Evan Anderson



Re: [twitter-dev] Streaming API limits

2010-08-16 Thread Tom van der Woerdt
On 8/16/10 4:38 PM, Thiago Souza wrote:
 Hi,
 
 I know that it's possible to track up to 200 keywords per account,
 but how many accounts per IP is allowed?
 
 Regards,
 Thiago Souza

Hi Thiago,

I don't think that Twitter will give you these numbers. Just don't
create more connections than necessary, and if you need more track
keywords, you should consider asking Twitter for an upgrade of your account.

Tom


Re: [twitter-dev] Tweeting from a CMS

2010-08-16 Thread Tom van der Woerdt
On 8/16/10 4:47 PM, stevew wrote:
 
 Under the old basic auth, I could have a section of our web based CMS
 that could enable logged in users to tweet to our company's twitter
 account without needing to know the username and password.
 
 However it appears to me that once twitter removes the basic
 authentication this functionality will be gone as anyone who wants to
 use a web app to post to a particular account will actually have to be
 logged into the account in question, is that correct?
 
 Is there any official, white-hat way to accomplish this? It is a
 really useful feature!

You mean *from* your company's account? With OAuth, you don't need
username/password, because these are replaced by credentials. It's still
very much possible.

If you mean *to* your account, then you will need the credentials of the
users, like you normally would. This would be done via OAuth, or the
easy way which is called @Anywhere - simple javascript which you can put
on your website, allowing your users to Tweet from your website without
a lot of implementation work.

Just 2 options - a lot more is possible ;-)

Tom


Re: [twitter-dev] OAuth authentication issuse

2010-08-16 Thread Tom van der Woerdt
On 8/16/10 6:41 PM, Jims wrote:
 Hi guys,
 
 request:/1/statuses/update.json,error:Could not authenticate
 you.
 
 I am trying to post a tweet to one of my accounts using oAuth, with a
 script I wrote on PERL. I'm sending the request as a POST with the
 required tokens in the header. but I keep getting this error
 
 request:/1/statuses/update.json,error:Could not authenticate
 you.
 
 Additional info:
 
 I have the consumer key and secret, oauth token and secret, I'm
 generating the nonce myself, I'm passing a timestamp in milliseconds .
 
 I believe I am constructing the signature in the correct order, and am
 using the consumer and oauth secrets to sign them.
 
 Everything is url encoded.
 
 Is there something I have to do before I can tweet, bearing in mind I
 have all the tokens
 
 
 

Hi,

The error you get is the error people get when not sending the oauth
information like signature, token, etc. You should send the OAuth
information in the Authorization: header.

Also, you should pass the timestamp in seconds since the unix epoch, not
in milliseconds.

If this does not solve it, please show me one of your Base Strings.

Tom


Re: [twitter-dev] Re: Open Source Android/Twitter Application

2010-08-16 Thread Abraham Williams
I've been asking about the Twitter for Android code for months. I guess
priorities have changed.

You can find the locked down code repository on Google Code:
http://code.google.com/p/twitter-for-android/

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


On Sun, Aug 15, 2010 at 23:52, Bess bess...@gmail.com wrote:

 I have written a book chapter on how to integrate Twitter4J  OAuth
 Java lib with code example in Android last month. It has the bare
 minimal but the Twitter Java lib would support all Twitter APIs.

 I am not sure I could release the chapter prior before the book. If
 the book dies then I may be free to publish it.

 I am not quite sure if Twitter has official Android app that Twitter
 is going to open source the code.

 On Aug 14, 4:39 pm, Clay Graham claytan...@sightlyinc.com wrote:
  Brad,
 
  The reason I am interested in it is not only because I am doing a ton
  of Twitter work for Android, but also because that app was supposed be
  their reference implementation for UI patterns and best practices for
  Android. I am revising my Android app now and would love to see how
  they did many of the things they do in that app. What I really wish is
  someone from google or twitter would respond.
 
  Clay
 
  On Aug 13, 7:16 pm, Brad Bosley brad.bos...@gmail.com wrote:
 
   Clay,
 
   I've been waiting for it too!  Hopefully they don't back out of the
 promise.
 
   Regards,
   Brad Bosley
 
   On Fri, Aug 13, 2010 at 6:07 PM, Clay Graham 
 claytan...@sightlyinc.com wrote:
Ed,
 
Thanks for the advice. I have emailed Tim directly, no reply. Will
keep trying. Can I be the only one who is hungry for this?
 
Clay



Re: [twitter-dev] Streaming API limits

2010-08-16 Thread Matt Harris
Hi Thiago,

We allow each account to have one standing connection to the streaming API.
Multiple connections receive the same stream of Tweets so connecting
multiple times would not give access to any more Tweets. If you need more to
have more track keywords you can contact us explaining your use case so the
team can make a decision and if necessary grant you higher access.

You can read more about access and rate limiting on the streaming API in our
developer documentation:
  http://dev.twitter.com/pages/streaming_api_concepts#access-rate-limiting

Hope that helps,
Matt

On Mon, Aug 16, 2010 at 10:05 AM, Tom van der Woerdt i...@tvdw.eu wrote:

 On 8/16/10 4:38 PM, Thiago Souza wrote:
  Hi,
 
  I know that it's possible to track up to 200 keywords per account,
  but how many accounts per IP is allowed?
 
  Regards,
  Thiago Souza

 Hi Thiago,

 I don't think that Twitter will give you these numbers. Just don't
 create more connections than necessary, and if you need more track
 keywords, you should consider asking Twitter for an upgrade of your
 account.

 Tom




-- 


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


Re: [twitter-dev] What's the status of OAuth2 API?

2010-08-16 Thread Taylor Singletary
Hi there,

@Anywhere does use some elements of OAuth2 for its authentication process
but we've yet to announce any timeline for any other support of OAuth2.
OAuth2 is a gaggle of authentication methods rolled into one, and we've yet
to decide which profiles we'll support.

Taylor

On Mon, Aug 16, 2010 at 12:22 PM, D. Smith emai...@sharedlog.com wrote:

 Hello!
 I looked at Twitter Anywhere API and it says the API will set the
 cookie 'twitter_anywhere_identity' under my sites' domain.
 This sounds like how the Facebook JS API is doing the OAuth2
 authentication where I then read the value of that cookie on the
 server side and then request data from facebook using that access
 token.

 Is this something that will be available soon on Twitter? I am using
 the OAuth right now but I find that cookie based OAuth2 is much easier
 to work with.

 Do you already have this in beta? I would like to try it.





Re: [twitter-dev] Re: What's the status of OAuth2 API?

2010-08-16 Thread Taylor Singletary
We'll have a means to exchange @Anywhere access tokens for OAuth 1.0 access
tokens soon.

Little bit of devil's advocate for the community on this topic though:
  - Do you think that when a user authorizes your site to use @Anywhere that
there is any implicit authorization that you should be able to exchange
those tokens for long-lasting OAuth 1.0A REST tokens without explicitly
indicating that you would do that?

Taylor

On Mon, Aug 16, 2010 at 12:36 PM, D. Smith emai...@sharedlog.com wrote:

 All I say is that if the 'twitter_anywhere_identity' cookie contained
 some type of token which could then be used on server side to get
 actual oauth token, that would be super cool.

 That's exactly how Facebook does it in their JS API, I love it, it's
 much easier to use to the OAuth1


 On Aug 16, 3:29 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  Hi there,
 
  @Anywhere does use some elements of OAuth2 for its authentication process
  but we've yet to announce any timeline for any other support of OAuth2.
  OAuth2 is a gaggle of authentication methods rolled into one, and we've
 yet
  to decide which profiles we'll support.
 
  Taylor
 
 
 
  On Mon, Aug 16, 2010 at 12:22 PM, D. Smith emai...@sharedlog.com
 wrote:
   Hello!
   I looked at Twitter Anywhere API and it says the API will set the
   cookie 'twitter_anywhere_identity' under my sites' domain.
   This sounds like how the Facebook JS API is doing the OAuth2
   authentication where I then read the value of that cookie on the
   server side and then request data from facebook using that access
   token.
 
   Is this something that will be available soon on Twitter? I am using
   the OAuth right now but I find that cookie based OAuth2 is much easier
   to work with.
 
   Do you already have this in beta? I would like to try it.



Re: [twitter-dev] Re: What's the status of OAuth2 API?

2010-08-16 Thread Tom van der Woerdt
I don't think that the user even knows that he/she is using @Anywhere
and not some homemade feature of the website he/she is visiting.

Also, you can do a *lot* with @Anywhere and it doesn't really change
very much when changing that to OAuth.

I don't think that the user would care, as long as the tokens are used
properly.

Tom


On 8/16/10 9:39 PM, Taylor Singletary wrote:
 We'll have a means to exchange @Anywhere access tokens for OAuth 1.0
 access tokens soon. 
 
 Little bit of devil's advocate for the community on this topic though:
   - Do you think that when a user authorizes your site to use @Anywhere
 that there is any implicit authorization that you should be able to
 exchange those tokens for long-lasting OAuth 1.0A REST tokens without
 explicitly indicating that you would do that?
 
 Taylor
 
 On Mon, Aug 16, 2010 at 12:36 PM, D. Smith emai...@sharedlog.com
 mailto:emai...@sharedlog.com wrote:
 
 All I say is that if the 'twitter_anywhere_identity' cookie contained
 some type of token which could then be used on server side to get
 actual oauth token, that would be super cool.
 
 That's exactly how Facebook does it in their JS API, I love it, it's
 much easier to use to the OAuth1
 
 
 On Aug 16, 3:29 pm, Taylor Singletary taylorsinglet...@twitter.com
 mailto:taylorsinglet...@twitter.com
 wrote:
  Hi there,
 
  @Anywhere does use some elements of OAuth2 for its authentication
 process
  but we've yet to announce any timeline for any other support of
 OAuth2.
  OAuth2 is a gaggle of authentication methods rolled into one, and
 we've yet
  to decide which profiles we'll support.
 
  Taylor
 
 
 
  On Mon, Aug 16, 2010 at 12:22 PM, D. Smith emai...@sharedlog.com
 mailto:emai...@sharedlog.com wrote:
   Hello!
   I looked at Twitter Anywhere API and it says the API will set the
   cookie 'twitter_anywhere_identity' under my sites' domain.
   This sounds like how the Facebook JS API is doing the OAuth2
   authentication where I then read the value of that cookie on the
   server side and then request data from facebook using that access
   token.
 
   Is this something that will be available soon on Twitter? I am using
   the OAuth right now but I find that cookie based OAuth2 is much
 easier
   to work with.
 
   Do you already have this in beta? I would like to try it.
 
 



[twitter-dev] Twurl installation problem

2010-08-16 Thread Quy
I have installed Twurl and want to use it to authorize for single
access token usage but when I try to run twurl authorize to test I
get these errors:


% twurl authorize
/usr/local/lib/ruby/gems/1.9.1/gems/twurl-0.6.1/lib/twurl/cli.rb:31:in
`dispatch': undefined method `dispatch' for
Twurl::AuthorizationController:Class (NoMethodError)
from /usr/local/lib/ruby/gems/1.9.1/gems/twurl-0.6.1/lib/twurl/
cli.rb:14:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/twurl-0.6.1/bin/twurl:
4:in `top (required)'
from /usr/local/bin/twurl:19:in `load'
from /usr/local/bin/twurl:19:in `main'

Any idea how to fix this? I've followed the instructions at
http://github.com/marcel/twurl/blob/master/INSTALL

Any help is appreciated.
Thanks,
Quy


[twitter-dev] oauth friends_timeline request

2010-08-16 Thread rustbucket
I'm in the middle of creating a twitter app using appcelerator, which
means I'm limited to javascript. Luckily I've managed to get
everything up and running using the oauth libraries available on
google code but I'm stuck on what is probably an obvious and newbish
problem, I have no clue how to structure a request string using the
tokens I'm storing post authentication. If I were doing this using
basic authentication the request would look like this:

httpClient.open('GET','http://twitterName:twitterp...@api.twitter.com/
1/statuses/friends_timeline/username.json?count=3');

Given the above, where do the oauth_token and oauth_token_secret
values figure? I realize this question is a bit vague in terms of
concrete code but I'm pretty good at interpretation, if someone has a
verbose example of what I'm trying to do in php or vbscript or
something I can probably translate to what appcelerator/twitter
requires.

Thanks again, r.


[twitter-dev] Hovercards and Chrome / Chromium browser reloads?

2010-08-16 Thread M. Edward (Ed) Borasky
I run Chrome and Chromium (6.0 - bleeding edge) on openSUSE Linux.  
I've noticed something - when I do a saved search, hovercards don't  
show up when I mouse over a name. But if I do a browser reload, they  
*do* show up! I have tried this on Firefox and probably won't - it's  
not a big deal. But I just thought I'd mention it.


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

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







Re: [twitter-dev] Tweet Button w/ Shortening for WordPress

2010-08-16 Thread M. Edward (Ed) Borasky
Looks great!! It doesn't seem to be putting the button on pages,  
though - just posts. I check the box, hit the Save button, and it  
comes back unchecked.

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

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


Quoting Jonathan Strauss jonat...@snowballfactory.com:


Adds a fully configurable official Twitter tweet button to your self-
hosted WordPress blog. You can set it up to use awe.sm, bit.ly,
tinyurl, su.pr, or digg to shorten the links shared through the tweet
button.

Features:
* Choose the placement of the button on your posts: top; bottom; top 
bottom; or manual
* Choose the type of Twitter tweet button you want: vertical count;
horizontal count; or no count
* Optionally use awe.sm, bit.ly, su.pr, digg.com, or tinyurl to
shorten the links shared through the tweet button (default is
Twitter's t.co)
* Specify the via Twitter username to be included at the end of the
tweet and in the recommended users to follow screen after the tweet
* Optionally add the author of a given post to the recommended users
to follow screen after the tweet (requires the author to enter their
Twitter username in their WP profile)
* Disable the button on Pages

http://wordpress.org/extend/plugins/tweet-button-with-shortening/

Enjoy!
-jonathan

--
Jonathan Strauss, Co-Founder
http://snowballfactory.com

Campaign tracking for social media - http://awe.sm
A smarter way to update Facebook from Twitter - http://tweetpo.st
Sharecount button for Facebook - http://www.fbshare.me







Re: [twitter-dev] oauth friends_timeline request

2010-08-16 Thread Tom van der Woerdt
On 8/16/10 10:34 PM, rustbucket wrote:
 I'm in the middle of creating a twitter app using appcelerator, which
 means I'm limited to javascript. Luckily I've managed to get
 everything up and running using the oauth libraries available on
 google code but I'm stuck on what is probably an obvious and newbish
 problem, I have no clue how to structure a request string using the
 tokens I'm storing post authentication. If I were doing this using
 basic authentication the request would look like this:
 
 httpClient.open('GET','http://twitterName:twitterp...@api.twitter.com/
 1/statuses/friends_timeline/username.json?count=3');
 
 Given the above, where do the oauth_token and oauth_token_secret
 values figure? I realize this question is a bit vague in terms of
 concrete code but I'm pretty good at interpretation, if someone has a
 verbose example of what I'm trying to do in php or vbscript or
 something I can probably translate to what appcelerator/twitter
 requires.
 
 Thanks again, r.

With the above, you would make a Base String, in your case :
baseString = method + '' + urlencode(url) + '' + urlencode(body)
method = GET
url = http://api.twitter.com/1/statuses/friends_timeline/username.json
body = oauth_* and count=3, sorted in alphabetical order

You would then take the HMAC-SHA1 hash of this base string (using your
oauth secret and that of the user) which is your signature.

When you have the signature, you put all the values in the
Authorization: header and do the actual request.

Sounds simple. It is, but it may take some coding :-)

Tom


[twitter-dev] Mombo.com API

2010-08-16 Thread Peter Denton
Hey everyone,
I work on a project called Mombo.com which does sentiment analysis on
box-office movies.

We have an API but wanted to know if other developers would be interested in
consuming the data. It would allow you to do things like show lists of
popular movies, get the scores of independent movies, etc.

Not trying to self-promote here as much as just generally interested to see
if other developers would like to consume.

Thanks
Peter

-- 
Peter Denton
Co-Founder, Product Marketing
www.mombo.com
cell: (206) 427-3866
twitter @Mombo_movies
twitter - personal: @petermdenton


Re: [twitter-dev] Mombo.com API

2010-08-16 Thread M. Edward (Ed) Borasky

What are the licensing terms for using the API? How can I make money with it?
--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

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


Quoting Peter Denton petermden...@gmail.com:


Hey everyone,
I work on a project called Mombo.com which does sentiment analysis on
box-office movies.

We have an API but wanted to know if other developers would be interested in
consuming the data. It would allow you to do things like show lists of
popular movies, get the scores of independent movies, etc.

Not trying to self-promote here as much as just generally interested to see
if other developers would like to consume.

Thanks
Peter

--
Peter Denton
Co-Founder, Product Marketing
www.mombo.com
cell: (206) 427-3866
twitter @Mombo_movies
twitter - personal: @petermdenton







[twitter-dev] Is something broken in signon?

2010-08-16 Thread M. Edward (Ed) Borasky
I'm getting some strange messages - Twitter thinks I'm trying to sign  
in too often and is shutting me out. Is that on Twitter's end, or do I  
have some rogue process on my workstation?


I think I killed everything - I was testing some open source clients  
but they're supposedly all shut down.


--
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-dev] 404 and statuses/friends_timeline.xml

2010-08-16 Thread nyj2005
Hi all,

I started receiving a 404 error when calling
http://api.twitter.com/1/statuses/friends_timeline.xml from my
website. I have a php cron script that runs every 5 minutes and it had
worked fine for months until just a few days ago when I noticed that
the twitter feed stopped being updated. I tried running the script
manually and saw the 404 response. The same script runs just fine from
my local machine.

Here's the response I get on my website:

Array
(
[url] = http://api.twitter.com/1/statuses/friends_timeline.xml?count=100
[content_type] = text/html; charset=UTF-8
[http_code] = 404
[header_size] = 200
[request_size] = 150
[filetime] = -1
[ssl_verify_result] = 0
[redirect_count] = 0
[total_time] = 0.065588
[namelookup_time] = 0.002289
[connect_time] = 0.032684
[pretransfer_time] = 0.032689
[size_upload] = 0
[size_download] = 498
[speed_download] = 7592
[speed_upload] = 0
[download_content_length] = 498
[upload_content_length] = -1
[starttransfer_time] = 0.065525
[redirect_time] = 0
)

Thanks


[twitter-dev] Re: Tweet Button w/ Shortening for WordPress

2010-08-16 Thread Jonathan Strauss
I'm not sure if my reply failed or is pending, but version 0.2.1,
which fixes this issue, is now live at
http://wordpress.org/extend/plugins/tweet-button-with-shortening/

Thanks Ed!

-jonathan

--
Jonathan Strauss, Co-Founder
http://snowballfactory.com
Campaign tracking for social media - http://awe.sm
A smarter way to update Facebook from Twitter - http://tweetpo.st
Sharecount button for Facebook - http://www.fbshare.me

On Aug 16, 2:04 pm, M. Edward (Ed) Borasky zn...@borasky-
research.net wrote:
 Looks great!! It doesn't seem to be putting the button on pages,  
 though - just posts. I check the box, hit the Save button, and it  
 comes back unchecked.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

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

 Quoting Jonathan Strauss jonat...@snowballfactory.com:



  Adds a fully configurable official Twitter tweet button to your self-
  hosted WordPress blog. You can set it up to use awe.sm, bit.ly,
  tinyurl, su.pr, or digg to shorten the links shared through the tweet
  button.

  Features:
  * Choose the placement of the button on your posts: top; bottom; top 
  bottom; or manual
  * Choose the type of Twitter tweet button you want: vertical count;
  horizontal count; or no count
  * Optionally use awe.sm, bit.ly, su.pr, digg.com, or tinyurl to
  shorten the links shared through the tweet button (default is
  Twitter's t.co)
  * Specify the via Twitter username to be included at the end of the
  tweet and in the recommended users to follow screen after the tweet
  * Optionally add the author of a given post to the recommended users
  to follow screen after the tweet (requires the author to enter their
  Twitter username in their WP profile)
  * Disable the button on Pages

 http://wordpress.org/extend/plugins/tweet-button-with-shortening/

  Enjoy!
  -jonathan

  --
  Jonathan Strauss, Co-Founder
 http://snowballfactory.com

  Campaign tracking for social media -http://awe.sm
  A smarter way to update Facebook from Twitter -http://tweetpo.st
  Sharecount button for Facebook -http://www.fbshare.me


Re: [twitter-dev] Tweet Button w/ Shortening for WordPress

2010-08-16 Thread M. Edward (Ed) Borasky
I install my plugins manually ;-) - it's now live and tweeting from  
pages! Thanks!

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

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


Quoting Jonathan Strauss jonat...@snowballfactory.com:

Thanks for the heads-up Ed! I just fixed that issue and uploaded   
version 0.2.1 to   
http://wordpress.org/extend/plugins/tweet-button-with-shortening/.   
It can sometimes take a few minutes to process, but you should get   
an alert in your WP admin when the new version is live.


-jonathan

--
Jonathan Strauss, Co-Founder
http://snowballfactory.com

Campaign tracking for social media - http://awe.sm
A smarter way to update Facebook from Twitter - http://tweetpo.st
Sharecount button for Facebook - http://www.fbshare.me

On Aug 16, 2010, at 2:04 PM, M. Edward (Ed) Borasky wrote:

Looks great!! It doesn't seem to be putting the button on pages,   
though - just posts. I check the box, hit the Save button, and it  
 comes back unchecked.

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

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


Quoting Jonathan Strauss jonat...@snowballfactory.com:


Adds a fully configurable official Twitter tweet button to your self-
hosted WordPress blog. You can set it up to use awe.sm, bit.ly,
tinyurl, su.pr, or digg to shorten the links shared through the tweet
button.

Features:
* Choose the placement of the button on your posts: top; bottom; top 
bottom; or manual
* Choose the type of Twitter tweet button you want: vertical count;
horizontal count; or no count
* Optionally use awe.sm, bit.ly, su.pr, digg.com, or tinyurl to
shorten the links shared through the tweet button (default is
Twitter's t.co)
* Specify the via Twitter username to be included at the end of the
tweet and in the recommended users to follow screen after the tweet
* Optionally add the author of a given post to the recommended users
to follow screen after the tweet (requires the author to enter their
Twitter username in their WP profile)
* Disable the button on Pages

http://wordpress.org/extend/plugins/tweet-button-with-shortening/

Enjoy!
-jonathan

--
Jonathan Strauss, Co-Founder
http://snowballfactory.com

Campaign tracking for social media - http://awe.sm
A smarter way to update Facebook from Twitter - http://tweetpo.st
Sharecount button for Facebook - http://www.fbshare.me














[twitter-dev] POST geo/place : place is not in a whitelisted container

2010-08-16 Thread Clay Graham
When trying to add a new place called Dishoom contained within
Covent Garden, London whose id is: af9c4064cc79391a I received the
following error:

{errors:[{code:41,message:Invalid geo argument: place is not in
a whitelisted container}]}

Can anyone give me insight into this error? Do I have to get my app
whitelisted in order to save places?

http://dev.twitter.com/pages/rate-limiting#whitelisting does not
mention anything about the Geo api.

Clay
http://ratecred.com