[twitter-dev] Invalid token authentication failed when reply_to_status_id set
Hello all! ,Jaisen, I'm trying to use your EpiTwitter php class to communicate with the twitter API. This is my php code: $twitterObj = new EpiTwitter($consumer_key, $consumer_secret, USER_TOKEN, USER_SECRET_TOKEN); $userInfo = $twitterObj-get_accountVerify_credentials(); $twitterObj-post_statusesUpdate(array(status = $status, in_reply_to_status_id = $replytoid)); The first request (acount/verify_credential) returns fine, following is the http request: GET /account/verify_credentials.json HTTP/1.1 Host: twitter.com Accept: */* Authorization: OAuth realm=/account/ verify_credentials.json,oauth_consumer_key=,oauth_token=,oauth_nonce=XX,oauth_timestamp=1242578551,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature= The second request (statuses/update) returns with Failed to validate oauth signature or token : POST /statuses/update.json HTTP/1.1 Host: twitter.com Accept: */* Authorization: OAuth realm=/statuses/ update.json,oauth_consumer_key=,oauth_token=X,oauth_nonce=,oauth_timestamp=1242578551,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature= Content-Length: 81 Content-Type: application/x-www-form-urlencoded status=%40LeeronShalev+testing%3A+One%2C +Twoamp;in_reply_to_status_id=1786937496 Thanks in advance,
[twitter-dev] Vector logo
Hi. Where can I find a vector twitter logo (eps or ai)?
[twitter-dev] Re: How would I automatically DM to a person once theyve followed me?
Please, if you do this and allow other users to use it, enable opt-out for those that don't want to receive the auto-dms. We're going to start promoting these services that enable an opt-out for this stuff on SocialToo soon (let me know if your service provides this - TweetLater is the only one I'm aware of so far unfortunately). It's general good practice and gives people choice. @Jesse On Mon, May 18, 2009 at 3:57 PM, RTuosto ryantuo...@gmail.com wrote: Trying to automate this feature. Something like how TweetLater has where when a user follows me it automatically sends them a direct message to welcome them as my friend.
[twitter-dev] Re: Vector logo
here you can find lots of vector twitter icons and logos http://vector-art.blogspot.com/2009/01/over-hundred-twitter-follow-me-icons.html On May 20, 12:43 am, Cybertomten daniel.ostv...@gmail.com wrote: Hi. Where can I find a vector twitter logo (eps or ai)?
[twitter-dev] Re: How would I automatically DM to a person once theyve followed me?
How could a user opt out for this? It only happens one time, and automatically when they follow a user back. I'd be happy to enable such a feature, just not seeing how it can be done. On Wed, May 20, 2009 at 1:56 AM, Jesse Stay jesses...@gmail.com wrote: Please, if you do this and allow other users to use it, enable opt-out for those that don't want to receive the auto-dms. We're going to start promoting these services that enable an opt-out for this stuff on SocialToo soon (let me know if your service provides this - TweetLater is the only one I'm aware of so far unfortunately). It's general good practice and gives people choice. @Jesse On Mon, May 18, 2009 at 3:57 PM, RTuosto ryantuo...@gmail.com wrote: Trying to automate this feature. Something like how TweetLater has where when a user follows me it automatically sends them a direct message to welcome them as my friend.
[twitter-dev] XML errors when getting a list of user's followers (PHP/CURL)
I'm getting the following 3 errors: Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 62: parser error : Entity 'copy' not defined in C:\wamp \www\TTT1\includes\twitter.functions.php on line 96 Warning: simplexml_load_string() [function.simplexml-load-string]: li class=firstcopy; 2009 Twitter/li in C:\wamp\www\TTT1\includes \twitter.functions.php on line 96 Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in C:\wamp\www\TTT1\includes\twitter.functions.php on line 96 Here's my code: Function getFollowers($id, $login) { $url = http://twitter.com/followers/ids.xml?user_id=; . $id; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_USERPWD, $login); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); $xml = simplexml_load_string($result);// Line 96 $followers = array(); Foreach ($xml-id as $id) { array_push($followers, $id); } return $followers; } Is this a problem on my end or is the xml document not loading properly? It seems to load fine in my browser, and sometimes it works. I'm even doing a rate-limit verification before calling this function to make sure the user can do it. What to do?
[twitter-dev] How its possible to get my tweets via the API in reall time almost to my site?
Hi; I want to have something similar as i FrienFeed.com that if I post a tweet it gets to Friendfeed almost at same time: - is Friendfeed calling twitter API continuously? - is there a way that I can know once a post in twitter to them let me know or call me back to get the new tweet? Thanks,
[twitter-dev] Re: How to count to 140: or, characters vs. bytes vs. entities, third strike
I think everyone would like an open system for doing this :) On May 15, 9:58 pm, Eric Martin emarti...@gmail.com wrote: I'd be interested to see a document that details the standards for this as well. On May 15, 12:01 pm, leoboiko leobo...@gmail.com wrote: On May 15, 2:03 pm, leoboiko leobo...@gmail.com wrote: while one with 71 UTF-8 bytes might not (if they’re all non-GSM, say, ‘ç’ repeated 71 times). Sorry, that was a bad example: 71 ‘ç’s take up 142 bytes in UTF-8, not 71. Consider instead 71 ‘^’ (or ‘\’, ‘[’ c.). These take one byte in UTF-8, but their shortest encoding in SMS is two-byte (in GSM). So the 71-byte UTF-8 string would take more than 140 bytes as SMS and not fit an SMS. Why that matters? Consider a twitter update like this: @d00d: in the console, type cat ~/file.sql | tr [:upper:] [:lower:] | less. then you cand read the sql commands without the annoying caps That looks like a perfectly reasonable 140-character UTF-8 string, so Twitter won't truncate it or warn about sending a short version. But its SMS encoding would take some 147 bytes, so the last words would be truncated. -- Leonardo Boikohttp://namakajiri.net
[twitter-dev] Re: Anti Spam
Very true and exactly what we plan to do, although when summed up you find that a scoring system is best handled on a server and not a client, i.e. Twitter Search. In the mean time we've got enough things we can do real-time in javascript for our 'filtered' feed. In our case we're dealing with events/trending topics which can have large amounts of data so run-time web app processing time becomes an issue. On May 19, 2:49 pm, Abraham Williams 4bra...@gmail.com wrote: On Tue, May 19, 2009 at 06:06, sillyt...@googlemail.com I know these are just examples but both of those metrics are available to you and nothing is stopping you from restricting data from accounts based on those metrics. -- Abraham Williams |http://the.hackerconundrum.com Hacker |http://abrah.am|http://twitter.com/abraham Web608 | Community Evangelist |http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Mountain View, CA, United States
[twitter-dev] Re: Public ID to Name Lookup website?
My apologies for being unclear. What I would like is something very much like http://twitter.com/users/show.xml?user_id=1401881 except in HTML, or some presentation style a little more user friendly to the non-developer who probably doesn't know anything about the API and wouldn't want raw XML in their browser. (Perhaps it will help to know that what I am looking to do is be able to provide a link in TwitReports which a user can click on and find current info about a follower, even if s/he has changed their Twitter name since the TwitReport was sent.) TjL
[twitter-dev] Re: Public ID to Name Lookup website?
On 5/20/09 9:48 AM, TjL wrote: (Perhaps it will help to know that what I am looking to do is be able to provide a link in TwitReports which a user can click on and find current info about a follower, even if s/he has changed their Twitter name since the TwitReport was sent.) Twitter Karma has a fairly large database of users. I could create an URL that provided redirection, something like: http://dossy.org/twitter/karma/user.adp?id=109293 would redirect to: http://twitter.com/dossy Of course, something like this would be so incredibly useful if Twitter would just provide such a mechanism AND they already HAVE all the data. Is this of any real interest for me to set up such a redirection URL? -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Re: Vector logo
https://twitter.com/about#download_logo Jason Emerick The information transmitted (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is intended only for the person(s) or entity/entities to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. On Wed, May 20, 2009 at 3:43 AM, Cybertomten daniel.ostv...@gmail.comwrote: Hi. Where can I find a vector twitter logo (eps or ai)?
[twitter-dev] Re: Our own redirecting URL is being changed to a bit.ly URL
On Tue, May 19, 2009 at 10:48 PM, Cameron Kaiser spec...@floodgap.com wrote: The best you can do is use the bit.ly API to un-shorten the link and grab your URL key from there. Have a look at the /expand method in their API: http://code.google.com/p/bitly-api/wiki/ApiDocumentation Or, implement your own URL shortening scheme (either internally, or using a specific service that meets your needs), with the assumption that the shortening will occur and at least this way you can control the situation under how the shortening is handled. I believe that Twitter will shorten links over 30 characters, but this does not *always* seem to be the case. Your best bet (IMO) is to determine which service you want to use and shorten the links yourself. I started putting together a list of them not too long ago and came up with these: bit.ly xrl.us tr.im snipr.com tinyarro.ws tinyurl.com icanhaz.com budurl.com There are, no doubt, others.
[twitter-dev] Re: How would I automatically DM to a person once theyve followed me?
Ryan, yeah, check out how TweetLater is doing it - http://twitter.com/optout. They require a user to follow @optout, and @optout follows the user back. Then the user just needs to DM @optout and @optout detects the Twitter username and prevents any of their users from sending auto-dms to the users on that list. Jesse On Wed, May 20, 2009 at 3:06 AM, Ryan Tuosto ryantuo...@gmail.com wrote: How could a user opt out for this? It only happens one time, and automatically when they follow a user back. I'd be happy to enable such a feature, just not seeing how it can be done. On Wed, May 20, 2009 at 1:56 AM, Jesse Stay jesses...@gmail.com wrote: Please, if you do this and allow other users to use it, enable opt-out for those that don't want to receive the auto-dms. We're going to start promoting these services that enable an opt-out for this stuff on SocialToo soon (let me know if your service provides this - TweetLater is the only one I'm aware of so far unfortunately). It's general good practice and gives people choice. @Jesse On Mon, May 18, 2009 at 3:57 PM, RTuosto ryantuo...@gmail.com wrote: Trying to automate this feature. Something like how TweetLater has where when a user follows me it automatically sends them a direct message to welcome them as my friend.
[twitter-dev] Re: How its possible to get my tweets via the API in reall time almost to my site?
Check our the /follow method in the streaming API. Include your user_id(s) in the followers list and we'll push updates to the listening point of your choice. http://apiwiki.twitter.com/Streaming-API-Documentation Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Wed, May 20, 2009 at 4:02 AM, techtimes techf...@gmail.com wrote: Hi; I want to have something similar as i FrienFeed.com that if I post a tweet it gets to Friendfeed almost at same time: - is Friendfeed calling twitter API continuously? - is there a way that I can know once a post in twitter to them let me know or call me back to get the new tweet? Thanks,
[twitter-dev] Re: Our own redirecting URL is being changed to a bit.ly URL
They were not doing this (at least to my URLS) on Monday and they were on Tuesday... Best, Nancy On May 19, 9:59 pm, Chad Etzel jazzyc...@gmail.com wrote: On Tue, May 19, 2009 at 10:47 PM, Abraham Williams 4bra...@gmail.com wrote: When did Twitter switch to usingbit.lyanyways? Sometime last week, if I recall. Looking at the stats for spammy links is incredible... people will click anything (tho I can't tell how many of the clicks are actually other twitter link tracking services like twitturly, etc). -Chad
[twitter-dev] Re: Our own redirecting URL is being changed to a bit.ly URL
Thanks very much for the advice! I've done as you suggested and added a call to the bit.ly API to shorten our URL and that seems to be working. If this is a feature, it is a very irritating one, I must say, but oh well. Best, Nancy On May 20, 9:04 am, Howard Siegel hsie...@gmail.com wrote: On Wed, May 20, 2009 at 06:59, TjL luo...@gmail.com wrote: Your best bet (IMO) is to determine which service you want to use and shorten the links yourself. I started putting together a list of them not too long ago and came up with these: bit.ly xrl.us tr.im snipr.com tinyarro.ws tinyurl.com icanhaz.com budurl.com There are, no doubt, others. is.gd
[twitter-dev] Re: How would I automatically DM to a person once theyve followed me?
twitter has a hidden spi from public use,i guess On May 20, 5:06 pm, Ryan Tuosto ryantuo...@gmail.com wrote: How could a user opt out for this? It only happens one time, and automatically when they follow a user back. I'd be happy to enable such a feature, just not seeing how it can be done. On Wed, May 20, 2009 at 1:56 AM, Jesse Stay jesses...@gmail.com wrote: Please, if you do this and allow other users to use it, enable opt-out for those that don't want to receive the auto-dms. We're going to start promoting these services that enable an opt-out for this stuff on SocialToo soon (let me know if your service provides this - TweetLater is the only one I'm aware of so far unfortunately). It's general good practice and gives people choice. @Jesse On Mon, May 18, 2009 at 3:57 PM, RTuosto ryantuo...@gmail.com wrote: Trying to automate this feature. Something like how TweetLater has where when a user follows me it automatically sends them a direct message to welcome them as my friend.
[twitter-dev] Re: How its possible to get my tweets via the API in reall time almost to my site?
Or, if you have a public account and want to just add a drop-in javascript widget, check out http://tweetgrid.com/widget/ and set jtw_search = from:username; example at http://jazzychad.net/rollthedice/ (disclosure, I wrote this widget) -Chad On Wed, May 20, 2009 at 12:23 PM, Doug Williams d...@twitter.com wrote: Check our the /follow method in the streaming API. Include your user_id(s) in the followers list and we'll push updates to the listening point of your choice. http://apiwiki.twitter.com/Streaming-API-Documentation Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Wed, May 20, 2009 at 4:02 AM, techtimes techf...@gmail.com wrote: Hi; I want to have something similar as i FrienFeed.com that if I post a tweet it gets to Friendfeed almost at same time: - is Friendfeed calling twitter API continuously? - is there a way that I can know once a post in twitter to them let me know or call me back to get the new tweet? Thanks,
[twitter-dev] Re: How to count to 140: or, characters vs. bytes vs. entities, third strike
On May 15, 2:03 pm, leoboiko leobo...@gmail.com wrote: Later I intend to thoroughly replace “characters” by “bytes” (or “UTF-8 byte count”, c.) in the API wiki. My bad; it seems the API wiki is not publicly-writable? Could someone with write access do this? -- Leonardo Boiko http://namakajiri.net
[twitter-dev] Library for .NET 1.1
Is there a Twitter API library for .NET Framework 1.1? I have only found libraries for 2.0 and higher. Thanks.
[twitter-dev] Re: XML errors when getting a list of user's followers (PHP/CURL)
li class=firstcopy; 2009 Twitter/li Is from from an html page (look at the bottom of http://twitter.com) It looks like some times you are not getting xml returned. Can you post a dump of the what the twitter is returning when the error happens? Also the http status from the call. 2009/5/20 RTuosto ryantuo...@gmail.com I'm getting the following 3 errors: Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 62: parser error : Entity 'copy' not defined in C:\wamp \www\TTT1\includes\twitter.functions.php on line 96 Warning: simplexml_load_string() [function.simplexml-load-string]: li class=firstcopy; 2009 Twitter/li in C:\wamp\www\TTT1\includes \twitter.functions.php on line 96 Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in C:\wamp\www\TTT1\includes\twitter.functions.php on line 96 Here's my code: Function getFollowers($id, $login) { $url = http://twitter.com/followers/ids.xml?user_id=; . $id; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_USERPWD, $login); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); $xml = simplexml_load_string($result);// Line 96 $followers = array(); Foreach ($xml-id as $id) { array_push($followers, $id); } return $followers; } Is this a problem on my end or is the xml document not loading properly? It seems to load fine in my browser, and sometimes it works. I'm even doing a rate-limit verification before calling this function to make sure the user can do it. What to do? -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from San Francisco, California, United States
[twitter-dev] Re: Invalid token authentication failed when reply_to_status_id set
Can you confirm if post_statusesUpdate() works without the 'in_reply_to_status_id' parameter? 2009/5/19 alon alon.car...@gmail.com Hello all! ,Jaisen, I'm trying to use your EpiTwitter php class to communicate with the twitter API. This is my php code: $twitterObj = new EpiTwitter($consumer_key, $consumer_secret, USER_TOKEN, USER_SECRET_TOKEN); $userInfo = $twitterObj-get_accountVerify_credentials(); $twitterObj-post_statusesUpdate(array(status = $status, in_reply_to_status_id = $replytoid)); The first request (acount/verify_credential) returns fine, following is the http request: GET /account/verify_credentials.json HTTP/1.1 Host: twitter.com Accept: */* Authorization: OAuth realm=/account/ verify_credentials.json,oauth_consumer_key=,oauth_token=,oauth_nonce=XX,oauth_timestamp=1242578551,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature= The second request (statuses/update) returns with Failed to validate oauth signature or token : POST /statuses/update.json HTTP/1.1 Host: twitter.com Accept: */* Authorization: OAuth realm=/statuses/ update.json,oauth_consumer_key=,oauth_token=X,oauth_nonce=,oauth_timestamp=1242578551,oauth_signature_method=HMAC- SHA1,oauth_version=1.0,oauth_signature= Content-Length: 81 Content-Type: application/x-www-form-urlencoded status=%40LeeronShalev+testing%3A+One%2C +Twoamp;in_reply_to_status_id=1786937496 Thanks in advance, -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from San Francisco, California, United States
[twitter-dev] Public timeline sample data set.
Hi there, While working with the Twitter API last night, I found myself thinking of some crazy ideas for use of the full public timeline feed. Proving these ideas would be pretty simple given a sample of the timeline on my laptop, and so I was wondering if such a thing is available? Basically, I'd like a copy of about 24 hours worth of the equivalent of the XMPP feed from some arbitrary moment in time, perhaps with a snapshot of the social graph for the people that tweeted during that time frame. If something like this isn't already available for research purposes, I think it'd be a wonderful contribution on Twitter's part, perhaps even if some anonymization was applied (although this seems pointless given it *is* the public timeline). If nothing else, it'd allow people like me (hacker with a laptop and 4gb of RAM) to quickly come up with much cooler uses for the Twitter data. :) Thoughts? David.