Re: [twitter-dev] Add My Application In Twitter
Just visit http://twitter.com/oauth Its all about twitter oauth applications :) -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] How can we change ownership of an app?
On Thu, Dec 24, 2009 at 3:45 AM, chrisLiveFyre cbecker...@gmail.com wrote: This has been asked before but not answered. How can we move ownership of an app to a different twitter user account? Thanks, Chris I had the same issue. I just removed the app. Then add the same name in other account. Then I updated the tokens. It worked. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] small update c client
If you get 302 it'll contain a Location header. Make request to that location again. You are requesting to twitter.com. You should be using api.twitter.com/1 instead. Its better you use curl in C. Here is a code snippet for you http://pastie.org/752884 Its generated by curl. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
[twitter-dev] connection to 168.143.162.100:80 was ESTABLISHED for 6 hours
Hello, My cron send friendship/destroy request but twitter didn't send any reply. And it didn't close http connection too. I didn't use any timeout so the connection was ESTABLISHED for more than 6 hours. What could be the reason for this? Network issue? -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] error Unable to connect to the remote server Status failed
What is the http response code you get? Do you get any error message in response body like following? ?xml version=1.0 encoding=UTF-8? hash request/statuses/update.xml/request errorCould not authenticate you./error /hash If you have curl add -iv switch to get more info about the request then paste it. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
[twitter-dev] 168.143.162.36... Connection timed out
Why is this? $ curl -iv http://twitter.com/shiplu * About to connect() to twitter.com port 80 (#0) * Trying 168.143.162.36... Connection timed out * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host I am facing this for almost 3-4 days. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] 168.143.162.36... Connection timed out
Telnet $ telnet 168.143.162.36 80 Trying 168.143.162.36... telnet: Unable to connect to remote host: Connection timed out And traceroute traceroute --max-hops=64 168.143.162.36 traceroute to 168.143.162.36 (168.143.162.36), 64 hops max, 40 byte packets 1 10.163.145.33 (10.163.145.33) 586.913 ms 603.874 ms 682.882 ms 2 10.163.145.34 (10.163.145.34) 682.872 ms 742.845 ms 783.829 ms 3 192.168.226.81 (192.168.226.81) 802.824 ms 825.815 ms 1042.790 ms 4 192.168.250.10 (192.168.250.10) 1083.787 ms 1144.770 ms 1263.762 ms 5 10.10.205.14 (10.10.205.14) 1303.748 ms 1304.740 ms 1485.743 ms 6 202.56.4.2 (202.56.4.2) 1485.733 ms 866.271 ms 923.607 ms 7 202.56.5.25 (202.56.5.25) 942.598 ms 980.567 ms 1003.552 ms 8 * * * 9 * * * 10 * * * 11 * * * 12 * * * 13 * * * 14 * * * 15 * * * 16 * * * 17 * * * 18 * * * 19 * * * 20 * * * 21 * * * 22 * * * 23 * * * 24 * * * 25 * * * 26 * * * 27 * * * 28 * * * 29 * * * 30 * * * 31 * * * 32 * * * 33 * * * 34 * * * 35 * * * 36 * * * 37 * * * 38 * * * 39 * * * 40 * * * 41 * * * 42 * * * 43 * * * 44 * * * 45 * * * 46 * * * 47 * * * 48 * * * 49 * * * 50 * * * 51 * * * 52 * * * 53 * * * 54 * * * 55 * * * 56 * * * 57 * * * 58 * * * 59 * * * 60 * * * 61 * * * 62 * * * 63 * * * 64 * * * -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] 168.143.162.36... Connection timed out
Used all these ips. 128.121.146.100 128.121.146.228 128.121.243.228 168.143.161.20 168.143.162.116 168.143.162.36 168.143.162.52 168.143.162.68 168.143.171.84 Result is same. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] 168.143.162.36... Connection timed out
My external IP address is 202.56.7.116 Its dynamic. 202.56.7.* part is fixed. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] 168.143.162.36... Connection timed out
On Mon, Dec 21, 2009 at 2:52 AM, Andrew Badera and...@badera.us wrote: Probably better to email your IP address directly and not display it publicly ... Dont worry. I dont own them. I just check some of my peers of same ISP. None of them is having the problem. It seems somewhere something is broken. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
[twitter-dev] More headers along with 403
If its 403 it means one of the update limits (1k updates/day, 250 dms/day, 150 requests/hour) is hit. These are UPDATE limits. That is all the requests will be POST. So does this 150 requests/hour mean 150 POST reqeust/hour actually?? I am confused. Last time I was ratelimited by GET request, I got 400 status code. Now as its 403, It seems its for POST requests. Will there be any extra headers along with 403 so that I can handle the error properly? -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] Re: Rate Limit Whitelisting Change
If your whitelisted ip is w.w.w.w and outgoing interface is o.o.o.o For any request twitter will see o.o.o.o as your ip address. Not w.w.w.w if you have w.w.w.w interface attached to your host and its an Internet gateway but not the default gateway (o.o.o.o) you can bind all the twitter connection from w.w.w.w interface. In curl we do this by curl --interface w.w.w.w http://twitter.com/account/rate_limit_status.xml -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] Oauth using api.twitter.com vs twitter.com
On Fri, Dec 18, 2009 at 2:22 AM, Josh Bleecher Snyder joshar...@gmail.com wrote: Hi all, The tweepy twitter client uses api.twitter.com for the host for oauth calls: REQUEST_TOKEN_URL = 'http://api.twitter.com/oauth/request_token' AUTHORIZATION_URL = 'http://api.twitter.com/oauth/authorize' AUTHENTICATE_URL = 'http://api.twitter.com/oauth/authenticate' ACCESS_TOKEN_URL = 'http://api.twitter.com/oauth/access_token' I've found that this works, until the user tries to sign out or sign up during the authorization; if this happens, they get a 404. If, however, twitter.com is used as the host: I think this happens due to cookie. People sign in twitter.com. not in api.twitter.com. When a user already signed in, the cookie's domain is twitter.com. Now if you redirect to http://api.twitter.com/oauth/authorize, browser wont load the cookie as its from twitter.com. It'll try to find cookies from api.twitter.com. But there is no cookie. So you have to sign in again I guess. Its better to use twitter.com instead of api.twitter.com when its one of those 4 oauth urls. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] Current policy on following apps
On Fri, Dec 18, 2009 at 3:57 AM, Adam Green a...@vibemetrix.com wrote: Select the most active Twitter users in a specific market. Follow a small number, perhaps 50, per day. If these follows are not followed back in a week, unfollow them. The above part seems abusive. My personal opinion though. Cause you starts to follow to get follower. Not to read their tweets. :P -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] friendships/create method and 403 ambiguity
On Wed, Dec 16, 2009 at 6:02 AM, Marcel Molina mar...@twitter.com wrote: In the long term we plan to add internal error codes to every non 2** response so that the consumer can unambiguously know what error they got without munging error message strings (who's language might be changed innocently not knowing the consequences). That'd be great. Currently I am using regular expression /Could\s+not\s+follow\s+user/i If there was any header like X-API-STATUS or X-TWITTER-ERRNO it'd be so easier to handle error. Thanks -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
[twitter-dev] friendships/create method and 403 ambiguity
There are two phrases about friendships/create. 1. If you are already friends with the user an HTTP 403 will be returned. 2. This method is subject to [1]update limits. An HTTP 403 will be returned if this limit as been hit. How to differ those two status codes? [1] http://help.twitter.com/forums/10711/entries/15364 -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] BLACKLISTING
On Fri, Dec 11, 2009 at 3:48 PM, tweaksilver karlodegr...@gmail.com wrote: Hi Guys, Just want to ask, If my IP is not whitelisted and my application accidentally kept hitting the rate limit, is my IP going to be blacklisted? Thank you. If your app's behavior appears to be spamming It will be blacklisted. No doubt. It doesn't need to be a twitter staff to understand this. I need to know this because I've been thinking about whitelisting our IP. The thing whithin our network, people are using other application such as tweetdeck , etc., and my application's rate limit is being affected. -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] Re: simply verify that user exists
On Mon, Dec 7, 2009 at 4:31 AM, Feras Allaou feras.all...@gmail.com wrote: Well , this is a useful Idea but I think you should write a lot of line for parsing the XML code no ? If its http://twitter.com/users/show.json?screen_name=FOO then in PHP there is a function json_decode(). Its better than XML I think -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] delete status with curl php
curl_setopt($ch, CURLOPT_HTTPHEADER, array( Expect: ) ); -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] Are lists having problems?
The error is Something is technically wrong. Thanks for noticing we're going to fix it up and have things back to normal soon -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] Testing whitelisted IP
I know what are you talking about. But see this, $ curl -i -u whitelistedaccount:PASSWORD 'http://twitter.com/search.json?q=Intel' HTTP/1.1 200 OK Date: Fri, 27 Nov 2009 20:30:55 GMT Server: hi X-RateLimit-Limit: 2 X-Transaction: 1259353855-57171-17627 Status: 200 OK ETag: 23053bbf2bc88e86b55b1c89552ff254 Last-Modified: Fri, 27 Nov 2009 20:30:55 GMT X-RateLimit-Remaining: 1 X-Runtime: 0.11207 Content-Type: application/json; charset=utf-8 Pragma: no-cache Content-Length: 7396 Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 Expires: Tue, 31 Mar 1981 05:00:00 GMT X-Revision: DEV X-RateLimit-Reset: 1259357455 Set-Cookie: _twitter_sess=BAh7CjoTcGFzc3dvcmRfdG9rZW4iLWFiNDlkNmMzZWJkNzBlMWMzMDExMjJi%250AYjAwZGI0YmU5NDhlZjI2MjY6EXRyYW5zX3Byb21wdDA6CXVzZXJpBIdCWgI6%250AB2lkIiUxOTc1N2Q0MGM0YWFmZjVjMjZiZjVlNTk4N2I0ZTlhZCIKZmxhc2hJ%250AQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVz%250AZWR7AA%253D%253D--f9c9801cad717aa2fd4138a43b80cfb73ade35ef; domain=.twitter.com; path=/ Vary: Accept-Encoding Connection: close -- A K M Mokaddim Talks: http://talk.cmyweb.net Follow: http://twitter.com/shiplu SUST Programmers help desk. http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
[twitter-dev] Testing whitelisted IP
If I send the following query to twitter from my whitelisted IP I get X-RateLimit-Limi: 150. Shouldn't it be 20,000 ? $ curl -i 'http://twitter.com/search.json?q=Intel' HTTP/1.1 200 OK Date: Wed, 25 Nov 2009 20:57:24 GMT Server: hi X-RateLimit-Limit: 150 X-Transaction: 1259182644-48393-13844 Status: 200 OK ETag: fcaf33d8c4c24d59d2f0fc1ec99e20f8 Last-Modified: Wed, 25 Nov 2009 20:57:24 GMT X-RateLimit-Remaining: 147 X-Runtime: 0.05157 Content-Type: application/json; charset=utf-8 Pragma: no-cache Content-Length: 7594 Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 Expires: Tue, 31 Mar 1981 05:00:00 GMT X-Revision: DEV X-RateLimit-Reset: 1259182760 Set-Cookie: _twitter_sess=BAh7CDoRdHJhbnNfcHJvbXB0MDoHaWQiJWVlY2M5MWU5MzE3YjhjMTQwMTNm%250AZWE1MmYxMmU0NDViIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz%250AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--6fa4c4ce1ea2802dfeccc88ea41b96d299d59707; domain=.twitter.com; path=/ Vary: Accept-Encoding Connection: close {results:[ __truncated___ Does that mean its not yet activated as I got the approval mail already. -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
Re: [twitter-dev] Banned For 1000s of friendship deletes/hr
I contacted a...@twitter.com. They told me to modify the app so that its hitting rate gets reduced. I think few sleep()s will slow it down. But I want to know how these are avoided normally by others? Any common best practice? -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu
Re: [twitter-dev] Banned For 1000s of friendship deletes/hr
On Fri, Nov 20, 2009 at 7:48 AM, Mark McBride mmcbr...@twitter.com wrote: This isn't a rate limiting issue, it's an abuse issue. What were you doing that required 1000s of friendship deletes/hour? Its an app where user requests to delete friends of his choice. All gets deleted on the fly. It has almost 100 to 200 user. If everyone requests to delete at least 20-50 user, total number of friendship/destroy requests can range from 2000-1. Now, And when my cron runs for the first time it gets blocked!! -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
Re: [twitter-dev] Re: My application for whitelisting has been rejected for no reason!
On Fri, Nov 6, 2009 at 9:08 AM, Ryan Sarver rsar...@twitter.com wrote: Nish, It's a known issue with our whitelisting ticket system. As Chris said, if you email a...@twitter.com the team can follow up and provide you with more information. Is the issue solved yet?? Today I request for whitelisting. Who knows I can face the same problem. -- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Banned For 1000s of friendship deletes/hr
Hello, Recently my IP was banned for 1000s of friendship deletes/hr. friendship/delete method is a POST call. It should not have any limit. All the calls were authenticated. So It should not hit any IP limit if its set. Now It seems it hits a hidden limit. Twitter mentioned 1000s. So I am still in dark. Still dont know what the exact number is. Any idea how do I avoid such limit? -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
Re: [twitter-dev] Message curl
On Wed, Nov 18, 2009 at 1:50 PM, dimi dimitri.vib...@gmail.com wrote: Hello, sorry for my english :) I try to run this command on my server : curl http://twitter.com/statuses/update.xml -u login: -d status=My message on http://www.url.com/index.php?p=homeid=10; but the url is cut near the The result on twitter is : My message on http://www.url.com/index.php?p=home Any ideas ?? Its not twitter error. Its your shell. :D If it was linux, I would have told you to use single quotation. But I think you are using windows cmd. is a shell meta character in cmd. escape it. Not using windows for long. I forgot how to escape. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Handle X-RateLimit-Reset
how do I handle X-RateLimit-Reset header?? If its in UTC, I'll take the current time from my system then convert it to UTC. Then wait the difference time. Is it? Something like following, $wait_time = $header['X-RateLimit-Reset'] - gmmktime(); sleep($wait_time); -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: Empty reply from server on Streaming API?
I had the same issue. And i was blacklisted. On 11/15/09, Jim DeLaHunt jim.delah...@gmail.com wrote: John: Thanks very much for the reply. On Nov 14, 8:30 pm, John Kalucki jkalu...@gmail.com wrote: This sounds like you were ignoring HTTP error codes and eventually got blacklisted. Consider:http://apiwiki.twitter.com/Streaming-API-Documentation#Connecting Hmm... I was launching single curl requests, making one connection then breaking it after max 3 seconds. I would then wait 6 minutes before trying to connect again. I didn't record the HTTP result code I got back, but it seems that according to Streaming-API- Documentation#Connecting I was being tremendously conservative. That doc recommends backing off for 10 to 240 seconds on an HTTP error code (200); I always backed off for 360 seconds immediately, whether the HTTP error code was good or bad. How would backing off by *more* than the docs call for get me blacklisted? You can tell for sure by turning off --silent and using -v to see what's going on. You should be getting some sort of message back, or absolutely nothing back. Those codes are not HTTP error codes, they must be some curl artifact. Correct, the codes 6 and 52 are defined by curl. See http://curl.haxx.se/docs/manpage.html . Using -v and other curl options, I see clearly that what I'm getting back is absolutely nothing back: 0 bytes in response to my HTTP query. (That's the meaning of the code 52.) For the last 6 hours, I've polled once per hour (once per 3600 seconds), and this null response has not changed. The docs don't say how to confirm that I've been blacklisted. Any suggestions for how to confirm that? Nor do they say what to do if I am in fact blacklisted. They say that the blacklist lasts an indeterminate period of time, so maybe they are implying I should just wait and the system will list the blacklist itself. The biggest issue, though, is to understand why I could have become blacklisted, when I backed off for 360 seconds after each attempt. Because right now, I don't know what I should do differently. Thanks again for the guidance. --Jim DeLaHunt, Vancouver, Canada@jdlh Twanguages: a language census of Twitter @twanguages http://jdlh.com/en/pr/twanguages.html Tcpdump is also sometimes useful. -John Kaluckihttp://twitter.com/jkalucki Services, Twitter Inc. On Nov 14, 6:13 pm, Jim DeLaHunt jim.delah...@gmail.com wrote: Am I the only one seeing this? I call the Streaming API 10x/hour. For the last 23 hours or so, I've been getting bad responses every time. I use a cron job to call from the Linux shell: curl --user myid:mypassword --silent --fail --max-time 3 --retry 0http://stream.twitter.com/1/statuses/sample.xml and I get usually a curl return code (52) Empty reply from server, though sometimes (6) name lookup timed out. Same thing happens when I ask for .json instead of .xml. The failures started at the rate of 1-2/hour on 2009/11/13 09:00h UTC (Friday early morning PST), though they became continuous as of 200/11/14 03:24h UTC (Friday evening PST), and remain continuous. Is anyone else calling this API and failing? Or succeeding? in the last 24 hours? Thank you, --Jim DeLaHunt, Vancouver, Canada �...@jdlh Twanguages: a language census of Twitter @twanguageshttp://jdlh.com/en/pr/twanguages.html -- Sent from my mobile device A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: Why is my app showing 1 user no matter how many users sign up ?
Yes, you must be doing something wrong. But its not related to twitter api. Its related to you application logic. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: PHP Libraries for OAuth
For PHP, there is a pecl extension. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: 52: Empty reply from server
On Fri, Oct 30, 2009 at 6:01 PM, Alexander Sergeyev a.serge...@gmail.com wrote: Hello! I got the same problem. During half-hour after reboot, server works good, all the requests send to Twitter API using cURL returned. But after, server received an empty reply. This problem is repeating in a half of tryes. If i reboot web-server, the problem disappears for a short time. My problem is not solved yet. Still looking for ways to resolve it. I told a...@twitter.com and waiting for reply. If reboot is the solution, it can not be accepted. A production server should not be rebooted that frequently. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: Cacheing
On Fri, Oct 30, 2009 at 7:32 AM, reaL-Insanity insanity1...@googlemail.com wrote: Is it possible to cache all data from twitter? Yes. If you want to cache, any data is cache able. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] 52: Empty reply from server
Hello, I am getting 52: Empty reply from server error from curl while calling friendships/destroy method. what is the problem? see my curl_getinfo() output. array(20) { [url]= string(51) http://twitter.com/friendships/destroy/sample.json; [content_type]= NULL [http_code]= int(0) [header_size]= int(0) [request_size]= int(501) [filetime]= int(-1) [ssl_verify_result]= int(0) [redirect_count]= int(0) [total_time]= float(0.180022) [namelookup_time]= float(0.035113) [connect_time]= float(0.107336) [pretransfer_time]= float(0.107453) [size_upload]= float(0) [size_download]= float(0) [speed_download]= float(0) [speed_upload]= float(0) [download_content_length]= float(0) [upload_content_length]= float(0) [starttransfer_time]= float(0.179996) [redirect_time]= float(0) } -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: 52: Empty reply from server
I think its related. I am requesting via OAuth pecl extension of PHP. Any type of request to twitter now contains no header no data. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: Regex to get user agent aka 'source'
Do you use php?? If yes, use strip_tags() function. otherwise -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Off line version of api wiki
Hello, Is there any offline version of twitter api? -- A K M Mokaddim http://twitter.com/shiplu
[twitter-dev] Re: Off line version of api wiki
On Tue, Sep 29, 2009 at 11:56 PM, Raffi Krikorian ra...@twitter.com wrote: hi. unfortunately, at this date, no -- apiwiki.twitter.com is the only available documentation. hmm. Just made one by wget -mkq http://apiwiki.twitter.com -- A K M Mokaddim http://twitter.com/shiplu
[twitter-dev] Re: Have tweet ID, need the URL prefix
On Wed, Sep 16, 2009 at 10:58 AM, Joseph northwest...@gmail.com wrote: If I have a tweet ID, how do I access the tweet using a url. I'm assuming there's an http://www.twitter.com//1234567890? http://twitter.com/USERNAME/status/TWEET_ID -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: Automated URL shortening
Does anyone know if I post a long url from web interface, will be shortened?? When I paste the long url in the textbox, twitter disables the submit button by js. If thats the case, how do I post long urls? -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Mass Direct Message Deletion
In API doc I see direct_messages/destroy method does the work. curl -u user:password --http-request DELETE http://twitter.com/direct_messages/destroy/88619848.xml It requires id. so It'll delete 1 message per request. Is there any way to delete more than 1 DMs per request?? A request like this would be great. curl -u user:password --http-request DELETE http://twitter.com/direct_messages/destroy/88619845,88619846,88619847,88619848.xml -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: Trying to display JSON object
foreach($json-results as $result){ $result-item; } will do. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: Stop playing around with Source parameters
Use DOM functions in your language to parse it. Dont use Regex. Another Good solution is using libxml. But Html is not XML. So you may have to convert it. Thats why DOM is better. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: New problem with JSON search API on 32-bit OS?
PHP doesn't support 64 bit integers. Thats the problem. Most of the other language doesnt have this problem. But PHP is used in most web sites. I suggest you use BIGINT as db column type. and when storing the id check if its a negetive number. If its negetive number, add the id (since_id, id, max_id) to 2^64 in database. insert into tbl1(max_id) values ( if($num0, pow(2,64)+$num, $num) ); something like that. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: storing access tokens
On Tue, Aug 18, 2009 at 6:32 PM, AArrudaarrud...@gmail.com wrote: I'm developing a mobile app for Twitter and i am thinking about storing the access tokens internally so the user won't have to go through the whole web authentication process every time the program is used. Is that a good practice, or are there any issues with this solution? No problem with it. These tokens are given so that you dont have to reauthenticate. So store it and use it. It has no expiry time. At least nothing is said in spec. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: API image urls hosed?
On Sat, Aug 15, 2009 at 5:48 AM, dburkesdbur...@gmail.com wrote: The API currently returns http://s3.amazonaws.com/twitter_production/profile_images/93621634/Untitled-1_normal.jpg as the profile_image_url for me (http://twitter.com/users/show.xml? screen_name=dburkes). Amazon says this URL isn't valid. From Firebug I see your avatar is hosted in http://a1.twimg.com/profile_images/363020254/Untitled-1_bigger.jpg. All 3 are there. test it by curl --head http://a1.twimg.com/profile_images/363020254/Untitled-1_mini.jpg curl --head http://a1.twimg.com/profile_images/363020254/Untitled-1_normal.jpg curl --head http://a1.twimg.com/profile_images/363020254/Untitled-1_bigger.jpg But none of the url for s3.amazonaws.com is working ! -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: Trademark infringement
Tweet is already a verb. See http://www.answers.com/topic/tweet I am not an English speaker. But see the output of the following command in your linux distro. $ look tweet tweet tweeted tweeter tweeter's tweeters tweeting tweets How can it become IP ?? -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: Rate Limit Change?
If its called from a whitelisted IP, It will be charged to IP. Not account. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] RateLimit Calculation
Hello, I need to be clear on something. Scenario 1: Suppose We have a twitter app where 1 user logs in everyday. And we have 1 whitelisted IP address. So If each user sends 3 tweets/hours, It will be over(3) the whitlisted IP rate limit, which is 2. In this case, we need to use extra whitelisted IP addresses, I guess. Scenario 2: Suppose We have a twitter app where 1 user logs in everyday. And we didn't whitelist our IP address. We are sending oauth authenticated request. As Authenticated API calls are charged to the authenticating user's limit 1 user can send 150 request/hour So If each user sends 3 tweets/hours, It will be much lower (3) than the total limit, which is 150 This *should* work. But I doubt, does it work really? wont twitter ban the IP? And, which method I should choose? 1 or 2? Thanks -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: RateLimit Calculation
On Wed, Aug 12, 2009 at 3:57 AM, Dewald Pretoriusdpr...@gmail.com wrote: On Aug 11, 5:53 pm, shiplu shiplu@gmail.com wrote: Scenario 1: No, you don't. Status updates are POSTs, which do not count against your 20,000 rate limit. Dewald Oops! Basic Mistake! But what about I am talking about GET requests. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: RateLimit Calculation
On Wed, Aug 12, 2009 at 6:41 AM, Julio Biasonjulio.bia...@gmail.com wrote: On Wed, Aug 12, 2009 at 7:01 AM, shiplushiplu@gmail.com wrote: Oops! Basic Mistake! But what about I am talking about GET requests. If you're doing a GET 3 times every hour, then it would be better not use a whitelisted IP. This way, the rate limit will count to each user, not the IP (considering that you're authenticating those users.) But there is a chance my IP will be blacklisted, isn't it? Also If I just cache every request, It will never hit the rate limit. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: Twitter API is unresponsive, can we crawl the twitter.com website?
I guess if you crawl like a crawler It should be okay otherwise how a newly developed spider would work. But if you crawl like a scraper you'll be banned. But I am not sure if Twitter can differentiate between them. I mean the request pattern. Does twitter check it? -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: Quick poll: Can anyone do anything on twitter.com?
I can login and tweet. But I cannot register new Application. :( When submit the application credentials the screen goes blank. And I cannot create new twitter account too. I have been trying for 3/4 days. None of these works. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: using twitter images
On Thu, Aug 6, 2009 at 9:18 AM, DTANGdtan...@gmail.com wrote: I am using the twitter REST web service to pull my tweets, but i want to use the twitter logo/icon on my homepage next to my tweets so its obvious to people that im using twitter. How do i get this image/icon? through the api? or can i just go find it at google images? The path of your logo is in the response xml. Read it carefully. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: Current Twitter site status
I see. Thats the reason why I can register my new app ! ! ! :( -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: oauth_token and secret length
On Fri, Jul 24, 2009 at 6:03 PM, Andrew Baderaand...@badera.us wrote: http://groups.google.com/group/oauth/browse_thread/thread/d4b7f1f9174041ca?hl=en Thanks. But I have read that already. I thought twitter would have a max length defined. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: twitter developer marketplace
Great! I was looking for something like this. At least as a developer. -- A K M Mokaddim http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: from API
No doubt it will be closed. But from now on twitter should approve more applications. Cause many applications are using this from web and converted to from API. Soon they will apply for approval. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: Can I Pass Parameters to signup to Pre-Fill Form Fields?
You can not. Unless twitter allows it with some api or something like that. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: json parsing code not workin..urgent plzzz!!!!!
On Mon, Jun 8, 2009 at 6:01 PM, grand_unifierjijodasgu...@gmail.com wrote: $.ajax('http://twitter.com/friendships/exists.json? user_a='+query1+'user_b='+query2, function(data,textdata) { var public_tweets = JSON.parse(data); if(public_tweets.text == 'true') { var newDiv = 'ptrue/p'; } $('#content').append(newDiv); }); },text); This code will throw cross-domain security exception. The url http://twitter.com/friendships/exists.json can only be called by ajax from twitter.com. Not from any other domain. But you can use it in this way, script type=text/javascript src=http://twitter.com/friendships/exists.json;/script If this url supports callback parameter, specify a callback. It'll work almost like ajax. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: Has anyone created a ping bot account?
A ping bot account that sends current time every secends. #!/bin/sh MSG=`date` # Interval in seconds INTERVAL=1 while [ 1 -lt 3 ] do curl -u TWITTERUSER:TWITTERPASS -d status=${MSG} sleep ${INTERVAL} done Hope you get the idea. -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল Sent from Dhaka, Bangladesh
[twitter-dev] Re: how to specify source in php with curl
On Wed, Jun 3, 2009 at 5:50 PM, Niju Mohan C P mail2n...@gmail.com wrote: Hello all, I use php with curl to post tweets. If my app is registered at twitter how can i specify the source. The following is the code i'm using... $tweetUrl = 'http://www.twitter.com/statuses/update.xml'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $tweetUrl); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, status=$status); Its a simple parameter source. But the source must be registered I guess. so You have to use curl_setopt($curl, CURLOPT_POSTFIELDS, status=$statussource=$source); curl_setopt($curl, CURLOPT_USERPWD, $twitterUsername: $twitterPassword); $result = curl_exec($curl); $resultArray = curl_getinfo($curl); -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] Re: Sending DMs via curl with extended characters?
When you use curl in linux shell, use single quotation instead of double quotation. curl -D - -s -u tj:SECKRET \ -d 'text=BstTwt: #10085; @tj Her:quot;The lightbulbs are over the dryerquot; Me:quot;The rooster flies east at dawnquot; Her:quot;What?quot; Me: quot;Oh, I thought we were talking like spiesquot; user=tj' http://twitter.com/direct_messages/new.xml If you use double quotation in linux use \ to escape shell meta character If you are in windows use ^ to escape shell meta character -- A K M Mokaddim http://talk.cmyweb.net http://twitter.com/shiplu Stop Top Posting !! বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
[twitter-dev] public timeline from specific application source
Please check the following curl query. curl -u username:password http://twitter.com/statuses/public_timeline.xml?source=kdetwitter This query should return the 20 most recent statuses from non- protected users who used *kdetwitter* to tweet. Is it possible? Is there any other way to achieve this??