Re: [twitter-dev] NET::Twitter::Lite
* Darren darrenlb...@gmail.com [100922 08:53]: I'm using Perl with NET::Twitter::Lite to send messages to an account on Twitter which works fine from the command line but as soon as I put it inside a CRONTAB it won't work at all. I've got all the paths correct for a script within a crontab, it just seems to fail at the point it tries to send an update to Twitter... Any clues??? This typically occurs when you have the PERL5LIB environment variable set in .bashrc (or elsewhere) in your login enviroment, but not in cron. Check for PERL5LIB differences between the two environments. -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
Re: [twitter-dev] what is the url and parameter of tweet in c++(liboauth)?
Thank all the people. In the morning I also realized tweet function. And share the source code gridtwit: http://code.google.com/p/gridtwit/ --- 在 2010年9月23日 下午12:21,Dwi Sasongko Supriyadi ruck...@gmail.com写道: 2010/9/23 玉柱九天 yuzhujiut...@gmail.com: what is the url and parameters of tweet in c++(liboauth)? i want to code the fuction of tweet in c++ and base on the api liboauth. but don't know tahat is the POST url and parameters? This probably helps http://github.com/gregkh/bti The latest release of bti supports oauth using liboauth -- 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 -- A mathematician is a device for turning coffee into theorems. - Paul Erdos Contacts: +62 857 8038 8298 +62 813 9876 6576 Skype: dwi.sasongko GTalk: ruckuus -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] OAuth request token URL
Hi, I recently register my twitter application and obtained my OAuth consumer credentials. However i noticed that when registering i choose the browser option as my application will run solely via a web browser, But to my surprise when i dispatched this: POST https://twitter.com/oauth/request_token, I recieved this error mesage from my console. ?xml version=1.0 encoding=UTF-8? hash request/oauth/request_token/request errorDesktop applications only support the oauth_callback value 'oob'/error /hash I have tried several times to select the browser option on my application's settings page, but it says it requires me to define a callback URL, which according to the OAuth standard, allows me to dynamically define my callback URL in the request token stage. can someone tell me what i may be doing wrongly. Cheers -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] OAuth request token URL
Yes, you can dynamically provide a callback URL, but you still need to enter one in the applications settings. Scott. On 23 Sep 2010, at 07:34, kengimel wrote: Hi, I recently register my twitter application and obtained my OAuth consumer credentials. However i noticed that when registering i choose the browser option as my application will run solely via a web browser, But to my surprise when i dispatched this: POST https://twitter.com/oauth/request_token, I recieved this error mesage from my console. ?xml version=1.0 encoding=UTF-8? hash request/oauth/request_token/request errorDesktop applications only support the oauth_callback value 'oob'/error /hash I have tried several times to select the browser option on my application's settings page, but it says it requires me to define a callback URL, which according to the OAuth standard, allows me to dynamically define my callback URL in the request token stage. can someone tell me what i may be doing wrongly. Cheers -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] why it doesn't work: GET statuses/retweets/:id
hi all: my url, prm(parameters) as following: char *tweet_retweets_response = NULL; debug trace: tweet_retweets_url = http://api.twitter.com/1/statuses/retweets/25293485057.xml debug trace: tweet_retweets_prm = oauth_consumer_key=**oauth_nonce=UuG5RuilHNOJWdbcM5iSoauth_signature_method=HMAC- SHA1oauth_timestamp=1285241013oauth_token=**oauth_version=1.0oauth_signature=gSAo %2BWTyQauzludvPD%2Fz8UrhfDw%3D and call: tweet_retweets_response = oauth_http_post(tweet_retweets_url, tweet_retweets_prm); and the response is: debug trace: tweet_retweets_response = ?xml version=1.0 encoding=UTF-8? statuses type=array /statuses and then return to my web, the tweet(status_id = 25293485057) doesn't be retweeted, why? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: why it doesn't work: GET statuses/retweets/:id
and while i use the GET request, it response the same result. GET request: my url, prm(parameters) as following: char *tweet_retweets_response = NULL; debug trace: tweet_retweets_url = http://twitter.com/statuses/retweets/25293485057.xml?oauth_consumer_key=95Sw32n3TIUKtE8U4kbAoauth_nonce=iup8Ydi44p4Vaujb8a9booauth_signature_method=HMAC-SHA1oauth_timestamp=1285242911oauth_token=172312929-C4kebETEWK2XWA8dCzoSMRcKMDdnecg3be2EqsTroauth_version=1.0oauth_signature=GNSdETwJzEVSr145hCJvG8vXH2M%3D debug trace: tweet_retweets_prm = (null) and call: tweet_retweets_response = oauth_http_get(tweet_retweets_url, tweet_retweets_prm); and the response is: debug trace: tweet_retweets_response = ?xml version=1.0 encoding=UTF-8? statuses type=array /statuses and then return to my web, the tweet(status_id = 25293485057) doesn't be retweeted, why? - 2010/9/23 yuzhujiutian yuzhujiut...@gmail.com hi all: my url, prm(parameters) as following: char *tweet_retweets_response = NULL; debug trace: tweet_retweets_url = http://api.twitter.com/1/statuses/retweets/25293485057.xml debug trace: tweet_retweets_prm = oauth_consumer_key=**oauth_nonce=UuG5RuilHNOJWdbcM5iSoauth_signature_method=HMAC- SHA1oauth_timestamp=1285241013oauth_token=**oauth_version=1.0oauth_signature=gSAo %2BWTyQauzludvPD%2Fz8UrhfDw%3D and call: tweet_retweets_response = oauth_http_post(tweet_retweets_url, tweet_retweets_prm); and the response is: debug trace: tweet_retweets_response = ?xml version=1.0 encoding=UTF-8? statuses type=array /statuses and then return to my web, the tweet(status_id = 25293485057) doesn't be retweeted, why? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: #newtwitter and the API
include_entities Methods which return statuses support an include_entities parameter. When set to either true, t or 1, each tweet will include a node called entities,. This node offers a variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags. Entities is currently opt-in but will become defaulted to on. Is there any chance that this could be included in the search API? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Problem with my curl remote app
is it supposed to work on PHP 5.3.3 ? Or just on php 5.2.x ? On 22 set, 17:02, Tom van der Woerdt i...@tvdw.eu wrote: You'd have to remove all the PHP5 specific code. Really, you should upgrade :-) Tom On 9/22/10 9:58 PM, Daniel Contarini wrote: Damn, i'm running this php - 4.4.7. There is a way to post into twtiter with php 4 or i need to upgrade to php 5+ ? On 22 set, 15:48, Abraham Williams 4bra...@gmail.com wrote: You would not happen to be running PHP4 would you? Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Wed, Sep 22, 2010 at 11:38, Daniel Contarini danielcontar...@gmail.comwrote: Line 21 On 22 set, 15:19, Abraham Williams 4bra...@gmail.com wrote: What line is that error occurring on? Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Wed, Sep 22, 2010 at 10:54, Daniel Contarini danielcontar...@gmail.comwrote: I think this is what i need, but i'm getting trouble with this error : Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote: This should be all you need:http://gist.github.com/592098 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Wed, Sep 22, 2010 at 10:10, Daniel Contarini danielcontar...@gmail.comwrote: I'm not living under a rock, but almost it :/ Can you help me answer what i need to change , because i'm reading everything about oauth and i'm still lost :/ On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote: http://dev.twitter.com, big blue bar at the bottom of the screen? http://dev.twitter.com/announcements Tom PS: Have you been living under a rock? Every major tech blog announced it... (And sorry if I am rude) On 9/22/10 4:52 PM, Daniel Contarini wrote: This code have been working perfectly until the last 20 days +-, i wanna know what i need to change in this code to make it works again. $userpass=My user and pass; //sure to be correct $host = http://twitter.com/statuses/update.xml? status=.urlencode(htmlentities($message)); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERPWD, $user$pass); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, ); $result = curl_exec($ch); $resultArray = curl_getinfo($ch); curl_close($ch); -- 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 developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: NET::Twitter::Lite
I've tried adding in PERL5LIB for cron; still a problem the code that falls over in the crontab is as follows: $result = eval { $nt-update($text) }; if ( $@ ) { errorTrap(update failed because: $@); } When it runs on the command line no errors; however inside a cron it return 'OK' in $result and $@ returns a code 200 (ie a success code) and then fails On Sep 23, 7:24 am, Marc Mims marc.m...@gmail.com wrote: * Darren darrenlb...@gmail.com [100922 08:53]: I'm using Perl with NET::Twitter::Lite to send messages to an account on Twitter which works fine from the command line but as soon as I put it inside a CRONTAB it won't work at all. I've got all the paths correct for a script within a crontab, it just seems to fail at the point it tries to send an update to Twitter... Any clues??? This typically occurs when you have the PERL5LIB environment variable set in .bashrc (or elsewhere) in your login enviroment, but not in cron. Check for PERL5LIB differences between the two environments. -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
Re: [twitter-dev] Re: Problem with my curl remote app
Works with 5.3.3 on my server. Tom On 9/23/10 3:02 PM, Daniel Contarini wrote: is it supposed to work on PHP 5.3.3 ? Or just on php 5.2.x ? On 22 set, 17:02, Tom van der Woerdt i...@tvdw.eu wrote: You'd have to remove all the PHP5 specific code. Really, you should upgrade :-) Tom On 9/22/10 9:58 PM, Daniel Contarini wrote: Damn, i'm running this php - 4.4.7. There is a way to post into twtiter with php 4 or i need to upgrade to php 5+ ? On 22 set, 15:48, Abraham Williams 4bra...@gmail.com wrote: You would not happen to be running PHP4 would you? Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Wed, Sep 22, 2010 at 11:38, Daniel Contarini danielcontar...@gmail.comwrote: Line 21 On 22 set, 15:19, Abraham Williams 4bra...@gmail.com wrote: What line is that error occurring on? Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Wed, Sep 22, 2010 at 10:54, Daniel Contarini danielcontar...@gmail.comwrote: I think this is what i need, but i'm getting trouble with this error : Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitteroauth.php On 22 set, 14:18, Abraham Williams 4bra...@gmail.com wrote: This should be all you need:http://gist.github.com/592098 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Wed, Sep 22, 2010 at 10:10, Daniel Contarini danielcontar...@gmail.comwrote: I'm not living under a rock, but almost it :/ Can you help me answer what i need to change , because i'm reading everything about oauth and i'm still lost :/ On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote: http://dev.twitter.com, big blue bar at the bottom of the screen? http://dev.twitter.com/announcements Tom PS: Have you been living under a rock? Every major tech blog announced it... (And sorry if I am rude) On 9/22/10 4:52 PM, Daniel Contarini wrote: This code have been working perfectly until the last 20 days +-, i wanna know what i need to change in this code to make it works again. $userpass=My user and pass; //sure to be correct $host = http://twitter.com/statuses/update.xml? status=.urlencode(htmlentities($message)); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERPWD, $user$pass); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, ); $result = curl_exec($ch); $resultArray = curl_getinfo($ch); curl_close($ch); -- 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 developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Incorrect search results
Just a note, we fixed the problem. The ID that was not working was created a while ago an never used until now. We just set the tweets to be private, saved, logged out, then logged in, set tweets to public, saved. After that refresh of the parameters things are working. Seems it just needed some sort of database refresh since it was an old, inactive id. On Sep 22, 7:35 pm, DS goonlin...@gmail.com wrote: I would like to understand which users and posts end up searchable with the search api and the Twitter search web page. I have examples of a user who has posted but his results are not viewable by either search api or web page. The tweets are visible in the users timeline and those that follow the user, but not in search. The user settings allow his tweets to be public. Another user works fine and has posts immediately available in all searches and followers. The settings for these two users appear to be the same. Any advice on how to debug and what the rules for the search availability of tweets. Thanks. ...Dave -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] PHP cURL example for request token?
Hello! I have been banging my head for a few hours over this, and can't seem to figure it out. When requesting the unauthorized request token from OAuth, I can't seem to be able to get past the Failed to validate oauth signature and token error. I have used that Google tool to verify that I am signing it properly. I think it's probably because I'm not using cURL correctly? Here is an example header I am generating: Authorization: Oauth oauth_callback=http%3A%2F %2Fwww.callbackaddress.com%2Ftwitter %2Ftwitter.php,oauth_consumer_key=MYKEY,oauth_nonce=3e3ab32b8bdf10d739d923c02cfe0ca9,oauth_signature=iU53Edz7HGkQRe4Dt6MVsEVlNGk %3D,oauth_signature_method=HMAC- SHA1,oauth_timestamp=1285226385,oauth_version=1.0 In PHP that's assigned to a $header variable, then I execute this, which is probably where it fails: --- $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $request_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array($header,Content-Type: application/x-www-form-urlencoded)); $result = curl_exec($ch); --- What more do I need to do? Thanks for any help. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Incorrect signature /1/statuses/update.json
hi I get the following error when I try to post a update (http:// api.twitter.com/1/statuses/update.json) {request:/1/statuses/update.json,error:Incorrect signature} I asked the user for permission to post on his behave with the request_token and access_token, this works just fine. But when I try to post an update I get the error. I can't find what's wrong. I added the the request and response below. I uses the net.oauth library in java to make the request. thanks in advance Marcel - POST /1/statuses/update.json HTTP/1.1[EOL] - Authorization: OAuth oauth_token=172681734- FzhN9E4N01HaA2ayQxbur7Hx97857T5wtrNL56bk, oauth_consumer_key=kwdk6ffBkQoGejCCaBt4vQ, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285237466, oauth_nonce=7339259272017102, oauth_version=1.0, oauth_signature=KH%2BLmOjrm8pXxVtPnnzI37DFHfE%3D[EOL] - Transfer-Encoding: chunked[EOL] - Host: api.twitter.com[EOL] - Connection: Keep-Alive[EOL] - User-Agent: Apache-HttpClient/4.0.1 (java 1.5)[EOL] - Cookie: _twitter_sess=BAh7CDoHaWQiJTQ1M2QwYjA3Y2Q5YWVhNWVhYTU4YTgyMzJhNmRjMDQ4Igpm %250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG %250AOgpAdXNlZHsAOg9jcmVhdGVkX2F0bCsI0R8EPisB--717ce85d54e96a462396a77454aae15936b54bb9[EOL] - Cookie2: $Version=1[EOL] - [EOL] - POST /1/statuses/update.json HTTP/1.1 - Authorization: OAuth oauth_token=172681734- FzhN9E4N01HaA2ayQxbur7Hx97857T5wtrNL56bk, oauth_consumer_key=kwdk6ffBkQoGejCCaBt4vQ, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285237466, oauth_nonce=7339259272017102, oauth_version=1.0, oauth_signature=KH%2BLmOjrm8pXxVtPnnzI37DFHfE%3D - Transfer-Encoding: chunked - Host: api.twitter.com - Connection: Keep-Alive - User-Agent: Apache-HttpClient/4.0.1 (java 1.5) - Cookie: _twitter_sess=BAh7CDoHaWQiJTQ1M2QwYjA3Y2Q5YWVhNWVhYTU4YTgyMzJhNmRjMDQ4Igpm %250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG %250AOgpAdXNlZHsAOg9jcmVhdGVkX2F0bCsI0R8EPisB--717ce85d54e96a462396a77454aae15936b54bb9 - Cookie2: $Version=1 - 11[EOL] - status=firsttweet - [EOL] - 0[EOL] - [EOL] - HTTP/1.1 401 Unauthorized[EOL] - Date: Thu, 23 Sep 2010 10:24:26 GMT[EOL] - Server: hi[EOL] - Status: 401 Unauthorized[EOL] - WWW-Authenticate: Basic realm=Twitter API[EOL] - Content-Type: application/json; charset=utf-8[EOL] - Content-Length: 67[EOL] - Cache-Control: no-cache, max-age=300[EOL] - Set-Cookie: k=85.119.49.19.1285237466978726; path=/; expires=Thu, 30-Sep-10 10:24:26 GMT; domain=.twitter.com[EOL] - Set-Cookie: guest_id=12852374669829562; path=/; expires=Sat, 23 Oct 2010 10:24:26 GMT[EOL] 2010-09-23 12:24:27,077 DEBUG - wire - Set- Cookie: _twitter_sess=BAh7CCIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo %250ASGFzaHsABjoKQHVzZWR7ADoHaWQiJTQ1M2QwYjA3Y2Q5YWVhNWVhYTU4YTgy %250AMzJhNmRjMDQ4Og9jcmVhdGVkX2F0bCsI0R8EPisB--1164250989c7989e3a4df34f9fb7287d2b2abb48; domain=.twitter.com; path=/[EOL] - Expires: Thu, 23 Sep 2010 10:29:26 GMT[EOL] - Vary: Accept-Encoding[EOL] - Connection: close[EOL] - [EOL] - {request:/1/statuses/update.json,error:Incorrect signature} -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: xAuth problem
I don't know what's going on and need more information to be able to tell you. What's the name of the Twitter account that you have used to register your application? Taylor On Wed, Sep 22, 2010 at 8:35 PM, privatejava ngmm...@gmail.com wrote: I 'm suprised..today when I came to compile my all classfile and changed my library of twitter api to new version. Also as you said i changed date first to Jan 01 2010 and again at Sept 22 the xAuth worked fine without any exception. Can you tell me what is happening on me.. I don't know how it was fixed my date was already at Sept 22 .Has Twitter blocked my keys or secret? I use xAuth everytime the user logins. I don't save any information neither tokens for user's privacy. So i don't think it's cause of twitter is it? Thanks.. On Sep 22, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Narayan, I'd like to help, but I need more information in order to debug. Can you verify that your consumer key and secret are correct (and the same as what you have stored currently on dev.twitter.com)? Is there any reason you can think of that your application may have become suspended? Taylor On Tue, Sep 21, 2010 at 9:13 PM, Narayan Maharjan ngmm...@gmail.com wrote: Hello Taylor, I 've already checked my timestamp before couple of days. The exception occurs on all of the user who are using my application.So I think it may be due to my own application. I use twitter4j api. It shows exception every time i try to login. Please help. Thanks. On Tue, Sep 21, 2010 at 8:36 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi there, Has anything changed about your environment? Perhaps your clocks have changed and you aren't generating valid timestamps? When you applied and were approved for xAuth, was it a conditional approval meant for transitional purposes? Have you tried utilizing xAuth from another code base? What is the specific Twitter API exception that you are receiving? Taylor On Tue, Sep 21, 2010 at 4:22 AM, privatejava ngmm...@gmail.com wrote: Since many days i can see my xAuth is not working .It gives me error/ exception while i try to login my twitter user via xauth method.My application is a standalone app with api twitter4j.I've even already verified my xAuth but why isn't it working? Please help! -- 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 developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Incorrect signature /1/statuses/update.json
Hi Marcel, Looks like you're close to getting this right. Can you share the signature base string generated for this request? Is there any specific reason you are also sending Cookie information? Thanks, Taylor On Thu, Sep 23, 2010 at 3:39 AM, marcel mar...@marcelrouwenhorst.nl wrote: hi I get the following error when I try to post a update (http:// api.twitter.com/1/statuses/update.json) {request:/1/statuses/update.json,error:Incorrect signature} I asked the user for permission to post on his behave with the request_token and access_token, this works just fine. But when I try to post an update I get the error. I can't find what's wrong. I added the the request and response below. I uses the net.oauth library in java to make the request. thanks in advance Marcel - POST /1/statuses/update.json HTTP/1.1[EOL] - Authorization: OAuth oauth_token=172681734- FzhN9E4N01HaA2ayQxbur7Hx97857T5wtrNL56bk, oauth_consumer_key=kwdk6ffBkQoGejCCaBt4vQ, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285237466, oauth_nonce=7339259272017102, oauth_version=1.0, oauth_signature=KH%2BLmOjrm8pXxVtPnnzI37DFHfE%3D[EOL] - Transfer-Encoding: chunked[EOL] - Host: api.twitter.com[EOL] - Connection: Keep-Alive[EOL] - User-Agent: Apache-HttpClient/4.0.1 (java 1.5)[EOL] - Cookie: _twitter_sess=BAh7CDoHaWQiJTQ1M2QwYjA3Y2Q5YWVhNWVhYTU4YTgyMzJhNmRjMDQ4Igpm %250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG %250AOgpAdXNlZHsAOg9jcmVhdGVkX2F0bCsI0R8EPisB--717ce85d54e96a462396a77454aae15936b54bb9[EOL] - Cookie2: $Version=1[EOL] - [EOL] - POST /1/statuses/update.json HTTP/1.1 - Authorization: OAuth oauth_token=172681734- FzhN9E4N01HaA2ayQxbur7Hx97857T5wtrNL56bk, oauth_consumer_key=kwdk6ffBkQoGejCCaBt4vQ, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285237466, oauth_nonce=7339259272017102, oauth_version=1.0, oauth_signature=KH%2BLmOjrm8pXxVtPnnzI37DFHfE%3D - Transfer-Encoding: chunked - Host: api.twitter.com - Connection: Keep-Alive - User-Agent: Apache-HttpClient/4.0.1 (java 1.5) - Cookie: _twitter_sess=BAh7CDoHaWQiJTQ1M2QwYjA3Y2Q5YWVhNWVhYTU4YTgyMzJhNmRjMDQ4Igpm %250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG %250AOgpAdXNlZHsAOg9jcmVhdGVkX2F0bCsI0R8EPisB--717ce85d54e96a462396a77454aae15936b54bb9 - Cookie2: $Version=1 - 11[EOL] - status=firsttweet - [EOL] - 0[EOL] - [EOL] - HTTP/1.1 401 Unauthorized[EOL] - Date: Thu, 23 Sep 2010 10:24:26 GMT[EOL] - Server: hi[EOL] - Status: 401 Unauthorized[EOL] - WWW-Authenticate: Basic realm=Twitter API[EOL] - Content-Type: application/json; charset=utf-8[EOL] - Content-Length: 67[EOL] - Cache-Control: no-cache, max-age=300[EOL] - Set-Cookie: k=85.119.49.19.1285237466978726; path=/; expires=Thu, 30-Sep-10 10:24:26 GMT; domain=.twitter.com[EOL] - Set-Cookie: guest_id=12852374669829562; path=/; expires=Sat, 23 Oct 2010 10:24:26 GMT[EOL] 2010-09-23 12:24:27,077 DEBUG - wire - Set- Cookie: _twitter_sess=BAh7CCIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo %250ASGFzaHsABjoKQHVzZWR7ADoHaWQiJTQ1M2QwYjA3Y2Q5YWVhNWVhYTU4YTgy %250AMzJhNmRjMDQ4Og9jcmVhdGVkX2F0bCsI0R8EPisB--1164250989c7989e3a4df34f9fb7287d2b2abb48; domain=.twitter.com; path=/[EOL] - Expires: Thu, 23 Sep 2010 10:29:26 GMT[EOL] - Vary: Accept-Encoding[EOL] - Connection: close[EOL] - [EOL] - {request:/1/statuses/update.json,error:Incorrect signature} -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: NET::Twitter::Lite
* Darren darrenlb...@gmail.com [100923 06:04]: I've tried adding in PERL5LIB for cron; still a problem the code that falls over in the crontab is as follows: $result = eval { $nt-update($text) }; if ( $@ ) { errorTrap(update failed because: $@); } When it runs on the command line no errors; however inside a cron it return 'OK' in $result and $@ returns a code 200 (ie a success code) and then fails That would indicate Twitter returned an HTTP 200 response with en error payload. Let's try to get more information. Give this a try: # make sure you have perl's basic diagnostics help use warnings; use strict; use Data::Dumper; print Environment:\n, Dumper(\%ENV), \n\n, my $result = eval { $nt-update($text) }; if ( my $e = $@ ) { print HTTP Request:\n, Dumper($e-http_response-request-as_string), \n\n, HTTP Response:\n, Dumper($e-http_response-as_string), \n\n; } Hopefully that will shed some light on the problem. -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
Re: [twitter-dev] OAuth request token URL
Our system is quirky. There technically isn't a boolean flag set on an application that dictates whether it's a web or desktop application -- instead the boolean is a derived value based on the presence of a default callback URL. Think of this callback URL as a placeholder -- while it should have some relevance to your application, it doesn't need to strictly correlate to an actual callback location. To practice correct OAuth, you still need to provide an oauth_callback on the request token step of the OAuth negotiation phase. The callback provided at that time always takes precedence. Taylor On Thu, Sep 23, 2010 at 12:23 AM, Scott Wilcox sc...@dor.ky wrote: Yes, you can dynamically provide a callback URL, but you still need to enter one in the applications settings. Scott. On 23 Sep 2010, at 07:34, kengimel wrote: Hi, I recently register my twitter application and obtained my OAuth consumer credentials. However i noticed that when registering i choose the browser option as my application will run solely via a web browser, But to my surprise when i dispatched this: POST https://twitter.com/oauth/request_token, I recieved this error mesage from my console. ?xml version=1.0 encoding=UTF-8? hash request/oauth/request_token/request errorDesktop applications only support the oauth_callback value 'oob'/error /hash I have tried several times to select the browser option on my application's settings page, but it says it requires me to define a callback URL, which according to the OAuth standard, allows me to dynamically define my callback URL in the request token stage. can someone tell me what i may be doing wrongly. Cheers -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] twitter oAuth 401 Unauthorizd error
Also, please note that OAuth URLs should be https://api.twitter.com/oauth/request_token, https://api.twitter.com/oauth/authorize, and https://api.twitter.com/oauth/access_token. Likewise, API request should go to http://api.twitter.com/1/* Taylor On Wed, Sep 22, 2010 at 10:57 PM, Tom van der Woerdt i...@tvdw.eu wrote: There's an oauth_callback in your Base String but not in your POST/Authorization header. Tom On 9/23/10 3:00 AM, bill wrote: I have been working on a 401 error from twitter oAuth, but I have no clue. Please see if you can help me Thanks Log === debug: token is now: debug: token_secret is now: debug: Getting request token from http://twitter.com/oauth/request_token debug: callback: debug: signing request with: HMAC-SHA1 debug: Signing with base string: POSThttp%3A%2F%2Ftwitter.com%2Foauth %2Frequest_tokenoauth_callback%3D%26oauth_consumer_key %3D**%26oauth_nonce %3D%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1285202944%26oauth_version%3D1.0 debug: Signing with key: * debug: * Connected to tcp://twitter.com:80 debug: POST /oauth/request_token HTTP/1.1 debug: User-Agent: HTTP_Request2/0.5.2 (http://pear.php.net/package/ http_request2) PHP/5.3.1 debug: Authorization: OAuth realm=http://twitter.com/;, oauth_consumer_key=**, oauth_nonce=, oauth_signature=*%3D, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285202944, oauth_version=1.0 debug: Host: twitter.com debug: Accept-Encoding: gzip, deflate debug: Content-Length: 0 debug: debug: HTTP/1.1 401 Unauthorized debug: date: Thu, 23 Sep 2010 00:49:04 GMT debug: server: hi debug: status: 401 Unauthorized debug: x-transaction: 1285202944-71537-9675 debug: last-modified: Thu, 23 Sep 2010 00:49:04 GMT debug: x-runtime: 0.00586 debug: content-type: text/html; charset=utf-8 debug: pragma: no-cache debug: x-revision: DEV debug: expires: Tue, 31 Mar 1981 05:00:00 GMT debug: cache-control: no-cache, no-store, must-revalidate, pre- check=0, post-check=0 debug: x-xss-protection: 1; mode=block debug: x-frame-options: SAMEORIGIN debug: vary: Accept-Encoding debug: content-encoding: gzip debug: content-length: 62 debug: connection: close debug: debug: Failed to validate oauth signature and token debug: * Disconnected Net_URL2 Object ( [_options:Net_URL2:private] = Array ( [strict] = 1 [use_brackets] = 1 [encode_keys] = 1 [input_separator] = [output_separator] = ) [_scheme:Net_URL2:private] = http [_userinfo:Net_URL2:private] = [_host:Net_URL2:private] = twitter.com [_port:Net_URL2:private] = [_path:Net_URL2:private] = / oauth/request_token [_query:Net_URL2:private] = [_fragment:Net_URL2:private] = ) --- In exception block ---ERROR: Failed getting token and token secret from response -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Question about truncated entities in the streaming API
Are entities not delivered if the tweet is truncated? Can they be in the future? I've noticed that when retweets are delivered they have RT @whateverusername: prepended, this often shoves a url or hash tag off the end of a message and I don't seem to receive the entity either, even though it was in the original message. Am I missing something? Is the original message available or could it be added as original_text? Thanks for any insight! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Question about truncated entities in the streaming API
It looks like I should be looking for retweeted_status... I overlooked that. On Sep 23, 10:14 am, Justin justin.carl...@gmail.com wrote: Are entities not delivered if the tweet is truncated? Can they be in the future? I've noticed that when retweets are delivered they have RT @whateverusername: prepended, this often shoves a url or hash tag off the end of a message and I don't seem to receive the entity either, even though it was in the original message. Am I missing something? Is the original message available or could it be added as original_text? Thanks for any insight! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Tweet Button and single-page web app
Dear developers, I'm having trouble with the Tweet Button's count on a web app which uses hash-urls to navigate. Consider this page: http://emptysquare.net/photography/lower-east-side/#4/ I install a Tweet Button like so: var tweet_button = $('#tweet_button_container'); tweet_button.html( 'a href=http://twitter.com/share; class=twitter-share-button data- count=horizontal data-via=jessejiryudavis data-url=' + document.location.href + ' data-counturl=' + document.location.href + 'Tweet/ascript type=text/javascript src=http:// platform.twitter.com/widgets.js/script' ); If you click the right arrow, the hash changes, from #4/ to #5/. Whenever that happens I re-run the Javascript above to reload the button for the new hash. When I tweet from a page, the count updates to 1 correctly, but if I then click the right arrow, and the left, to return to the page I tweeted, the count has reset to 0. I have also tried removing the hash, like this: var location = document.location.href.split('#')[0] + (imageId +1) + '/'; var tweet_button = $('#tweet_button_container'); tweet_button.html( 'a href=http://twitter.com/share; class=twitter-share-button data- count=horizontal data-via=jessejiryudavis data-url=' + location + ' data-counturl=' + location + 'Tweet/ascript type=text/javascript src=http:// platform.twitter.com/widgets.js/script' ); ... so that the url and the counturl do *not* contain a hash like this: http://emptysquare.net/photography/lower-east-side/4/ ... but that behaves the same. Why isn't my Tweet Button increasing the tweet count on my pages? Thanks, Jesse -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Question about truncated entities in the streaming API
Actually I'm still unsure, are entities provided in the retweeted_status? Where is retweeted_status documented, especially it's use in the streaming api? Still digging... On Sep 23, 10:36 am, Justin justin.carl...@gmail.com wrote: It looks like I should be looking for retweeted_status... I overlooked that. On Sep 23, 10:14 am, Justin justin.carl...@gmail.com wrote: Are entities not delivered if the tweet is truncated? Can they be in the future? I've noticed that when retweets are delivered they have RT @whateverusername: prepended, this often shoves a url or hash tag off the end of a message and I don't seem to receive the entity either, even though it was in the original message. Am I missing something? Is the original message available or could it be added as original_text? Thanks for any insight! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] #newtwitter and the API
Brian, Thanks for the info. retweet_count The status object now includes a retweet_count field. When enabled this field will indicate the number of times a Tweet has been retweeted using the Twitter retweet function. What does when enabled mean? I have a couple of tweets for which I am trying to find out the absolute count of retweets. All I know is that the Twitter UI says 100+ retweets. But when I pull the status objects, retweet_count is blank. These tweets are from 2 days ago. Can someone point me to the best way to find out? Thanks! /damon -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Search API - Show From user but not @replies
Is it possible using a search query to show tweets from a user but not include their @ replies? I can see that it's possible to negate a query (such as @user) but not possible to use a wildcard (to negate all @users) so how could you do 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
Re: [twitter-dev] oauth and tokens what up with that?
Hi Mike, We have a fairly easy path to acquiring an access token just for your own account/application combination. You can find out more about it at http://dev.twitter.com/pages/oauth_single_token Taylor On Thu, Sep 23, 2010 at 10:33 AM, Mike the Pike mikeb...@yahoo.com wrote: require_once('twitteroauth.php'); $connection = new TwitterOAuth('app consumer key', 'app consumer secret', 'my access token', 'my access token secret'); $connection-format = 'xml'; $result = $connection-post('statuses/update', array('status' = $message)); $resultArray = $connection-http_info; This is my script. I stole it from someone on this group. Much appreciated. I registered my app and got the consumer key and secret consumer key. As I understand it I also require 2 tokens to authenticate with oauth and typically from the apps I've already built these are generated when I log in. However, i don't want to have to log in there I just want to genereate a feed that I can compare to a criteria and output should it match that criteria. This script looks promising but how do I get those tokens? Any help would be appreciated. Thanks, Mike the Pike -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Search API - Show From user but not @replies
Hi Dan, Search is fairly basic in it's use of operators so the query you are trying to do isn't possible. If all you really want is a users timeline have you tried: http://api.twitter.com/1/statuses/user_timeline.json?screen_name=username_you_want This will give you all tweets sent by a particular user. There is also a new flag for timelines which you can add that will exclude replies: http://api.twitter.com/1/statuses/user_timeline.json?screen_name=username_you_wantexlude_replies=true Hope that helps, @themattharris On Thu, Sep 23, 2010 at 10:02 AM, Dan d...@d4nz.net wrote: Is it possible using a search query to show tweets from a user but not include their @ replies? I can see that it's possible to negate a query (such as @user) but not possible to use a wildcard (to negate all @users) so how could you do 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 -- 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
Re: [twitter-dev] Re: Problem with my curl remote app
Hi Mike, The OAuth 1 tokens are permanent and expire only if the user revokes the application, or if your application is deleted. The user token and secret are returned by the method https://api.twitter.com/oauth/access_token, called after the user has authorised your application and we have redirected them back to the callback URL you specified in the request_token call. Once you have a users token and secret you don't need to have them complete the OAuth flow again. Hope that helps, @themattharris On Thu, Sep 23, 2010 at 10:59 AM, Mike the Pike mikeb...@yahoo.com wrote: Just wondering how the tokens are supplied to your script. I have a consumer key and a secret consumer key but as I undersatnd the tokens are only temporary. How do I get these? On Sep 22, 1:18 pm, Abraham Williams 4bra...@gmail.com wrote: This should be all you need:http://gist.github.com/592098 Abraham - Abraham Williams | Hacker Advocate |http://abrah.am @abraham |http://projects.abrah.am|http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Wed, Sep 22, 2010 at 10:10, Daniel Contarini danielcontar...@gmail.comwrote: I'm not living under a rock, but almost it :/ Can you help me answer what i need to change , because i'm reading everything about oauth and i'm still lost :/ On 22 set, 12:03, Tom van der Woerdt i...@tvdw.eu wrote: http://dev.twitter.com, big blue bar at the bottom of the screen? http://dev.twitter.com/announcements Tom PS: Have you been living under a rock? Every major tech blog announced it... (And sorry if I am rude) On 9/22/10 4:52 PM, Daniel Contarini wrote: This code have been working perfectly until the last 20 days +-, i wanna know what i need to change in this code to make it works again. $userpass=My user and pass; //sure to be correct $host = http://twitter.com/statuses/update.xml? status=.urlencode(htmlentities($message)); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERPWD, $user$pass); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, ); $result = curl_exec($ch); $resultArray = curl_getinfo($ch); curl_close($ch); -- 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- Hide quoted text - - Show quoted text - -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- 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
[twitter-dev] Re: Geotagged tweets not appearing in search
Was an strage issue with the geolocation preference at twitter...now fixed, no need to reply. Thanks! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Searching for tweets containing a specific domain
Twitter Search seems to have dropped or lost its ability to parse shortened URLs, as of Sept. 21, which is the key to surfacing domain searches within shortened URLs. Not sure if this is a glitch or an intentional change. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Show User API performance
I haven't been using the Search API for a while while I sorted out my Oath stuff. :) In the meantime, I think I've noticed a significant slow down in show user queries. Is anyone else seeing this or is it my imagination? thanks! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: PHP cURL example for request token?
Hi Taylor! I am indeed trying to use POST, but that's part of my confusion because I think I'm supposed to be sending this all as an Authorization header instead of as post fields? I'm following the Requesting a Token section of a href=http://dev.twitter.com/pages/ auththis page/a for the guidelines. Here is the base signature I am generating: POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_tokenoauth_callback%3Dhttp%253A%252F%252Fwww.MYDOMAIN.com %252Ftwitter%252Ftwitter.php%26oauth_consumer_key %3DMYCOSUMERKEYURLENCODED%26oauth_nonce %3D6a37b19ce4aad7ecd7eac2c7e473722f%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1285281306%26oauth_version%3D1.0 Then I sign it using base64_encode(hash_hmac(sha1, $basesignature, $consumersecret.)) to get the final signature: 7H7pfN6Pk47kzNSTugxeqmKtbZs= So then my request becomes this: oauth_callback=http%3A%2F%2Fwww.MYDOMAIN.com%2Ftwitter %2Ftwitter.php,oauth_consumer_key=MYKEY,oauth_nonce=6a37b19ce4aad7ecd7eac2c7e473722f,oauth_signature=7H7pfN6Pk47kzNSTugxeqmKtbZs %3D,oauth_signature_method=HMAC- SHA1,oauth_timestamp=1285281306,oauth_version=1.0 Then I URL-encode that once more for the final request. Now I'm not sure how to use that with cURL. The Twitter Dev page I follow says to add Authorization: OAuth to the beginning of all of that. So do I tack that on the beginning and send that as an HTTPHEADER? Other places (Stack Overflow, etc) have said to send it (without the Authorization header) as POSTFIELDS. So I'm pretty confused as to how to send this data to Twitter! Thanks again! Michael On Sep 23, 10:16 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Michael, Your Authorization header should start with OAuth as opposed to Oauth... but that may or may not be the problem here. What are you using to generate the OAuth authorization header / signature? Are you using POST or GET in this context? It looks like your curl request is in the form of a GET -- perhaps your signature base string indicates a POST? Can you share what the base string looks like? Taylor On Thu, Sep 23, 2010 at 12:26 AM, Michael mich...@glowingpixel.com wrote: Hello! I have been banging my head for a few hours over this, and can't seem to figure it out. When requesting the unauthorized request token from OAuth, I can't seem to be able to get past the Failed to validate oauth signature and token error. I have used that Google tool to verify that I am signing it properly. I think it's probably because I'm not using cURL correctly? Here is an example header I am generating: Authorization: Oauth oauth_callback=http%3A%2F %2Fwww.callbackaddress.com%2Ftwitter %2Ftwitter.php,oauth_consumer_key=MYKEY,oauth_nonce=3e3ab32b8bdf10d739d 923c02cfe0ca9,oauth_signature=iU53Edz7HGkQRe4Dt6MVsEVlNGk %3D,oauth_signature_method=HMAC- SHA1,oauth_timestamp=1285226385,oauth_version=1.0 In PHP that's assigned to a $header variable, then I execute this, which is probably where it fails: --- $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $request_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array($header,Content-Type: application/x-www-form-urlencoded)); $result = curl_exec($ch); --- What more do I need to do? Thanks for any help. -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] How do I create a developer account?
I want to register an application, but when I click on the link, it takes me to a sign in page. I can't find anywhere to create an account. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] How do I create a developer account?
Hi CSKim, You can use your regular old Twitter account, or otherwise create a new Twitter account. Apps belong to Twitter accounts. Sorry that this isn't clear! Taylor On Thu, Sep 23, 2010 at 4:40 PM, CSKim kim.maccorm...@gmail.com wrote: I want to register an application, but when I click on the link, it takes me to a sign in page. I can't find anywhere to create an account. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] How to retrieve more recent popular tweets in search api?
Hi there, By default, the search api will return only three most popular tweets from http://search.twitter.com/search.json?q=%23newtwitterresult_type=popular. I'm wondering are there any way I can get more popular tweets? For example, the popular tweets in the last 24 hours? I've tried to add a since_id but it doesn't seem to help. Thanks, Alex -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] How to retrieve more recent popular tweets in search api?
There isn't a way for this through the Search API at this time. While it's not a perfect solution, there is a @toptweets user at http://twitter.com/toptweets that retweets Top Tweets -- ripe for obtaining the kind of tweets you're looking for.. Taylor On Thu, Sep 23, 2010 at 5:41 PM, Alex Dong alex.d...@gmail.com wrote: Hi there, By default, the search api will return only three most popular tweets from http://search.twitter.com/search.json?q=%23newtwitterresult_type=popular. I'm wondering are there any way I can get more popular tweets? For example, the popular tweets in the last 24 hours? I've tried to add a since_id but it doesn't seem to help. Thanks, Alex -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: How to retrieve more recent popular tweets in search api?
Taylor, thanks for the quick reply. Tweet id:25330325246 shows up in http://search.twitter.com/search.json?q=newtwitterresult_type=popular but it's not in http://search.twitter.com/search?tag=newtwitterfrom=toptweets. Here are the metadata fields: metadata:{recent_retweets: 1000,result_type:popular} Wondering is this a latency issue? Or maybe the popular tweets is only inspecting into a fix sized time window? More context: our use case is to provide a list of top tweets for a large conference. So that the attendees can hop in and check out which new tweets they should pay attention to without spending too much time reading through tweets. Alex On Sep 24, 8:47 am, Taylor Singletary taylorsinglet...@twitter.com wrote: There isn't a way for this through the Search API at this time. While it's not a perfect solution, there is a @toptweets user athttp://twitter.com/toptweetsthat retweets Top Tweets -- ripe for obtaining the kind of tweets you're looking for.. Taylor On Thu, Sep 23, 2010 at 5:41 PM, Alex Dong alex.d...@gmail.com wrote: Hi there, By default, the search api will return only three most popular tweets from http://search.twitter.com/search.json?q=%23newtwitterresult_type=pop I'm wondering are there any way I can get more popular tweets? For example, the popular tweets in the last 24 hours? I've tried to add a since_id but it doesn't seem to help. Thanks, Alex -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: why it doesn't work: GET statuses/retweets/:id
hi Taylor, thanks very much. I found the problem points: if the desired status(id) has not been retweeted, it responses result as following. --- 在 2010年9月23日 下午10:25,Taylor Singletary taylorsinglet...@twitter.com写道: Can you provide the name of the account that performed the retweet action on status ID 25293485057? Taylor 2010/9/23 玉柱九天 yuzhujiut...@gmail.com and while i use the GET request, it response the same result. GET request: my url, prm(parameters) as following: char *tweet_retweets_response = NULL; debug trace: tweet_retweets_url = http://twitter.com/statuses/retweets/25293485057.xml?oauth_consumer_key=95Sw32n3TIUKtE8U4kbAoauth_nonce=iup8Ydi44p4Vaujb8a9booauth_signature_method=HMAC-SHA1oauth_timestamp=1285242911oauth_token=172312929-C4kebETEWK2XWA8dCzoSMRcKMDdnecg3be2EqsTroauth_version=1.0oauth_signature=GNSdETwJzEVSr145hCJvG8vXH2M%3D debug trace: tweet_retweets_prm = (null) and call: tweet_retweets_response = oauth_http_get(tweet_retweets_url, tweet_retweets_prm); and the response is: debug trace: tweet_retweets_response = ?xml version=1.0 encoding=UTF-8? statuses type=array /statuses and then return to my web, the tweet(status_id = 25293485057) doesn't be retweeted, why? - 2010/9/23 yuzhujiutian yuzhujiut...@gmail.com hi all: my url, prm(parameters) as following: char *tweet_retweets_response = NULL; debug trace: tweet_retweets_url = http://api.twitter.com/1/statuses/retweets/25293485057.xml debug trace: tweet_retweets_prm = oauth_consumer_key=**oauth_nonce=UuG5RuilHNOJWdbcM5iSoauth_signature_method=HMAC- SHA1oauth_timestamp=1285241013oauth_token=**oauth_version=1.0oauth_signature=gSAo %2BWTyQauzludvPD%2Fz8UrhfDw%3D and call: tweet_retweets_response = oauth_http_post(tweet_retweets_url, tweet_retweets_prm); and the response is: debug trace: tweet_retweets_response = ?xml version=1.0 encoding=UTF-8? statuses type=array /statuses and then return to my web, the tweet(status_id = 25293485057) doesn't be retweeted, why? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] oauth and tokens what up with that?
you can refer to the demo program gridtwit: http://code.google.com/p/gridtwit/ It details oauth authentication flow and coding(c++, liboauth). 2010/9/24 Taylor Singletary taylorsinglet...@twitter.com Hi Mike, We have a fairly easy path to acquiring an access token just for your own account/application combination. You can find out more about it at http://dev.twitter.com/pages/oauth_single_token Taylor On Thu, Sep 23, 2010 at 10:33 AM, Mike the Pike mikeb...@yahoo.comwrote: require_once('twitteroauth.php'); $connection = new TwitterOAuth('app consumer key', 'app consumer secret', 'my access token', 'my access token secret'); $connection-format = 'xml'; $result = $connection-post('statuses/update', array('status' = $message)); $resultArray = $connection-http_info; This is my script. I stole it from someone on this group. Much appreciated. I registered my app and got the consumer key and secret consumer key. As I understand it I also require 2 tokens to authenticate with oauth and typically from the apps I've already built these are generated when I log in. However, i don't want to have to log in there I just want to genereate a feed that I can compare to a criteria and output should it match that criteria. This script looks promising but how do I get those tokens? Any help would be appreciated. Thanks, Mike the Pike -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] OAuth request token URL
you can refer to the demo program gridtwit: http://code.google.com/p/gridtwit/ especially the files: gridtwit_client_oauth_demo\Demo_Description.doc and gridtwit_client_oauth_demo\liboauth-0.9.1\tests\gridtwit.c It details oauth authentication flow and coding(c++, liboauth). -- 2010/9/23 Taylor Singletary taylorsinglet...@twitter.com Our system is quirky. There technically isn't a boolean flag set on an application that dictates whether it's a web or desktop application -- instead the boolean is a derived value based on the presence of a default callback URL. Think of this callback URL as a placeholder -- while it should have some relevance to your application, it doesn't need to strictly correlate to an actual callback location. To practice correct OAuth, you still need to provide an oauth_callback on the request token step of the OAuth negotiation phase. The callback provided at that time always takes precedence. Taylor On Thu, Sep 23, 2010 at 12:23 AM, Scott Wilcox sc...@dor.ky wrote: Yes, you can dynamically provide a callback URL, but you still need to enter one in the applications settings. Scott. On 23 Sep 2010, at 07:34, kengimel wrote: Hi, I recently register my twitter application and obtained my OAuth consumer credentials. However i noticed that when registering i choose the browser option as my application will run solely via a web browser, But to my surprise when i dispatched this: POST https://twitter.com/oauth/request_token, I recieved this error mesage from my console. ?xml version=1.0 encoding=UTF-8? hash request/oauth/request_token/request errorDesktop applications only support the oauth_callback value 'oob'/error /hash I have tried several times to select the browser option on my application's settings page, but it says it requires me to define a callback URL, which according to the OAuth standard, allows me to dynamically define my callback URL in the request token stage. can someone tell me what i may be doing wrongly. Cheers -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk