Re: [twitter-dev] How to get results older than last 100 tweets from a profile or search

2010-08-31 Thread Matt Harris
Hey Pablo,

The reason you are getting 100 results is because you are passing a results
per page (rpp) value of 100. To access the next 100 results you need to
request the next page, which you can do by setting the parameter 'page'
equal to the page you want.

You can find out more about search on our developer resources site:
http://dev.twitter.com/doc/get/search

Hope that helps,
Matt

On Mon, Aug 30, 2010 at 6:34 PM, Pablo Augusto em...@pabloaugusto.comwrote:


 Hello,

 I'm wondering if its possible to get back the twits from one account for
 last 3 days for example.
 im useing a class that do the follow search to capture tweets:

 $request  = 'http://search.twitter.com/search.'.$this-type;
  $request .= '?q='.urlencode($this-query);

 Using the methos of this class i do the fololow search:

 $search = new TwitterSearch();
 $search-from('@username');
 $search-contains('#hashtag');
 $search-since(22554873450);
 $results = $search-rpp(100)-results();

 But i only get the last 100 results (the newest ever)
 I just try to put a low number at SINCE:

 for example: $search-since(21554873450);

 Buts aver show the last newest results.


 Anyone knows how can i get results older than last 100 newest in any
 querry, class, function, etc?

 if anyone can help, ill be graceful.



 *
 *
 *Pablo Augusto*
  MSN: m...@pabloaugusto.com
 SKYPE: sk...@pabloaugusto.com
 EMAIL: cont...@pabloaugusto.com
 SITE: http://webtags.com.br

  [image: Linkedin] http://linkedin.com/in/pabloaugusto [image: 
 Twitter]http://twitter.com/pabloaugusto
  [image: Facebook][image: Flickr] http://flickr.com/photos/pabloaugusto 
 [image:
 Youtube] http://youtube.com/pabloaugustoo [image: 
 FormSpring]http://formspring.me/pabloaugust0 [image:
 LastFM] http://lastfm.com.br/user/pabloaugustoo [image: 
 DeviantART]http://deviantart.com/pabloaugustoo [image:
 Tumblr] http://pabloaugusto.tumblr.com/ [image: 
 Vimeo]http://vimeo.com/pabloaugusto [image:
 del.icio.us] http://del.icio.us/pabloaugusto [image: 
 Slideshare]http://slideshare.net/pabloaugusto [image:
 Friendfeed] http://friendfeed.com/pabloaugusto


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




-- 


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

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


Re: [twitter-dev] Re: Twitter button not showing up in IE7

2010-08-31 Thread Matt Harris
Hey Artem,

Did you get this worked out?
Matt

On Thu, Aug 26, 2010 at 12:19 AM, Artem Russakovskii
archon...@gmail.com wrote:
 Thanks Matt, that fixed it, although in a weird way. If I now load any
 page in IE7, the button shows up fine. However, if I refresh, no
 matter how many times, the button does not appear. It seems to only
 show up the first time when switching urls... any ideas?

 On Aug 25, 2:04 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey Artem,

 I've looked at your page and can see in your code that the Tweet
 Button is rendering successfully, just not being shown.

 Looking at your code it looks like the problem is with your position:
 absolute; rule. In IE positioned objects like this can be missing
 their 'hasLayout' setting. To fix this it can be helpful to add
 something like zoom: 1 or height: 1% to the div.

 Hope that helps,
 Matt

 On Mon, Aug 23, 2010 at 11:21 PM, Artem Russakovskii

 archon...@gmail.com wrote:
  Hi there,

  I installed the new twitter button today athttp://www.androidpolice.com
  and it is not showing up in IE7 (in both IE8 compatibility mode and
  IETester). I don't see any JS errors, but absolutely nothing is
  showing up, on either the main page or the post pages.

  I tried to move the js into the header but that didn't help.

  Any ideas?

  Thank you.

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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




-- 


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

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


Re: [twitter-dev] Twitter API 101

2010-08-31 Thread Matt Harris
Hey,

Welcome to the developer list. I've provided some answers to your
question in line. I hope they help.

 (1) Is Twitter API push or pull technology. The fact that it's REST
 would suggest pull, in that in order to get info from it, my client
 application needs to make a request.  However, what is confusing me in
 all of this is having seen many places where the tweets are seamlessly
 flowing in.  So, how is this done?  Are they submitting a request,
 getting X number of tweets and them popping them up after Y seconds in
 between each tweet and then going back and making another REST
 submission.

There are multiple APIs which maybe why you are getting confused.
These APIs are:
* REST API - which allows read and write access to Twitter
* Streaming API - which is an almost real-time (250ms) stream of
activity on Twitter
* Search API - which allows RESTful requests to Twitter Search.

Some applications will be polling for updates whilst others will be
connected to the Streaming API, waiting for updates to be sent to
them.

 (2) I was on a page that explained all of the different frequency of
 requests limits and it just sounded way too complicated. I am building
 a form of a social bookmarking application for a very specific use
 case. Can I broadcast from my single Twitter application/user-id a
 Title and a URL to 100's of 1,000's of daily users - without
 requiring them to have a Twitter account.  I would not mind
 advertising the fact that all of this is going through Twitter, it's
 just that they are older, ethnic and not so computer savvy end users.


What you are suggesting is possible. You would need to find some way
to get that information to users, and ensure you stay within our terms
of service though. For example, avoid posting duplicates and keep
within the rate limits.

 (3) If I knew to, what else should have I asked ;?)

There is a lot of information on our Developer Resources website which
may be of use. Take a look around and see what questions arise after
reading the material:
http://dev.twitter.com

Best,

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

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


Re: [twitter-dev] My head is spinning

2010-08-31 Thread Matt Harris
Which part of the document isn't making sense for you?
Matt

On Thu, Aug 26, 2010 at 10:22 AM, VirtualCoder
email.workbe...@gmail.com wrote:
 I was here and my head is spinning from trying to understand what it
 says.
 http://dev.twitter.com/pages/rate-limiting

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




-- 


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

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


Re: [twitter-dev] Friends

2010-08-31 Thread Matt Harris
Hey,

I'm not sure which library you are using here, could you explain the
language you are using and a link to the library so we can help debug.

Thanks,
Matt

On Thu, Aug 26, 2010 at 2:23 PM, garyz ga...@tweetmyjobs.com wrote:
 Is anyone else having problem with TwitterOauth and friends?

 I'm trying to create friends with:

 ret = @client.friend(twittername)

 And the response I get is a null ret and test shows up on the
 console.

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




-- 


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

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


Re: [twitter-dev] Re: home_timeline request fails after deleting a tweet

2010-08-31 Thread Matt Harris
I spoke with some of the engineers who had seen some behavior like
this. Some code was deployed this morning which should have improved
this. Can you let me know if you are still seeing this behavior?

Thanks,
Matt

On Fri, Aug 27, 2010 at 8:16 AM, jsleuth jsle...@gmail.com wrote:
 Hi Matt,

 Thanks for looking into this.  Here is our serialized object data from
 a set of requests that exhibit the described behavior (http codes and
 urls are early in each chunk).  In this instance I was using the
 user_timeline, but the same thing is happening on the home_timeline
 too.  Here I am deleting a retweet, the same behavior occurs when
 deleting an originally authored tweet.

 Thanks,
 Jeff


 Initial user_timeline request:
 Fri, 27 Aug 2010 10:57:17 EDT - REST request - O:12:TwitterOAuth:14:
 {s:9:http_code;i:200;s:3:url;s:341:https://api.twitter.com/1/
 statuses/user_timeline.atom?
 count=15oauth_consumer_key=SWD0LerZcjFWTm9defmStgoauth_nonce=143d02a039c208f53dd19600aa4a2e92oauth_signature=pYF9Z
 %2B4Y%2F1qvH0R88R0tRmJuToY%3Doauth_signature_method=HMAC-
 SHA1oauth_timestamp=1282921036oauth_token=138138618-
 t5aUdBh7z59uVsv1ulsDsbjQfIXbL1Hxv6JSlhRMoauth_version=1.0;s:
 4:host;s:26:https://api.twitter.com/1/;s:7:timeout;i:30;s:
 14:connecttimeout;i:30;s:14:ssl_verifypeer;b:0;s:6:format;s:
 4:atom;s:11:decode_json;b:0;s:9:http_info;a:20:{s:3:url;s:
 341:https://api.twitter.com/1/statuses/user_timeline.atom?
 count=15oauth_consumer_key=SWD0LerZcjFWTm9defmStgoauth_nonce=143d02a039c208f53dd19600aa4a2e92oauth_signature=pYF9Z
 %2B4Y%2F1qvH0R88R0tRmJuToY%3Doauth_signature_method=HMAC-
 SHA1oauth_timestamp=1282921036oauth_token=138138618-
 t5aUdBh7z59uVsv1ulsDsbjQfIXbL1Hxv6JSlhRMoauth_version=1.0;s:
 12:content_type;s:35:application/atom+xml; charset=utf-8;s:
 9:http_code;i:200;s:11:header_size;i:1116;s:12:request_size;i:
 410;s:8:filetime;i:-1;s:17:ssl_verify_result;i:0;s:
 14:redirect_count;i:0;s:10:total_time;d:
 0.5660730092768459580838680267333984375;s:
 15:namelookup_time;d:
 0.0097878100187187665142118930816650390625;s:
 12:connect_time;d:
 0.103936999050714905024506151676177978515625;s:
 16:pretransfer_time;d:
 0.30967899931645788819878362119197845458984375;s:
 11:size_upload;d:0;s:13:size_download;d:11295;s:
 14:speed_download;d:19953;s:12:speed_upload;d:0;s:
 23:download_content_length;d:11295;s:21:upload_content_length;d:
 0;s:18:starttransfer_time;d:
 0.5658859977916331772576086223125457763671875;s:
 13:redirect_time;d:0;}s:9:useragent;s:25:TwitterOAuth v0.2.0-
 beta2;s:11:sha1_method;O:30:OAuthSignatureMethod_HMAC_SHA1:0:{}s:
 8:consumer;O:13:OAuthConsumer:3:{s:3:key;s:
 22:SWD0LerZcjFWTm9defmStg;s:6:secret;s:
 42:iy6Q12d8cusG14q6q5IZ7i7ji2fewn9S5Vk9NMC3T4;s:12:callback_url;N;}
 s:5:token;O:13:OAuthConsumer:3:{s:12:callback_url;N;}s:
 11:http_header;a:20:{s:4:date;s:29:Fri, 27 Aug 2010 14:57:16
 GMT;s:6:server;s:2:hi;s:6:status;s:6:200 OK;s:
 13:x_transaction;s:22:1282921036-18779-13377;s:
 17:x_ratelimit_limit;s:3:350;s:4:etag;s:
 34:8c0caf1a160340044b5f59c62a2c4161;s:13:last_modified;s:
 29:Fri, 27 Aug 2010 14:57:16 GMT;s:21:x_ratelimit_remaining;s:
 3:341;s:9:x_runtime;s:7:0.03461;s:12:content_type;s:
 35:application/atom+xml; charset=utf-8;s:14:content_length;s:
 5:11295;s:6:pragma;s:8:no-cache;s:17:x_ratelimit_class;s:
 14:api_identified;s:10:x_revision;s:3:DEV;s:7:expires;s:
 29:Tue, 31 Mar 1981 05:00:00 GMT;s:13:cache_control;s:62:no-
 cache, no-store, must-revalidate, pre-check=0, post-check=0;s:
 17:x_ratelimit_reset;s:10:1282923478;s:10:set_cookie;s:
 255:_twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCJR6DbQqAToHaWQiJWQ3ZGJhNzVlNGRjZDAw
 %250AN2FkMmMyZjdmNzZjOGNhNDg1IgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy
 %250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--
 cbf711c902084a1193269bf76b186669e659a953; domain=.twitter.com;
 path=/;s:4:vary;s:15:Accept-Encoding;s:10:connection;s:
 5:close;}}


 Request just the tweet we're about to delete:
 Fri, 27 Aug 2010 10:57:34 EDT - findTweet request - url=http://
 api.twitter.com/1/statuses/show.xml?id=21602265248;


 Delete tweet (seems to work just fine, returns http header 200), with
 response xml:
 Fri, 27 Aug 2010 10:57:37 EDT - Delete Request - O:12:TwitterOAuth:
 14:{s:9:http_code;i:200;s:3:url;s:337:https://api.twitter.com/1/
 statuses/destroy/21602265248.xml?
 oauth_consumer_key=SWD0LerZcjFWTm9defmStgoauth_nonce=bcb8dac55e63fe2ea1aec3971ec38a4aoauth_signature=MKc
 %2BytIZ5sMMd9n%2FcKCZg3TMBew%3Doauth_signature_method=HMAC-
 SHA1oauth_timestamp=1282921057oauth_token=138138618-
 t5aUdBh7z59uVsv1ulsDsbjQfIXbL1Hxv6JSlhRMoauth_version=1.0;s:
 4:host;s:26:https://api.twitter.com/1/;s:7:timeout;i:30;s:
 14:connecttimeout;i:30;s:14:ssl_verifypeer;b:0;s:6:format;s:
 3:xml;s:11:decode_json;b:0;s:9:http_info;a:20:{s:3:url;s:
 337:https://api.twitter.com/1/statuses/destroy/21602265248.xml?
 oauth_consumer_key=SWD0LerZcjFWTm9defmStgoauth_nonce=bcb8dac55e63fe2ea1aec3971ec38a4aoauth_signature=MKc
 

Re: [twitter-dev] Whether there is any problem with Twitter api currently?

2010-08-31 Thread Matt Harris
Hey,
Are you still unable to get OAuth tokens?
If so can you provide the code you are using to get the token so we
can try and debug.

Thanks,
Matt

On Sat, Aug 28, 2010 at 8:45 AM, Ramanean shang...@gmail.com wrote:
 For all of my sites I am not getting Oauth token..

 http://www.twitlan.com/

 and http://www.buzztweep.com


 All of them are hosted on same ip address..

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




-- 


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

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


Re: [twitter-dev] How to validate twitter username in PHP?

2010-08-31 Thread Matt Harris
One way you could do this is to call /users/show. If the user exists
their details will be returned, if not, you will get a 404 or 403
error (Suspended users are returned as a 403 error). You can find out
more about /users/show on our developer resources site:
http://dev.twitter.com/doc/get/users/show

The /users/show request is rate limited so you will want to be careful
about the number of requests you make.

Hope that helps,
Matt

On Sat, Aug 28, 2010 at 5:46 PM, Sujit Kumar Garikipati
garikipati.sujitku...@gmail.com wrote:
 You can refer to this library, written by @abraham to learn using OAuth
 authorization in PHP.
 http://twitteroauth.labs.poseurtech.com/connect.php
 On Sat, Aug 28, 2010 at 7:15 AM, computerzworld meat2...@gmail.com wrote:

 Hi, I have created application that fetches users' tweets from his/her
 user account. I want to validate the username using php  ajax when he/
 she is entering in the textbox. Is there any way using which I can get
 response whether user have entered valid username or not? Please help
 me. Thanks in advance.

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

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




-- 


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

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


Re: [twitter-dev] 500: Something is technically wrong while calling lists/memberships

2010-08-31 Thread Matt Harris
Hey Joachim,

Could you give a full example of the request you made, the response
headers and response body so we can look into this further.
Thanks,
Matt

On Mon, Aug 30, 2010 at 1:38 AM, Joachim Seibert
jseib...@seibert-media.net wrote:
 Lately there are from time to time errors when calling 
 /lists/memberships.json.

 The answer is an html page saying: Something is technically wrong. Thanks 
 for noticing—we're going to fix it up and have things back to normal soon.

 Are there any problems with this call?

 Yours

 Joachim Seibert
 //SEIBERT/MEDIA/TECHNOLOGIES







-- 


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

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


Re: [twitter-dev] Cron Jobs w/ twitter auth

2010-08-31 Thread Matt Harris
Hey Mahmoud,

Your code will stop working when Basic Auth is turned off so you will
need to change to using OAuth. You may find the following resources
helpful in explaining how you can do that:

Converting from Basic Auth to OAuth: http://dev.twitter.com/pages/basic_to_oauth
Using a single access token: http://dev.twitter.com/pages/oauth_single_token

Some libraries which may be use can be found here:
http://dev.twitter.com/pages/oauth_libraries

Hope that helps,
Matt

On Mon, Aug 30, 2010 at 5:08 PM, Mahmoud Sakr m...@sakr.me wrote:
 I created a twitter account, and a simple cron job that tweets every certain
 period of time.
 I fear my authentication mechanism might be affected by tonight's deadline,
 is it? I use the following code to send twitter the tweet (the code that is
 executed in the cron job)
 /**
  * Tweets a new status given a statues, username, and password
  * @param status Status to tweet
  * @param username Username of account to post through
  * @param password Password of account to post through
  * @return void
  */
 function tweet($status = 'Hello World', $username, $password) {
 $status = urlencode(stripslashes(urldecode($status)));
 $curl = curl_init();
 curl_setopt($curl, CURLOPT_URL,
 'http://www.twitter.com/statuses/update.xml');
 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2);
 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($curl, CURLOPT_POST, 1);
 curl_setopt($curl, CURLOPT_POSTFIELDS, status=$status);
 curl_setopt($curl, CURLOPT_USERPWD, $username:$password);
 curl_exec($curl);
 curl_close($curl);
 }

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




-- 


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

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


Re: [twitter-dev] Re: Why only getting 4 results back?

2010-08-31 Thread Matt Harris
If the users profile is public and you are displaying it on your
website using Javascript then everything should be fine. The Profile
Widget is designed to go on webpages to provide a timeline of a users
Tweets. The only thing it doesn't do is support retweets.

If the profile widget doesn't do what you want may instead want to
write an application which gets the Tweets and caches them locally.
You can then render them on the webpage as required without using any
of your allowed Twitter API requests.

Hope that helps,
Matt

On Mon, Aug 30, 2010 at 7:39 PM, Don Rhummy donrhu...@gmail.com wrote:
 I know there's no rate limits on search like on user stuff (well there
 are, but they're pretty big) and you don't have to worry about oAuth.
 Is that the case for profile too?

 On Aug 30, 9:35 pm, Matt Harris thematthar...@twitter.com wrote:
 Hi Don,

 Search only has an index of 5 days and in that period @unwiredben only
 made 5 posts.
 For what you want to do the profile widget maybe more suitable:
    http://twitter.com/goodies/widget_profile

 Hope that helps,
 Matt



 On Mon, Aug 30, 2010 at 4:35 PM, Don Rhummy donrhu...@gmail.com wrote:
  I am using the search API and ajax to get the latest posts of a
  specific user (to be displayed on a web page). Even when I use the
  twitter widget (http://twitter.com/goodies/widget_search) it only
  shows the last 5 posts. But if I do an RSS search, it shows 20
  results! What could be wrong?

  How do I get it to show more than 5 posts?

  See example here:

  Using twitter widget (http://twitter.com/goodies/widget_search), use
  this search term:

     from:unwiredben

  RSS Feed:
 http://twitter.com/statuses/user_timeline/784057.rss

  How do I fix this?

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

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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




-- 


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

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


Re: [twitter-dev] Re: 401 errors calling access_token

2010-08-31 Thread Matt Harris
Great, thanks. Just wanted to check.
Matt

On Mon, Aug 30, 2010 at 9:55 PM, Marc Mims marc.m...@gmail.com wrote:
 * Matt Harris thematthar...@twitter.com [100830 16:37]:
 Did you get a chance to send this information through to our support team?

 Yes, Matt.  Instead of doing a list reply, I replied directly to Taylor
 Singletary with full request and response for a failure case and the
 saved response token/secret from session data.

        -Marc

 On Fri, Aug 27, 2010 at 5:16 PM, Marc Mims marc.m...@gmail.com wrote:
  * Taylor Singletary taylorsinglet...@twitter.com [100827 11:11]:
  Can you provide any more details about the error response you're
  giving (like the actual body of the error response)?
 
  Taylor, I will capture the full request and response.  I assume they are
  not suitable for posting in a public forum.  Should I email the to
  a...@twitter.com instead?
 
  Can you share an example of a signature base string and POST body that
  failed in this example?
 
  Have you verified that the clock on the device/system originating the
  request is in sync with Twitter's (returned in the Date header of
  every request) by about 5 minutes?
 
  Times are within 1 second.
 
  Do you have any successes to compare against?
 
  The error seems to occur infrequently.  The vast majority of calls
  succeed on exactly the same code path.
 
  The calls are being made with Perl the Net::Twitter library (of which I
  am the author).  Net::Twitter is used by many twitter apps and web apps.
 
  Are your HTTP methods in agreement between what your client is
  actually using (a GET) and the method declared in your signature base
  string?
 
  Yes.
 
         -Marc
 
  --
  Twitter developer documentation and resources: http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker: 
  http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group: 
  http://groups.google.com/group/twitter-development-talk?hl=en
 



 --


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

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

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




-- 


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

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


[twitter-dev] Re: Streaming api returning 401 error on phrase tracking(logical AND)

2010-08-31 Thread Karthik K
for example:

trackwords: {starwars,obama}
authorization with username,password: working
using oauth :working

trackwords: {star wars,obama}
authorization with user name,password: working
using oauth i get 401 error

Thanks,
Karthik

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


[twitter-dev] Streaming api returning 401 error on phrase tracking(logical AND)

2010-08-31 Thread Karthik K
I am getting strange results when using streaming api with and without
Oauth. Without oauth i am able to track phrases whereas with oauth i get a
401 error, able to track normal words with oauth.Is there any restriction on
phrase tracking? Could not find any pointers in the docs.btw i use
twitter4j.

Thanks,
Karthik

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


[twitter-dev] Re: getStatusesMentions not working today....???

2010-08-31 Thread mirza
hello my name is mirza.

im new in develop twitter application. i think i have same problem.
i want to get user mentions using get_statusesMentions().  i use
epitwitter library.
but the status result is empty. i dont know why. here is my code.

$this-epiTwitter = new EpiTwitter($consumer-key,$consumer-secret,
$user-reg_token,$user-access_token);
$mentions = $this-epiTwitter-get_statusesMentions(array('max_id' =
$user-last_status_id));
print_r($mentions);

thanks


best regards,

mirza

On Jul 22, 7:00 am, Mark Krieger markskrie...@gmail.com wrote:
 Matt,

 Thanks for the quick response. The call uses EpiTwitter.php, it looks
 like:

 Call Oauth to authenticate (this works), then:

 $val = $twitterObj-get_statusesMentions(array('since_id' =
 $lastid));
 $arr = json_decode($val-responseText, true);
 if (empty($arr)) { $error = error text; log_message(...)}
 else ...

 It logs the error text showing the response through EpiTwitter was
 empty. Also, when I print $val-responseText, it is EMPTY.

 I've tried it on 4 twitter accounts I have, all of which have worked
 for many months in code which has not changed, it has only failed
 before when the api was down (like tuesday). And all other api calls
 which use similar code all work fine. I am stumped.

 I can send more data, like the $lastid, and my credentials for oauth
 to you, I would of course do that privately. I will run some more
 tests from here first I guess.

 Thanks,

 Mark
 On Jul 21, 4:49 pm, Matt Harris thematthar...@twitter.com wrote:

  Hi Mark,

  We aren't seeing any errors like this when we run some tests. Could you
  elaborate on what the bogus headers are?

  Matt

  On Wed, Jul 21, 2010 at 12:51 PM, Mark Krieger 
  markskrie...@gmail.comwrote:

   My application has used getStatusesMentions for many months, it is
   only failing when twitter has had some problem, like two days ago, and
   in that case, everything is flaky. Today it is failing, but everything
   else works fine. Is this a known problem today? getStatusesMentions
   always comes back today with bogus headers

   Mark

  --

  Matt Harris
  Developer Advocate, Twitterhttp://twitter.com/themattharris

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


[twitter-dev] Please help: Easy way to do Oauth/xAuth from VBA?

2010-08-31 Thread Timo
Hi,

I have an application that posts tweets automatically from PowerPoint
each time a presenter gets to a particular slide:

It's a relatively simple VBA script that uses basic authentication
(until tomorrow, when it gets turned off!) . Because it's a full-
client application, I requested, and obtained, the ability to use
xAuth.

But I've struggled to find an easy way to use xAuth / Oauth from VBA.
I'm not even sure it's possible at all using only VBA -- specifically,
I haven't found any native VBA HMAC-SHA1 code, and lack the skills
to write one (I found this post on SHA1 in VBA, but don't know how to
include the key / HMAC part -- anybody know?: 
http://splinter.com.au/blog/?p=86).

As a workaround, I tried adding a DLL to do the HMAC-SHA1 part, based
on this post: 
http://blog.gobansaor.com/2008/02/22/xlaws-excel-vba-code-for-accessing-amazons-s3-and-simpledb/,
and haven't completely given up, but my attempts so far don't seem to
generate the right signature (i.e. when I cut and paste the available
xAuth demo code from twitter, I get a different result than they do).
I also started checking out the HMAC-SHA1 library from 
http://www.cryptosys.net/#api,
but my application is freeware, so trying to avoid commercial code...

And I know there are .Net VB libraries  like TwitterVB 
http://twittervb.codeplex.com/,
but I don't know how to access those methods/properties from VBA -- is
it possible? Could somebody point me to demo code that shows how to
use something like that from VBA?

Many, many thanks in advance to anybody who can help my application
from dying tomorrow!...

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


[twitter-dev] Re: OAuth rate limit of 150

2010-08-31 Thread Roger Ertesvåg
Hi,
I'm using the ruby twitter gem:

http://github.com/jnunemaker/twitter

So to set it up I do:

oauth = Twitter::OAuth.new(CONFIG['twitter_key'],
CONFIG['twitter_secret'])
oauth.authorize_from_access(CONFIG['twitter_atoken'],
CONFIG['twitter_asecret'])
base = Twitter::Base.new(oauth)

Then when I do:

base.rate_limit_status

I get:

#Hashie::Mash hourly_limit=150 remaining_hits=150 reset_time=Tue Aug
31 08:26:37 + 2010 reset_time_in_seconds=1283243197

If I use the exact same code for other accounts I have I get:

#Hashie::Mash hourly_limit=350 remaining_hits=350 reset_time=Tue Aug
31 08:22:40 + 2010 reset_time_in_seconds=1283242960


Also, if I was not authorized by OAuth shouldn't the limit be even
lower?


Regards
Roger


On Aug 31, 1:03 am, Matt Harris thematthar...@twitter.com wrote:
 Hi Roger,

 It sounds like the OAuth part of your request isn't being seen by our
 servers. A rate limit of 150 will be reported whenever you make a
 request without authorisation. Can you share the code you are using to
 make the requests so we can see what might be going wrong?

 Thanks,
 Matt

 On Mon, Aug 30, 2010 at 11:30 AM, Roger Ertesvåg webfo...@webfokus.no wrote:
  The OAuth rate limit for one of my accounts is stuck at 150. From what
  I'm reading, and seeing from other accounts I have, it is my
  understanding that it should be 350. What can I do to fix this?

  Regards
  Roger Ertesvag

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

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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


[twitter-dev] Re: Need help with MGTwitterEngine OAuth/xAuth

2010-08-31 Thread metawops
P.S.: Here's a link to the Xcode project with the little test program:
http://dl.dropbox.com/u/3748223/MGTEtest.zip

On 31 Aug., 00:13, metawops metaw...@googlemail.com wrote:
 Hi everyone,

 I’m struggling with MGTwitterEngine  OAuth/xAuth here with my Mac OS
 X application.
 The problem is that I get either SIGTRM or EXC_BAD_ACCESS crashes from
 the call of the getXAuthAccessTokenForUsername method. And I just
 don’t know what I’m doing wrong!

 Here’s the (stripped) code of a very simple demo app, basically. Just
 one window with a username  password textfield and a button to start
 the action:

 -(IBAction)pushLogin:(id)sender
 {
   NSString *username = [NSString stringWithString:[tfUsername
 stringValue]];
   NSString *password = [NSString stringWithString:[tfPassword
 stringValue]];
   if ([username isEqualToString:@] || [password
 isEqualToString:@]) {
     // at least one of the text fields was empty!
     [tfInfo setStringValue:@Please supply a username and a
 password!];
   }
   else {
     NSString *xAuthAccessToken = [[[NSString alloc] init]
 autorelease];
     // program crashes at the following line
     xAuthAccessToken = [twitterEngine
 getXAuthAccessTokenForUsername:username password:password];
     [tfInfo setStringValue:xAuthAccessToken];
   }

 }

 #pragma mark MGTwitterEngine delegate methods
 - (void)accessTokenReceived:(OAToken *)token forRequest:(NSString
 *)connectionIdentifier
 {
   [twitterEngine setAccessToken:token];
   [tfInfo setStringValue:@accessTokenReceived!];

 }

 
 Additionally, I set my consumer key  secret in my init method:

 - (id) init
 {
   self = [super init];
   if (self != nil) {
     twitterEngine = [MGTwitterEngine twitterEngineWithDelegate:self];
     NSString *consumerKey = @”123…”;
     NSString *consumerSecret = @”123456…”;
     [twitterEngine setConsumerKey:consumerKey secret:consumerSecret];
   }
   return self;

 }

 Does anyone has any advice? What am I missing?
 (Checked out the latest revisions of MGTwitterEngine  OAuthConsumer.
 Is there any Cocoa alternative to MGTwitterEngine that supports OAuth/
 xAuth?)

 Thank you so much!
 Stefan.

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


[twitter-dev] Re: Open Source CMS Module and Consumer Secret

2010-08-31 Thread Ken
It seems that we are talking about two categories of applications.

1.) As in the subject of this thread, open-source CMS or other multi-
user, membership or blogging systems. This type of system usually has
some facility for the admin user/webmaster to change settings such as
admin email address, error messages, API keys, etc. It makes sense for
each deployment of such a system/module to be registered as a Twitter
application (even if it is not an original unique application) if
only because that way, the source or via tag would be a link back to
the individual deployment and not to the original developers of the
software. In these cases the person installing the system can probably
be counted on to have the ability and willingness to go to twitter.com
and register an app, following the instructions provided by the
software developers (you guys).

2.) Single-user server or open-source desktop app. I don't know all
the details of Xauth, but it seems to involve some manual effort by
Twitter. So apologies up front if the following already exists, has
been rejected, or doesn't make sense: If the single-user server or
open-source desktop app has been approved by Twitter, why not build in
to the app a call to the Twitter API that would create and install the
needed credentials? The callback url would be defined by the app, the
other properties could be taken from the details proved by the user at
install time. This could even be executed transparently during the
installation. This new API endpoint would return something like what
we now get using My Access Token.

Ken

On Aug 31, 2:30 am, John SJ Anderson geneh...@gmail.com wrote:
  I think it's far better developer/business practice to design
  *proprietary* applications that are secure and register them with Twitter
  using xAuth.

 As has been said time and time again, proprietary is not a solution
 for this, as any non-hosted app using OAuth can have the keys
 extracted from it.

 Additionally, some of us would like to write Free or Open Source
 applications, that people can use on their own machines, without
 requiring them to register as Twitter developers. It used to be
 possible to do this. sigh

 j.

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


[twitter-dev] Re: Open Source CMS Module and Consumer Secret

2010-08-31 Thread Ken
oops. really, I had thought this through but got carried away with the
'transparent installation' idea.

During the installation, the user would authenticate (via the software
provider or directly with twitter?) - and then be delivered the
credentials. Sorry.

On Aug 31, 10:58 am, Ken k...@cimas.ch wrote:
 It seems that we are talking about two categories of applications.

 1.) As in the subject of this thread, open-source CMS or other multi-
 user, membership or blogging systems. This type of system usually has
 some facility for the admin user/webmaster to change settings such as
 admin email address, error messages, API keys, etc. It makes sense for
 each deployment of such a system/module to be registered as a Twitter
 application (even if it is not an original unique application) if
 only because that way, the source or via tag would be a link back to
 the individual deployment and not to the original developers of the
 software. In these cases the person installing the system can probably
 be counted on to have the ability and willingness to go to twitter.com
 and register an app, following the instructions provided by the
 software developers (you guys).

 2.) Single-user server or open-source desktop app. I don't know all
 the details of Xauth, but it seems to involve some manual effort by
 Twitter. So apologies up front if the following already exists, has
 been rejected, or doesn't make sense: If the single-user server or
 open-source desktop app has been approved by Twitter, why not build in
 to the app a call to the Twitter API that would create and install the
 needed credentials? The callback url would be defined by the app, the
 other properties could be taken from the details proved by the user at
 install time. This could even be executed transparently during the
 installation. This new API endpoint would return something like what
 we now get using My Access Token.

 Ken

 On Aug 31, 2:30 am, John SJ Anderson geneh...@gmail.com wrote:

   I think it's far better developer/business practice to design
   *proprietary* applications that are secure and register them with Twitter
   using xAuth.

  As has been said time and time again, proprietary is not a solution
  for this, as any non-hosted app using OAuth can have the keys
  extracted from it.

  Additionally, some of us would like to write Free or Open Source
  applications, that people can use on their own machines, without
  requiring them to register as Twitter developers. It used to be
  possible to do this. sigh

  j.



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


Re: [twitter-dev] verify_credentials longevity?

2010-08-31 Thread Dave Ingram
 It's also used for OAuth Echo, if I'm not mistaken?


D


On 08/31/10 01:21, Matt Harris wrote:
 Hey Jud,

 There are no plans to deprecate verify_credentials. It's use is still
 valid for OAuth as it allows you to check if the user token and secret
 you have are still good.

 Best,
 Matt

 On Mon, Aug 30, 2010 at 3:44 PM, Jud jvale...@gmail.com wrote:
 With the move to OAuth, are we going to see verify_credentials
 deprecate?

 http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0verify_credentials

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




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


Re: [twitter-dev] Re: Streaming api returning 401 error on phrase tracking(logical AND)

2010-08-31 Thread Tom van der Woerdt
On 8/31/10 8:01 AM, Karthik K wrote:
 for example:
 
 trackwords: {starwars,obama}
 authorization with username,password: working
 using oauth :working
 
 trackwords: {star wars,obama}
 authorization with user name,password: working
 using oauth i get 401 error
 
 Thanks,
 Karthik

Sounds like your URL encoding is wrong. You should encode the space as
%20, not as +

Tom

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


[twitter-dev] Re: a new field retweeted and retweeted tweet's status id

2010-08-31 Thread hiro
Hi Matt,

Thank you very much for you advice.

I've posted an issue as
http://code.google.com/p/twitter-api/issues/detail?id=1834

Best regards,
hiro

On 8月31日, 午前9:03, Matt Harris thematthar...@twitter.com wrote:
 Hi hiro,

 The ID of the retweeted status will not be available through these new
 fields. Instead you should use either user_timeline or retweets_of_me
 to get the retweeted status ID.
 This could be a useful enhancement though so please file it on our
 issues and enhancements tracker:
    http://code.google.com/p/twitter-api/issues/list

 Best,
 Matt





 On Sun, Aug 29, 2010 at 9:14 PM, hiro hirokazu.takat...@gmail.com wrote:
  Hi,

  A new field retweeted: (true|false) is very useful. It reduces
  calling statuses/retweeted_by_me.

  Recent API changes and new fields at Twitter API Announcements
 http://groups.google.com/group/twitter-api-announce/browse_thread/thr...

  I also need retweeted tweet's status id in home_timeline to undo my
  retweet.
  Does anybody know the id also be provide after activation of the
  retweeted field?
  If the id does not provide in home_timeline, statuses/
  retweeted_by_me is needed again.

  hiro

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

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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


[twitter-dev] Re: Need help with MGTwitterEngine OAuth/xAuth

2010-08-31 Thread Felix
Hi,

1. Replace
twitterEngine = [[MGTwitterEngine twitterEngineWithDelegate:self];
with
twitterEngine = [[[MGTwitterEngine twitterEngineWithDelegate:self]
retain];
in init of the TestControllers.

2. build the 32-bit version. 64-bit seems not to be supported.

best regards, Felix.

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


[twitter-dev] retweeted variable in home timeline

2010-08-31 Thread p r
Hello,

i receive per api my timeline and i want to show when the tweets
retweeted by me. But the variable retweeted in every status is always
empty. What is wrong, has everyone similar experiences?
greetings

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


[twitter-dev] Status update results in Internal server error 500

2010-08-31 Thread Papa.Coen
Title says it all. Sniffed with wireshark:

POST /1/statuses/update.json HTTP/1.1
Content-Type: text/xml; charset=utf-8
User-Agent: RTL Netherlands OAuth 0.1
Authorization: OAuth oauth_consumer_key=I1yQDPyI7WUn2fN9JfFWww,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1283260843,
oauth_nonce=7akvCS4Xsm2ZSL0vX04qWP%2FMat4RIODKhywFf5Zq0wg%3D,
oauth_version=1.0, oauth_token=172686984-
rnCFtLBbV00YlZVXN0Um1weBPk1dZ3sQXh22rTkG,
oauth_signature=cGJklfT6Z5L3VjC8AlvpA%2BZ9kOE%3D

Host: api.twitter.com
Content-Length: 36
...status=setting up my twitter hoot

HTTP/1.1 500 Internal Server Error
Date: Tue, 31 Aug 2010 13:21:14 GMT
Server: hi
Status: 500 Internal Server Error
Content-Type: text/html; charset=UTF-8
Set-Cookie: k=217.118.160.30.1283260874490608; path=/; expires=Tue, 07-
Sep-10 13:21:14 GMT; domain=.twitter.com
Cache-Control: max-age=300
Expires: Tue, 31 Aug 2010 13:26:14 GMT
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
f4
Status: 500 Internal Server Error
Content-Type: text/html
htmlbodyh1500 Internal Server Error/h1/body/htmlStatus:
500 Internal Server Error
Content-Type: text/html
htmlbodyh1500 Internal Server Error/h1/body/html
0

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


Re: [twitter-dev] xAuth not Working (Help)

2010-08-31 Thread João Paulo Sabino de Moraes
Thanks for Replying Guys!

Taylor, Why was it necessary to generate generate other keys ?

And Tom (or Taylor) I'm using consumerSecret because at session : Example
request for an xAuth request token, this key is listed in the request keys.
So, is this example depracated ?

Another doubt. After generating  OAuth signature base string I didn't
understand how to generate oauth_signature
based on that string. I'm using some as3 crypto methods to do it , but I
really don't know what keys combinations to use
to generate the correct oauth_signature.

I'm using the xAuth documentation example.


var signString:String = POSThttps%3A%2F%2Fapi.twitter.com
%2Foauth%2Faccess_tokenoauth_consumer_key%3DsGNxxnqgZRHUt6NunK3uw%26oauth_nonce%3DWLxsobj4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hA%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1276101652%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3D%2525%2526123%2521aZ%252B%2528%2529456242134%26x_auth_username%3DtpFriendlyGiant;
 var hmac:HMAC =  Crypto.getHMAC(sha1);

var key:ByteArray = Hex.toArray(
Hex.fromString(encodeURIComponent(consumerKey) +  +
encodeURIComponent(consumerSecret)));
var data:ByteArray = Hex.toArray( Hex.fromString( signString ) );
var sha:String = Base64.encodeByteArray( hmac.compute( key, data ) );
trace(signString);
params.oauth_signature = encodeURIComponent(sha);

thanks
--
jp

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


Re: [twitter-dev] xAuth not Working (Help)

2010-08-31 Thread Taylor Singletary
By revealing your consumer secret in this forum, especially for a key that
has access to xAuth, you've basically compromised your application and the
potential security of many -- your consumer secret should be kept safe and
outside of public visibility. It's still a necessary component for you to
build your integration.

Have you seen this AS3 library for OAuth?
http://code.google.com/p/oauth-as3/ I can't really help too much with your
actual code in AS3, but taking a look at (or utilizing) this library might
aid your understanding in this area.

I would also caution against trusting that the default character conversions
that encodeURIComponent() performs will be valid in all cases.

Taylor

2010/8/31 João Paulo Sabino de Moraes jona...@gmail.com

 Thanks for Replying Guys!

 Taylor, Why was it necessary to generate generate other keys ?

 And Tom (or Taylor) I'm using consumerSecret because at session : Example
 request for an xAuth request token, this key is listed in the request keys.
 So, is this example depracated ?

 Another doubt. After generating  OAuth signature base string I didn't
 understand how to generate oauth_signature
 based on that string. I'm using some as3 crypto methods to do it , but
 I really don't know what keys combinations to use
 to generate the correct oauth_signature.

 I'm using the xAuth documentation example.


 var signString:String = POSThttps%3A%2F%2Fapi.twitter.com
 %2Foauth%2Faccess_tokenoauth_consumer_key%3DsGNxxnqgZRHUt6NunK3uw%26oauth_nonce%3DWLxsobj4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hA%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1276101652%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3D%2525%2526123%2521aZ%252B%2528%2529456242134%26x_auth_username%3DtpFriendlyGiant;
   var hmac:HMAC =  Crypto.getHMAC(sha1);

 var key:ByteArray = Hex.toArray(
 Hex.fromString(encodeURIComponent(consumerKey) +  +
 encodeURIComponent(consumerSecret)));
 var data:ByteArray = Hex.toArray( Hex.fromString( signString ) );
  var sha:String = Base64.encodeByteArray( hmac.compute( key, data ) );
 trace(signString);
  params.oauth_signature = encodeURIComponent(sha);

 thanks
 --
 jp


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


Re: [twitter-dev] How to get results older than last 100 tweets from a profile or search

2010-08-31 Thread Pablo Augusto
Thanks for the reply.

I just tested and its ok, but only can ger results to 2010-08-28 from now.
Hav any way to workarround this?

//return null is lower than 28º day
$request = 
http://search.twitter.com/search.atom?q=from:user+keyword+since:2010-08-27rpp=100page=
.$j;

One question.
Any one knows a updated class for the twiter api? Or can show me any example
of a current working code to search api or streaming api?
I had read that streaming api is best to monitoring keywords and track
users. Anyone here has write a blog post about streaming api with php? Or
search api with php?


It's just working, but i want se some examples of best practices in this
area.


Thanks in advanced.


[image: Pablo Augusto]
*Design e Desenvolvimento*
MSN: m...@pabloaugusto.com
SKYPE: sk...@pabloaugusto.com
EMAIL: cont...@pabloaugusto.com
TWITTER: @pabloaugusto
SITE: http://pabloaugusto.com
 On Tue, Aug 31, 2010 at 03:21, Matt Harris thematthar...@twitter.comwrote:

 Hey Pablo,

 The reason you are getting 100 results is because you are passing a results
 per page (rpp) value of 100. To access the next 100 results you need to
 request the next page, which you can do by setting the parameter 'page'
 equal to the page you want.

 You can find out more about search on our developer resources site:
 http://dev.twitter.com/doc/get/search

 Hope that helps,
 Matt

 On Mon, Aug 30, 2010 at 6:34 PM, Pablo Augusto em...@pabloaugusto.comwrote:


 Hello,

 I'm wondering if its possible to get back the twits from one account for
 last 3 days for example.
 im useing a class that do the follow search to capture tweets:

 $request  = 
 'http://search.twitter.com/search.'.$this-http://search.twitter.com/search.%27.$this-
 type;
  $request .= '?q='.urlencode($this-query);

 Using the methos of this class i do the fololow search:

 $search = new TwitterSearch();
 $search-from('@username');
 $search-contains('#hashtag');
 $search-since(22554873450);
 $results = $search-rpp(100)-results();

 But i only get the last 100 results (the newest ever)
 I just try to put a low number at SINCE:

 for example: $search-since(21554873450);

 Buts aver show the last newest results.


 Anyone knows how can i get results older than last 100 newest in any
 querry, class, function, etc?

 if anyone can help, ill be graceful.



 *
 *
 *Pablo Augusto*
  MSN: m...@pabloaugusto.com
 SKYPE: sk...@pabloaugusto.com
 EMAIL: cont...@pabloaugusto.com
 SITE: http://webtags.com.br

  [image: Linkedin] http://linkedin.com/in/pabloaugusto [image: 
 Twitter]http://twitter.com/pabloaugusto
  [image: Facebook][image: Flickr] http://flickr.com/photos/pabloaugusto 
 [image:
 Youtube] http://youtube.com/pabloaugustoo [image: 
 FormSpring]http://formspring.me/pabloaugust0 [image:
 LastFM] http://lastfm.com.br/user/pabloaugustoo [image: 
 DeviantART]http://deviantart.com/pabloaugustoo [image:
 Tumblr] http://pabloaugusto.tumblr.com/ [image: 
 Vimeo]http://vimeo.com/pabloaugusto [image:
 del.icio.us] http://del.icio.us/pabloaugusto [image: 
 Slideshare]http://slideshare.net/pabloaugusto [image:
 Friendfeed] http://friendfeed.com/pabloaugusto


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




 --


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

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


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


Re: [twitter-dev] Status update results in Internal server error 500

2010-08-31 Thread Taylor Singletary
Hi Papa Coen,

While it's unusual that you got a 500 in this case (and are you consistently
getting a 500), I'd like to verify that you're encoding your POST body
before sending.

Your POST body should be simply:
status=setting%20up%20my%20twitter%20hoot

Which should be represented in your OAuth signature base string as:
status=setting%2520up%2520my%2520twitter%2520hoot

Taylor

On Tue, Aug 31, 2010 at 6:30 AM, Papa.Coen papa.c...@gmail.com wrote:

 Title says it all. Sniffed with wireshark:

 POST /1/statuses/update.json HTTP/1.1
 Content-Type: text/xml; charset=utf-8
 User-Agent: RTL Netherlands OAuth 0.1
 Authorization: OAuth oauth_consumer_key=I1yQDPyI7WUn2fN9JfFWww,
 oauth_signature_method=HMAC-SHA1, oauth_timestamp=1283260843,
 oauth_nonce=7akvCS4Xsm2ZSL0vX04qWP%2FMat4RIODKhywFf5Zq0wg%3D,
 oauth_version=1.0, oauth_token=172686984-
 rnCFtLBbV00YlZVXN0Um1weBPk1dZ3sQXh22rTkG,
 oauth_signature=cGJklfT6Z5L3VjC8AlvpA%2BZ9kOE%3D

 Host: api.twitter.com
 Content-Length: 36
 ...status=setting up my twitter hoot

 HTTP/1.1 500 Internal Server Error
 Date: Tue, 31 Aug 2010 13:21:14 GMT
 Server: hi
 Status: 500 Internal Server Error
 Content-Type: text/html; charset=UTF-8
 Set-Cookie: k=217.118.160.30.1283260874490608; path=/; expires=Tue, 07-
 Sep-10 13:21:14 GMT; domain=.twitter.com
 Cache-Control: max-age=300
 Expires: Tue, 31 Aug 2010 13:26:14 GMT
 Vary: Accept-Encoding
 Connection: close
 Transfer-Encoding: chunked
 f4
 Status: 500 Internal Server Error
 Content-Type: text/html
 htmlbodyh1500 Internal Server Error/h1/body/htmlStatus:
 500 Internal Server Error
 Content-Type: text/html
 htmlbodyh1500 Internal Server Error/h1/body/html
 0

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


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


[twitter-dev] Oauth Apps return Woah there! This page is no longer valid.

2010-08-31 Thread m2e
Our apps keep getting:
-
Woah there!

This page is no longer valid. It looks like someone already used the
token information you provided. Please return to the site that sent
you to this page and try again … it was probably an honest mistake.
-

We are using twitteroauth (http://github.com/abraham/twitteroauth/) so
am pretty sure the basic - oauth switch isn't the problem. Thoughts?

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


[twitter-dev] Re: Apigee Support for OAuth--

2010-08-31 Thread Daniel Ribeiro
I got to know Apigee this (http://blog.heroku.com/archives/2010/5/27/
apigee_add_on_for_twitter_public_beta/) Heroku newsletter, when they
announced the Apigee for Twitter Add-on. Apigee's console has been an
incredible tool for tinkering and learning more about with twitter's
api.

The biggest issue with Apigee is that you can only proxy twitter calls
through Heroku add-on, which is troublesome if I need to move on to
more powerful cloud services, such as Amazon EC2.

On Aug 30, 7:41 pm, shanley shanley.k...@gmail.com wrote:
 Hey all-

 A number of Twitter devs are usingwww.apigee.com(free tools for API
 analytics, testing, debugging and protection) so wanted to drop all of
 you note to reassure you that we do support APIs using OAuth-

 Here's how to do it, using the Twitter API as an example:

 1. Do the OAuth dance with the canonical API endpoint (e.g.
 api.twitter.com).
 2. Once you have a user's token, use it to sign requests' base
 strings, which you would also build using the canonical endpoint from
 step 1.
 3. Then send those signed requests to your Apigee URL, such as
 twitter.myusername.apigee.com.

 In this way traffic can flow to and from Twitter via your Apigee API
 using OAuth.

 Our Twitter console for reviewing  sharing requests and responses to
 the Twitter API also supports OAuth with your Twitter 
 sign-in:http://app.apigee.com/console/twitter

 Let me know if you have any questions, happy to help out.

 Cheers,
 Shanley
 Apigee Support Team

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


[twitter-dev] Re: Since Id on Favourites (recap)

2010-08-31 Thread Daniel Ribeiro
Great. I really appreciate it.

On Aug 30, 9:59 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey Daniel,

 Thanks for pointing this out. I've reopened the original ticket
 indicating this needs documenting:
    http://code.google.com/p/twitter-api/issues/list?cursor=125

 Thanks,
 Matt



 On Fri, Aug 27, 2010 at 10:59 AM, Daniel Ribeiro dan...@gmail.com wrote:
  This issue has came up two years ago (http://groups.google.com/group/
  twitter-development-talk/browse_thread/thread/4e6b9b0ae26db3bf/
  84a9f110942a07b9?lnk=gstq=since_id+favorites#84a9f110942a07b9).

  The feature is still working, and still undocumented (as far as I
  know). Am i wrong? Is it documented somehwere other than its api
  (somewhere like global search parameters), and is it supported? If
  not, what is that status update on this issue (will it be supported,
  can it be removed without warnings)?

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

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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


[twitter-dev] Authentication Required on Public user_timeline

2010-08-31 Thread David Markus Hasselberg
I have developed a webpage that reads from a public user_timeline.
Starting today, August 31st, i receive error 53 Basic  authentication
is not supported. I understand that OAuth is now used instead of HTTP
authentication, but public timelines should still not require any
authentication, correct?

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


Re: [twitter-dev] Re: OAuth rate limit of 150

2010-08-31 Thread Matt Harris
Hey Roger,

Thanks for sharing your code. A few things about the rate limits you are seeing:

The 150 rate limit is for non-authenticated requests to the Twitter
API. These requests happen when no user identifying details are sent.
The 350 rate limit is for OAuth authenticated requests to the Twitter
API. These requests happen when you send a user token and secret.

As you are not authenticating with Basic Auth in any of your requests
you would only see the unauthenticated rate limit (150) or your OAuth
rate limit (350). The reason you could be seeing 150 is that the token
and secret you have are no longer valid - although in that situation I
would expect us to return an error saying Could not authenticate with
OAuth. I'll be looking into other reasons why that might be happening
later today.

Hope that explains what you are seeing,
Matt

On Tue, Aug 31, 2010 at 12:39 AM, Roger Ertesvåg webfo...@webfokus.no wrote:
 Hi,
 I'm using the ruby twitter gem:

 http://github.com/jnunemaker/twitter

 So to set it up I do:

    oauth = Twitter::OAuth.new(CONFIG['twitter_key'],
 CONFIG['twitter_secret'])
    oauth.authorize_from_access(CONFIG['twitter_atoken'],
 CONFIG['twitter_asecret'])
    base = Twitter::Base.new(oauth)

 Then when I do:

 base.rate_limit_status

 I get:

 #Hashie::Mash hourly_limit=150 remaining_hits=150 reset_time=Tue Aug
 31 08:26:37 + 2010 reset_time_in_seconds=1283243197

 If I use the exact same code for other accounts I have I get:

 #Hashie::Mash hourly_limit=350 remaining_hits=350 reset_time=Tue Aug
 31 08:22:40 + 2010 reset_time_in_seconds=1283242960


 Also, if I was not authorized by OAuth shouldn't the limit be even
 lower?


 Regards
 Roger


 On Aug 31, 1:03 am, Matt Harris thematthar...@twitter.com wrote:
 Hi Roger,

 It sounds like the OAuth part of your request isn't being seen by our
 servers. A rate limit of 150 will be reported whenever you make a
 request without authorisation. Can you share the code you are using to
 make the requests so we can see what might be going wrong?

 Thanks,
 Matt

 On Mon, Aug 30, 2010 at 11:30 AM, Roger Ertesvåg webfo...@webfokus.no 
 wrote:
  The OAuth rate limit for one of my accounts is stuck at 150. From what
  I'm reading, and seeing from other accounts I have, it is my
  understanding that it should be 350. What can I do to fix this?

  Regards
  Roger Ertesvag

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

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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




-- 


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

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


[twitter-dev] Re: Apigee Support for OAuth--

2010-08-31 Thread earth2marsh
Hi Daniel,

Heroku was our first public partnership, but Apigee was actually built
to work with all kinds of services and environments. We're continuing
to build out our add-on so that users can access the Debugger, the
Test Console, and Analytics from within the Heroku interface.

You should have no trouble if you decide that EC2 is more appropriate
for your app, though obviously you'd lose a lot of the sweet platform
hotness that Heroku provides. (We're actually in EC2 ourselves.)

If you have any questions about this process, we'd be happy to answer
them. Either start a new thread at http://support.apigee.com or
contact us directly.

Thanks,

Marsh
--
PM, Apigee

 The biggest issue with Apigee is that you can only proxy twitter calls
 through Heroku add-on, which is troublesome if I need to move on to
 more powerful cloud services, such as Amazon EC2.

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


[twitter-dev] Re: Cron Jobs w/ twitter auth

2010-08-31 Thread Mahmoud Sakr
Thanks a lot, I was able to port my auth successfully using the second
link.

Just a heads up for anyone interested - this mechanism was described
here in depth: 
http://masnun.com/blog/2010/04/30/setting-up-twitter-bots-with-oauth/
(turns out my twitter account is called a twitter bot.) Also, the
application I had to create from the same twitter bot's account (the
access token given in the app belongs to the actual developer account
in charge of the app) - wasted a considerable amount of time before
figuring that out.

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


Re: [twitter-dev] Authentication Required on Public user_timeline

2010-08-31 Thread Taylor Singletary
As long as you are requesting from the correct end point:

http://api.twitter.com/1/statuses/public_timeline.xml (or .json) without any
authentication credentials, this should continue working for you.

If it isn't, could you provide HTTP traces of your entire connection
sequence, complete with the URL you are executing, all HTTP headers sent and
received?

Thanks,
Taylor

On Tue, Aug 31, 2010 at 10:52 AM, David Markus Hasselberg 
darkwingsabl...@gmail.com wrote:

 I have developed a webpage that reads from a public user_timeline.
 Starting today, August 31st, i receive error 53 Basic  authentication
 is not supported. I understand that OAuth is now used instead of HTTP
 authentication, but public timelines should still not require any
 authentication, correct?

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


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


[twitter-dev] Twitter for Android app OAuth

2010-08-31 Thread Jef Poskanzer
Twitter's official Android app is obviously using OAuth, since it
still works. So why does it ask for my password? Isn't it supposed to
send me to a web page where I can click Ok?  What is going on behind
the scenes here?

Maybe just some leftover Basic Auth code that hasn't been deleted
yet?  If so, delete it!

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


Re: [twitter-dev] Twitter for Android app OAuth

2010-08-31 Thread Matt Harris
Hey Jef,

Like many mobile applications Twitter for Android uses xAuth. In this
mode the user enters their username and password which is then sent to
Twitter for the OAuth credentials. Part of the agreement of granting
access to xAuth is that the application must not store the username
and password.

If in doubt about the security of your password you can always change
it on the twitter.com. Applications which use OAuth are unaffected by
a change in your password.

Best,
Matt

On Tue, Aug 31, 2010 at 12:35 PM, Jef Poskanzer jef.poskan...@gmail.com wrote:
 Twitter's official Android app is obviously using OAuth, since it
 still works. So why does it ask for my password? Isn't it supposed to
 send me to a web page where I can click Ok?  What is going on behind
 the scenes here?

 Maybe just some leftover Basic Auth code that hasn't been deleted
 yet?  If so, delete it!

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




-- 


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

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


Re: [twitter-dev] Re: Cron Jobs w/ twitter auth

2010-08-31 Thread Matt Harris
Hey Mahmoud,

Glad it's all working for you now.
Matt

On Tue, Aug 31, 2010 at 11:50 AM, Mahmoud Sakr m...@sakr.me wrote:
 Thanks a lot, I was able to port my auth successfully using the second
 link.

 Just a heads up for anyone interested - this mechanism was described
 here in depth: 
 http://masnun.com/blog/2010/04/30/setting-up-twitter-bots-with-oauth/
 (turns out my twitter account is called a twitter bot.) Also, the
 application I had to create from the same twitter bot's account (the
 access token given in the app belongs to the actual developer account
 in charge of the app) - wasted a considerable amount of time before
 figuring that out.

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




-- 


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

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


[twitter-dev] Re: Twitter for Android app OAuth

2010-08-31 Thread Jef Poskanzer


On Aug 31, 12:46 pm, Matt Harris thematthar...@twitter.com wrote:
 Like many mobile applications Twitter for Android uses xAuth. In this
 mode the user enters their username and password which is then sent to
 Twitter for the OAuth credentials. Part of the agreement of granting
 access to xAuth is that the application must not store the username
 and password.

Ah hah!  Ok, thanks, good to know.

A lot of folks are tweeting right now about the end of password-based
authentication.  Maybe someone should tell them not quite.

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


[twitter-dev] Re: Authentication Required on Public user_timeline

2010-08-31 Thread David Markus Hasselberg
Thank you for your reply.

Shortly after i submitted my question, it started working, but it was
not working two hours today, from about 12:00 pm (possibly earlier) to
2:00 pm/

The URL i was requesting was
http://api.twitter.com/1/statuses/user_timeline.json?callback=jsonp1283284871369screen_name=eprinewscount=3page=1include_rts=1.
Requests are succeeding now, but i was getting error 53 before. I
would like to understand what happened.

Thanks again.

On Aug 31, 3:08 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 As long as you are requesting from the correct end point:

 http://api.twitter.com/1/statuses/public_timeline.xml(or .json) without any
 authentication credentials, this should continue working for you.

 If it isn't, could you provide HTTP traces of your entire connection
 sequence, complete with the URL you are executing, all HTTP headers sent and
 received?

 Thanks,
 Taylor

 On Tue, Aug 31, 2010 at 10:52 AM, David Markus Hasselberg 



 darkwingsabl...@gmail.com wrote:
  I have developed a webpage that reads from a public user_timeline.
  Starting today, August 31st, i receive error 53 Basic  authentication
  is not supported. I understand that OAuth is now used instead of HTTP
  authentication, but public timelines should still not require any
  authentication, correct?

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

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


Re: [twitter-dev] Re: Authentication Required on Public user_timeline

2010-08-31 Thread Taylor Singletary
We think we've identified this bug -- when you've run out of your 150
requests per hour limits on a public resource, instead of giving you the
rate limited error -- we're throwing you an authentication challenge
instead. We're continuing to investigate and will update everyone when the
status changes.

Thanks for helping us find this!

Taylor

On Tue, Aug 31, 2010 at 1:04 PM, David Markus Hasselberg 
darkwingsabl...@gmail.com wrote:

 Thank you for your reply.

 Shortly after i submitted my question, it started working, but it was
 not working two hours today, from about 12:00 pm (possibly earlier) to
 2:00 pm/

 The URL i was requesting was

 http://api.twitter.com/1/statuses/user_timeline.json?callback=jsonp1283284871369screen_name=eprinewscount=3page=1include_rts=1
 .
 Requests are succeeding now, but i was getting error 53 before. I
 would like to understand what happened.

 Thanks again.

 On Aug 31, 3:08 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  As long as you are requesting from the correct end point:
 
  http://api.twitter.com/1/statuses/public_timeline.xml(or .json) without
 any
  authentication credentials, this should continue working for you.
 
  If it isn't, could you provide HTTP traces of your entire connection
  sequence, complete with the URL you are executing, all HTTP headers sent
 and
  received?
 
  Thanks,
  Taylor
 
  On Tue, Aug 31, 2010 at 10:52 AM, David Markus Hasselberg 
 
 
 
  darkwingsabl...@gmail.com wrote:
   I have developed a webpage that reads from a public user_timeline.
   Starting today, August 31st, i receive error 53 Basic  authentication
   is not supported. I understand that OAuth is now used instead of HTTP
   authentication, but public timelines should still not require any
   authentication, correct?
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

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


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


[twitter-dev] query complexity, limiting the number of terms

2010-08-31 Thread Mars
I'm getting query is too complex errors (see example below)  will
begin limiting the complexity of my formulated query.

Are there known/published limits to the number of q= terms the
search API will support?

In my experience so far, it seems 10 terms is the limit. Anyone know
more specifically about the q= complexity limits?

Any feedback is appreciated!
*Mars


curl session:
* About to connect() to search.twitter.com port 80 (#0)
*   Trying 128.121.243.235... connected
* Connected to search.twitter.com (128.121.243.235) port 80 (#0)
 GET 
 /search.atom?q=%22Bose%22+-%22Einstein%22+-%22condensate%22+-%22Mihir%22+-%22Miguel%22+-%22Chandra%22+-%22Mallika%22+-%22cricket%22+-%22brigadier%22+-%22Hubbard%22+-%22lucia%22+-%22Biman%22+-%22Rahul%22page=1rpp=11
  HTTP/1.1
 User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 
 OpenSSL/0.9.8l zlib/1.2.3
 Host: search.twitter.com
 Accept: */*

 HTTP/1.1 403 Forbidden
 Date: Tue, 31 Aug 2010 19:30:11 GMT
 Server: hi
 Status: 403 Forbidden
 X-Served-From: sjc1c010
 Content-Type: application/xml; charset=utf-8
 X-Served-By: sjc1i029.twitter.com
 Cache-Control: max-age=15, must-revalidate, max-age=1800
 Expires: Tue, 31 Aug 2010 20:00:11 GMT
 Vary: Accept-Encoding
 Content-Length: 145
 X-Varnish: 694464630
 Age: 0
 Via: 1.1 varnish
 X-Cache-Svr: sjc1i029.twitter.com
 X-Cache: MISS
 Connection: close

?xml version=1.0 encoding=UTF-8?
hash
  errorSorry, your query is too complex. Please reduce complexity
and try again./error
/hash
* Closing connection #0

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


[twitter-dev] Re: OAuth rate limit of 150

2010-08-31 Thread Roger Ertesvåg
Hi Matt,
thanks for your thorough response.

So I assume this rate limit would be IP based then? I did some tests
and got different rate limits on the server and on my development
machine, which seems to support your theory that I'm not authenticated
properly.

After some more testing it seems that the problem is in the library,
after switching to a previous version I get a rate limit of 350. I
will do some more testing tomorrow to confirm this.

Again, thanks for your help.


Regards
Roger


On Aug 31, 8:34 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey Roger,

 Thanks for sharing your code. A few things about the rate limits you are 
 seeing:

 The 150 rate limit is for non-authenticated requests to the Twitter
 API. These requests happen when no user identifying details are sent.
 The 350 rate limit is for OAuth authenticated requests to the Twitter
 API. These requests happen when you send a user token and secret.

 As you are not authenticating with Basic Auth in any of your requests
 you would only see the unauthenticated rate limit (150) or your OAuth
 rate limit (350). The reason you could be seeing 150 is that the token
 and secret you have are no longer valid - although in that situation I
 would expect us to return an error saying Could not authenticate with
 OAuth. I'll be looking into other reasons why that might be happening
 later today.

 Hope that explains what you are seeing,
 Matt



 On Tue, Aug 31, 2010 at 12:39 AM, Roger Ertesvåg webfo...@webfokus.no wrote:
  Hi,
  I'm using the ruby twitter gem:

 http://github.com/jnunemaker/twitter

  So to set it up I do:

     oauth = Twitter::OAuth.new(CONFIG['twitter_key'],
  CONFIG['twitter_secret'])
     oauth.authorize_from_access(CONFIG['twitter_atoken'],
  CONFIG['twitter_asecret'])
     base = Twitter::Base.new(oauth)

  Then when I do:

  base.rate_limit_status

  I get:

  #Hashie::Mash hourly_limit=150 remaining_hits=150 reset_time=Tue Aug
  31 08:26:37 + 2010 reset_time_in_seconds=1283243197

  If I use the exact same code for other accounts I have I get:

  #Hashie::Mash hourly_limit=350 remaining_hits=350 reset_time=Tue Aug
  31 08:22:40 + 2010 reset_time_in_seconds=1283242960

  Also, if I was not authorized by OAuth shouldn't the limit be even
  lower?

  Regards
  Roger

  On Aug 31, 1:03 am, Matt Harris thematthar...@twitter.com wrote:
  Hi Roger,

  It sounds like the OAuth part of your request isn't being seen by our
  servers. A rate limit of 150 will be reported whenever you make a
  request without authorisation. Can you share the code you are using to
  make the requests so we can see what might be going wrong?

  Thanks,
  Matt

  On Mon, Aug 30, 2010 at 11:30 AM, Roger Ertesvåg webfo...@webfokus.no 
  wrote:
   The OAuth rate limit for one of my accounts is stuck at 150. From what
   I'm reading, and seeing from other accounts I have, it is my
   understanding that it should be 350. What can I do to fix this?

   Regards
   Roger Ertesvag

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

  --

  Matt Harris
  Developer Advocate, Twitterhttp://twitter.com/themattharris

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

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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


Re: [twitter-dev] xAuth not Working (Help)

2010-08-31 Thread João Paulo Sabino de Moraes
thanks taylor,

I'm using a newer as3 api, and lookint at its sorces I saw how to get
oauth_signature only for oauth authentication and I'm trying to adapt it to
xAuth.

I think my only problem is the way I'm calculating oauth_signature based on
hmac 

as you can see at the 2 lines below
var hmac:HMAC =  Crypto.getHMAC(sha1);

var key:ByteArray = Hex.toArray(
Hex.fromString(encodeURIComponent(consumerKey) +  +
encodeURIComponent(consumerSecret)));

I'm making a hmac key based on consumerKey and consumerSecret and here:

var data:ByteArray = Hex.toArray( Hex.fromString( signString ) );
var oauth_signature:String = Base64.encodeByteArray( hmac.compute( key, data
) );

I'm encoding data (encoded base string) with consumerKey and secret hmac key
and that would be my oauth_signature.

So,I'm not sure if the way I'm calculating key var is correct
Concat encoded consumer key and consumerSecret is the right thing ?

thanks

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


[twitter-dev] Re: Authentication Required on Public user_timeline

2010-08-31 Thread David Markus Hasselberg
That would make sense. Thank you for your help.

On Aug 31, 4:09 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 We think we've identified this bug -- when you've run out of your 150
 requests per hour limits on a public resource, instead of giving you the
 rate limited error -- we're throwing you an authentication challenge
 instead. We're continuing to investigate and will update everyone when the
 status changes.

 Thanks for helping us find this!

 Taylor

 On Tue, Aug 31, 2010 at 1:04 PM, David Markus Hasselberg 



 darkwingsabl...@gmail.com wrote:
  Thank you for your reply.

  Shortly after i submitted my question, it started working, but it was
  not working two hours today, from about 12:00 pm (possibly earlier) to
  2:00 pm/

  The URL i was requesting was

 http://api.twitter.com/1/statuses/user_timeline.json?callback=jsonp12...
  .
  Requests are succeeding now, but i was getting error 53 before. I
  would like to understand what happened.

  Thanks again.

  On Aug 31, 3:08 pm, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
   As long as you are requesting from the correct end point:

  http://api.twitter.com/1/statuses/public_timeline.xml(or.json) without
  any
   authentication credentials, this should continue working for you.

   If it isn't, could you provide HTTP traces of your entire connection
   sequence, complete with the URL you are executing, all HTTP headers sent
  and
   received?

   Thanks,
   Taylor

   On Tue, Aug 31, 2010 at 10:52 AM, David Markus Hasselberg 

   darkwingsabl...@gmail.com wrote:
I have developed a webpage that reads from a public user_timeline.
Starting today, August 31st, i receive error 53 Basic  authentication
is not supported. I understand that OAuth is now used instead of HTTP
authentication, but public timelines should still not require any
authentication, correct?

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

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

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


[twitter-dev] Re: Need help with MGTwitterEngine OAuth/xAuth

2010-08-31 Thread metawops
Hi Felix,

thanks so much! Works now!! :-))

Have to read (even) more about memory management in Objective-C!
But never would have found out about the 64bit vs. 32bit issue I
think.
So thanks for pointing that out!!

Stefan.

On Aug 31, 11:35 am, Felix heidr...@enervision.de wrote:
 Hi,

 1. Replace
 twitterEngine = [[MGTwitterEngine twitterEngineWithDelegate:self];
 with
 twitterEngine = [[[MGTwitterEngine twitterEngineWithDelegate:self]
 retain];
 in init of the TestControllers.

 2. build the 32-bit version. 64-bit seems not to be supported.

 best regards, Felix.

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


[twitter-dev] Can someone give a PHP change background with Oauth Example

2010-08-31 Thread vanleurth
Yeap !! With the recent changes to the api my website doesn't work
anymore.
I wonder if I can get a piece of PHP code explaining how to change the
background using Twitter OAuth

Thank you

V.

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


[twitter-dev] On the demise of basic authentication.

2010-08-31 Thread Taylor Singletary
*GOODBYE BASIC AUTH*

On Tuesday, August 31st 2010 at 16:26:13 UTC, @raffi of @twitterapi/team
pressed the button that shut basic auth down for good:

set :rate_limit_api_basic_auth, 0 ; puts Time.now Tue Aug 31 16:26:13
+ 2010 = nil
   @raffi - http://twitter.com/twitterapi/status/22634515958

And with that issued command, we all said goodbye to Basic Authentication.

Basic authentication was the easiest way to get started with the REST API.
With that ease came many dangers, giving rise to the term the password
anti-pattern.

OAuth is obviously more complicated to implement. We'll continue to refine
and evolve possible authorization options that present more frictionless
user  developer experiences without sacrificing user, developer,  Twitter
security.

*A POEM*

   The time has come, the Walrus said,
   To talk of many things:
   Of SHAs--and nonces--and signatures--
   Of timestamps--and tokens--
   And why the dance--
   And whether OAuth has wings.

*A WAKE*

But let us not go with OAuth in anger, but instead with laughter in our
hearts.

We've curated some of our favorite tweets on the subject. Not all of them
are polite. http://curated.by/episod/oauthpocalypse -- some of them are
funny, others are sad, some are just informational. All are proof that the
transition to OAuth effects everyone a little differently.

*SOME ERRATA*

Large-scale migrations are not without their issues, of course. We
introduced this bug and will be fixing it as soon as we can.

* Non-authenticated resources return a 401 with authorization challenge once
the IP-based rate limit is exhausted.
  - The correct behavior here is for us to return a 400.
  - This includes public resources like public_timeline, public lists,
widgets, etc.

*OTHER REMINDERS*

* Use api.twitter.com/1/* for all REST API operations (excluding Search and
OAuth).
  - You will have unusual results otherwise  eventually your calls will
fail
* Use search.twitter.com for all Search API operations
* Use api.twitter.com/oauth/* for all OAuth token negotiation operations

*NOW LAUGH  RELAX.*

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


Re: [twitter-dev] Can someone give a PHP change background with Oauth Example

2010-08-31 Thread Matt Harris
Hey V,

There is an example of how to do this in my PHP library:
http://github.com/themattharris/tmhOAuth

Check the examples folder to see ways to make it work. The one you
will be interested in is called images.php

Hope that helps,
Matt

On Tue, Aug 31, 2010 at 3:08 PM, vanleurth vanleu...@gmail.com wrote:
 Yeap !! With the recent changes to the api my website doesn't work
 anymore.
 I wonder if I can get a piece of PHP code explaining how to change the
 background using Twitter OAuth

 Thank you

 V.

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




-- 


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

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


Re: [twitter-dev] xAuth not Working (Help)

2010-08-31 Thread Matt Harris
Hey João,

The signing key is the concatenation of the
consumer_secretuser_secret. If you don't have a user_secret the
signing key will be consumer_secret.

A couple of examples 

consumer_secret: 1234
user_secret:
signing_key: 1234

consumer_secret: 1234
user_secret: 5678
signing_key: 12345678


Give that a try and see it helps.
Matt

2010/8/31 João Paulo Sabino de Moraes jona...@gmail.com:
 thanks taylor,
 I'm using a newer as3 api, and lookint at its sorces I saw how to get
 oauth_signature only for oauth authentication and I'm trying to adapt it to
 xAuth.
 I think my only problem is the way I'm calculating oauth_signature based on
 hmac 
 as you can see at the 2 lines below
 var hmac:HMAC =  Crypto.getHMAC(sha1);
 var key:ByteArray = Hex.toArray(
 Hex.fromString(encodeURIComponent(consumerKey) +  +
 encodeURIComponent(consumerSecret)));
 I'm making a hmac key based on consumerKey and consumerSecret and here:
 var data:ByteArray = Hex.toArray( Hex.fromString( signString ) );
 var oauth_signature:String = Base64.encodeByteArray( hmac.compute( key, data
 ) );
 I'm encoding data (encoded base string) with consumerKey and secret hmac key
 and that would be my oauth_signature.

 So,I'm not sure if the way I'm calculating key var is correct
 Concat encoded consumer key and consumerSecret is the right thing ?
 thanks

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




-- 


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

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


[twitter-dev] Re: getStatusesMentions not working today....???

2010-08-31 Thread jmathai
Depending on what version of the library you're using it may default
to asynchronous mode.

try print_r($mentions-response);

On Aug 30, 8:44 pm, mirza mirza.ganba...@gmail.com wrote:
 hello my name is mirza.

 im new in develop twitter application. i think i have same problem.
 i want to get user mentions using get_statusesMentions().  i use
 epitwitter library.
 but the status result is empty. i dont know why. here is my code.

 $this-epiTwitter = new EpiTwitter($consumer-key,$consumer-secret,
 $user-reg_token,$user-access_token);
 $mentions = $this-epiTwitter-get_statusesMentions(array('max_id' =
 $user-last_status_id));
 print_r($mentions);

 thanks

 best regards,

 mirza

 On Jul 22, 7:00 am, Mark Krieger markskrie...@gmail.com wrote:

  Matt,

  Thanks for the quick response. The call uses EpiTwitter.php, it looks
  like:

  Call Oauth to authenticate (this works), then:

  $val = $twitterObj-get_statusesMentions(array('since_id' =
  $lastid));
  $arr = json_decode($val-responseText, true);
  if (empty($arr)) { $error = error text; log_message(...)}
  else ...

  It logs the error text showing the response through EpiTwitter was
  empty. Also, when I print $val-responseText, it is EMPTY.

  I've tried it on 4 twitter accounts I have, all of which have worked
  for many months in code which has not changed, it has only failed
  before when the api was down (like tuesday). And all other api calls
  which use similar code all work fine. I am stumped.

  I can send more data, like the $lastid, and my credentials for oauth
  to you, I would of course do that privately. I will run some more
  tests from here first I guess.

  Thanks,

  Mark
  On Jul 21, 4:49 pm, Matt Harris thematthar...@twitter.com wrote:

   Hi Mark,

   We aren't seeing any errors like this when we run some tests. Could you
   elaborate on what the bogus headers are?

   Matt

   On Wed, Jul 21, 2010 at 12:51 PM, Mark Krieger 
   markskrie...@gmail.comwrote:

My application has used getStatusesMentions for many months, it is
only failing when twitter has had some problem, like two days ago, and
in that case, everything is flaky. Today it is failing, but everything
else works fine. Is this a known problem today? getStatusesMentions
always comes back today with bogus headers

Mark

   --

   Matt Harris
   Developer Advocate, Twitterhttp://twitter.com/themattharris



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


Re: [twitter-dev] Tweet button share box language

2010-08-31 Thread Matt Harris
Hey,

This seems to be a bug as the share box does have translations. Can
you file this in our bug tracker so it doesn't get lost and then I can
file it with the team, thanks:
http://code.google.com/p/twitter-api/issues/list

Best,
Matt


On Tue, Aug 31, 2010 at 12:20 AM, semdornus semdor...@gmail.com wrote:
 Hello,

 The new Tweet button has the lang parameter to specify the language
 for the button.
 This however only works for the button text; the share box that pops
 up is always in English.
 Is there a time line for when this page will be localized as well?

 Thank you.

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




-- 


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

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


Re: [twitter-dev] Re: a new field retweeted and retweeted tweet's status id

2010-08-31 Thread Matt Harris
Thanks, it's been noted and added to our things to discuss when we
next look for enhancements.
Best,
Matt

On Tue, Aug 31, 2010 at 4:10 AM, hiro hirokazu.takat...@gmail.com wrote:
 Hi Matt,

 Thank you very much for you advice.

 I've posted an issue as
 http://code.google.com/p/twitter-api/issues/detail?id=1834

 Best regards,
 hiro

 On 8月31日, 午前9:03, Matt Harris thematthar...@twitter.com wrote:
 Hi hiro,

 The ID of the retweeted status will not be available through these new
 fields. Instead you should use either user_timeline or retweets_of_me
 to get the retweeted status ID.
 This could be a useful enhancement though so please file it on our
 issues and enhancements tracker:
    http://code.google.com/p/twitter-api/issues/list

 Best,
 Matt





 On Sun, Aug 29, 2010 at 9:14 PM, hiro hirokazu.takat...@gmail.com wrote:
  Hi,

  A new field retweeted: (true|false) is very useful. It reduces
  calling statuses/retweeted_by_me.

  Recent API changes and new fields at Twitter API Announcements
 http://groups.google.com/group/twitter-api-announce/browse_thread/thr...

  I also need retweeted tweet's status id in home_timeline to undo my
  retweet.
  Does anybody know the id also be provide after activation of the
  retweeted field?
  If the id does not provide in home_timeline, statuses/
  retweeted_by_me is needed again.

  hiro

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

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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




-- 


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

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


Re: [twitter-dev] retweeted variable in home timeline

2010-08-31 Thread Matt Harris
Hey p r,

The retweeted status is currently disabled whilst we look into some
issues with it. At the moment the best way to know if a Tweet has been
retweeted by you is to call /statuses/retweeted_by_me and compare the
status IDs with those in your home timeline.

More information on retweeted_by_me can be found on our developer
resources site:
http://dev.twitter.com/doc/get/statuses/retweeted_by_me

We'll post updates to this developer list and on @twitterapi when the
fields are re-enabled.

Best,
Matt

On Tue, Aug 31, 2010 at 5:08 AM, p r perab...@googlemail.com wrote:
 Hello,

 i receive per api my timeline and i want to show when the tweets
 retweeted by me. But the variable retweeted in every status is always
 empty. What is wrong, has everyone similar experiences?
 greetings

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




-- 


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

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


[twitter-dev] http://twitter.com/statuses/user_timeline/adaptuqa.json?count=5rand=8942 and basic authentication popup

2010-08-31 Thread Vijay
Hi,

I am trying to use this 
http://twitter.com/statuses/user_timeline/adaptuqa.json?count=5rand=8942
for getting statuses from my twitter web app and I keep getting this
Basic Authentication popup to enter my userid/pwd.I can type in the
url http://twitter.com/statuses/user_timeline/adaptuqa.json?count=5rand=8942
and it lets me access my statuses though in the browser(IE or Chrome).

How can I avoid this basic auth popup showing up for the public twees
from the adaptuqa a/c from my webapp ? I am using jquery with a $.ajax
call to the URL above. I am trying to access it from behind a proxy
firewall.

TIA,
Vijay

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


[twitter-dev] On Settings-Connections

2010-08-31 Thread SGarg
It might help to,

1) Port *Settings - Connections* to Main Page as *My Applications* and
2) Use easier terms like *Disconnect* or *Logout* than *Revoke Access*


This will help people keep their oauthed apps up-to-date.

SGarg

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


[twitter-dev] A day wasted trying to get public feed is OAuth the issue?

2010-08-31 Thread jmargey
Hi all,

My first day working on a twitter app, basically I have a web page
that displays a public feed from a celeb. I am calling
http://twitter.com/statuses/user_timeline/celebname.json and then
using jquery to display the feed. Now I know the json exists because
if I paste the url above in the browser it lets me save the json. If I
call the json locally from my code http://localhost/test/celebname.json
it returns the json and I can display the feed, but when I call
http://twitter.com/statuses/user_timeline/celebname.json it returns
nothing. Any ideas? Is is to do with the switch to OAuth? Do I have to
create a twitter app which calls the feed, and the celeb has to
authorise the app? Even though its a public feed?

Any suggestions would be great. I posted code below

$(function () {
var html =;

/*  I can save the following json but it returns nothing in code */
var tweeturl = http://twitter.com/statuses/user_timeline/
celebname.json;

/* this works when json saved locally*/
//var tweeturl = http://localhost/testcelebname.json;;


$.getJSON(tweeturl, function (d) {


$.each(d, function (i, item) {


if (i % 3 == 0  i != 0) {
html += /div;
}

   if (i % 3 == 0)
   {
html +=  div class=\tweet-items\;
   }


html += div class=\jeanne-tweet\p + item.text + /
pdiv class=\tweet-date\ + item.created_at + /div/div;

});

$('#tweet-items').append(html);
});
});

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


[twitter-dev] Twitter oAuth

2010-08-31 Thread Edward J. Yoon
Is it still possible to login using username/password? then, how can I
program it?

-- 
Best Regards, Edward J. Yoon
edwardy...@apache.org
http://blog.udanax.org

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


[twitter-dev] Authenticate to retrieve a tweet?

2010-08-31 Thread bretth
Hi,

I hope someone can clarify a few things for me please

I need to retrieve individual tweets via some sort of backend api/rss/
xml -ish web service for a website that I'm building. I can do the
searching for hashtags/keywords etc fine; but I'm having trouble
getting the contents of individual tweets when I have the url/id for
the tweet.

To elaborate;

I have a URL like this:

http://twitter.com/USERNAME/status/123456789

and I know I can then hit

http://api.twitter.com/1/statuses/show/123456789.xml

to get that tweet and user detail in xml format.

However I'm finding that after a few tries I start to get
authentication issues; it seems to be some kind of rate limiting,
because eventually I can get it again.

Now while I certainly won't be overwhelming twitter with requests or
anything, I do need the ability to make more than a few requests per
hour.

So what's the best way to achieve this?

Do I have to authenticate with oAuth or something? Can you clarify
this? Because everything I've ready about oAuth suggests that it
requires some sort of user intervention as well to complete the
process. I don't want this. I have my twitter app (with ID and Secret)
and I want to be able to use that to authenticate and query Twitter as
much as possible.

Is there an example of this that I can look at?

Thanks!!!

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


[twitter-dev] How to use Oauth tokens

2010-08-31 Thread nishith83
Hi All,

We have one specific requirement to use Twitter APIs as direct url
calls. Before OAuth, it was simpler as only the arguments needs to be
appended.

After the OAuth transition, we got the necessary tokens from twitter.
And also since our application is a single user type, we also got the
specific tokens for the user.

Now, we want to consume two APIs - statuses/mentions and statuses/
update.

Is there any way these tokens could be appended in the direct URL
call.


Thanks,

Nishith

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