Re: [twitter-dev] Re: Friend and Follower count - since timestamp
Hey Nischal, So this doesn't get lost in the email archive would you be able to create this as an enhancement request in our issue tracker: http://code.google.com/p/twitter-api/issues/list Thanks, Matt On Tue, Jul 6, 2010 at 10:00 PM, nischalshetty nischalshett...@gmail.comwrote: Thanks. That would help me in listing out new followers. But if any of a users old friends stopped following them, I wouldn't get it :( Anyways, hoping to see a 'since' param with new and deleted ids sent. I know you guys are pretty tied up with other important stuff, but hope to see this someday :) -Nischal On Jul 6, 7:04 pm, Raffi Krikorian ra...@twitter.com wrote: unfortunately, we don't yet support that functionality. the list is sorted with the newest items being first - you could grab the first page, and then go backwards until you start to see data that you've seen before. On Mon, Jul 5, 2010 at 10:34 PM, nischalshetty nischalshett...@gmail.comwrote: My apphttp://justunfollow.comextensively uses the friends/ids and followers/ids API. Since twitter users have a lot of followers and friends and this API is paginated, I find it repetitive to use it. A since param that sends me all new friend and follower ids of a user along with the deleted ids (when someone stops being a friend or follower) would help a lot. I checked the documentation but found no mention of this. Please help! -- Raffi Krikorian Twitter Platform Teamhttp://twitter.com/raffi -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] XML format change???
Did you change the XML format today our application which has worked for a year reading XML data all of the sudden does not function today? Was there a format change without notice?
[twitter-dev] Re: Friend and Follower count - since timestamp
Hi Matt, Sure, will do that right away :) -Nischal On Jul 7, 11:13 am, Matt Harris thematthar...@twitter.com wrote: Hey Nischal, So this doesn't get lost in the email archive would you be able to create this as an enhancement request in our issue tracker:http://code.google.com/p/twitter-api/issues/list Thanks, Matt On Tue, Jul 6, 2010 at 10:00 PM, nischalshetty nischalshett...@gmail.comwrote: Thanks. That would help me in listing out new followers. But if any of a users old friends stopped following them, I wouldn't get it :( Anyways, hoping to see a 'since' param with new and deleted ids sent. I know you guys are pretty tied up with other important stuff, but hope to see this someday :) -Nischal On Jul 6, 7:04 pm, Raffi Krikorian ra...@twitter.com wrote: unfortunately, we don't yet support that functionality. the list is sorted with the newest items being first - you could grab the first page, and then go backwards until you start to see data that you've seen before. On Mon, Jul 5, 2010 at 10:34 PM, nischalshetty nischalshett...@gmail.comwrote: My apphttp://justunfollow.comextensivelyuses the friends/ids and followers/ids API. Since twitter users have a lot of followers and friends and this API is paginated, I find it repetitive to use it. A since param that sends me all new friend and follower ids of a user along with the deleted ids (when someone stops being a friend or follower) would help a lot. I checked the documentation but found no mention of this. Please help! -- Raffi Krikorian Twitter Platform Teamhttp://twitter.com/raffi -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: Friend and Follower count - since timestamp
Raised an issue: http://code.google.com/p/twitter-api/issues/detail?id=1732 Hope one of you finds time to work on this, would be a big help for me as well whole lot of other apps that deal with a users friend and followers. -Nischal On Jul 7, 1:37 pm, nischalshetty nischalshett...@gmail.com wrote: Hi Matt, Sure, will do that right away :) -Nischal On Jul 7, 11:13 am, Matt Harris thematthar...@twitter.com wrote: Hey Nischal, So this doesn't get lost in the email archive would you be able to create this as an enhancement request in our issue tracker:http://code.google.com/p/twitter-api/issues/list Thanks, Matt On Tue, Jul 6, 2010 at 10:00 PM, nischalshetty nischalshett...@gmail.comwrote: Thanks. That would help me in listing out new followers. But if any of a users old friends stopped following them, I wouldn't get it :( Anyways, hoping to see a 'since' param with new and deleted ids sent. I know you guys are pretty tied up with other important stuff, but hope to see this someday :) -Nischal On Jul 6, 7:04 pm, Raffi Krikorian ra...@twitter.com wrote: unfortunately, we don't yet support that functionality. the list is sorted with the newest items being first - you could grab the first page, and then go backwards until you start to see data that you've seen before. On Mon, Jul 5, 2010 at 10:34 PM, nischalshetty nischalshett...@gmail.comwrote: My apphttp://justunfollow.comextensivelyusesthe friends/ids and followers/ids API. Since twitter users have a lot of followers and friends and this API is paginated, I find it repetitive to use it. A since param that sends me all new friend and follower ids of a user along with the deleted ids (when someone stops being a friend or follower) would help a lot. I checked the documentation but found no mention of this. Please help! -- Raffi Krikorian Twitter Platform Teamhttp://twitter.com/raffi -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: problem with statuses/destroy
Hello, Actually I have that working, and I do noticed some strange behavior too. The thing I notice is, when you delete a tweet from your application, and then if you get the tweets (through the API too) the tweet you deleted before will not be there anymore. So, the thing really works. But if you go to the Twitter webpage, the tweet remains there for a while even if you refresh the page. Is like if the Twitter web page is not synchronized with the results from the API. Maybe you are having the same problem... Cumprimentos, Luis On Jul 7, 12:27 am, Matt Harris thematthar...@twitter.com wrote: Hi Claudia, Where are you seeing the Tweet get displayed? Is this on the website or through a particular API request? Matt On Tue, Jul 6, 2010 at 9:48 AM, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hello! I'm using the api statuses / destroy with OAuth to delete messages. Returns HTTP = 200, I see that decreases the amount of tweets that shows the profile of the account. But the message continues and it is not excluded. Got a problem with this api or is missing some procedure. Can you give me a light? Thanks Claudia A. V. Callegari Brazil In portuguese Ola ! Estou usando a api statuses/destroy com oauth para excluir mensagens. Retorna http = 200 , vejo que diminui a quantidade de tweets que mostra no perfil da conta. Porém a mensagem continua la e não é excluida. Tem algum problema com essa api ou será que falta algum procedimento. Podem me dar uma luz ? Obrigada Claudia A. V. Callegari Brasil -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
Re: [twitter-dev] Re: Friend and Follower count - since timestamp
Just wanted to add, it's a sad thing etags see hardly any use today. Back when the graph methods weren't paginated, you could just send a request with the etag header set and it would come back not modified, a very efficient thing to do. It won't give you the difference between arbitrary points in time, but for most applications, it's quite enough. I don't think anybody ever confirmed that this even works with paginated calls, but I don't see why it couldn't (especially since pages are apparently newest first, as Raffi said). Pascal On Jul 7, 2010, at 10:50 , nischalshetty wrote: Raised an issue: http://code.google.com/p/twitter-api/issues/detail?id=1732 Hope one of you finds time to work on this, would be a big help for me as well whole lot of other apps that deal with a users friend and followers. -Nischal
[twitter-dev] Re: Rate Limiting
And again I'm locked out. 400 is saying Rate limit exceeded. Clients may not make more than 150 requests per hour., however rate_limit_status is saying You have 145 api calls left until 12:20 when it will be reset to 150. (local time 11:39) On Jul 6, 10:59 pm, Rich rhyl...@gmail.com wrote: Yep I'm now locked out of my own account with this issue On Jul 6, 10:38 pm, Matt Harris thematthar...@twitter.com wrote: We are aware rate limits are being reported incorrectly. We are tracking the issue on the API tracker:http://code.google.com/p/twitter-api/issues/detail?id=1728 Matt On Tue, Jul 6, 2010 at 10:10 AM, Johnson johnson...@gmail.com wrote: I want to know what's the metrics of this dynamic logout. I have several twitter account/twitter development accounts. It started around 1am PST, one of my account keep getting 400. I woke up this morning, that only account is still getting 400. I tried a different pair comsumer key/token using twurl, it works. I tried on mobile, Echolfon, failed, but twitbird goes thru. Obviously the web works! What other experiments do u want me to run? Are twitter giving favor on specific accounts? On Jul 6, 9:57 am, Pascal Jürgens lists.pascal.juerg...@googlemail.com wrote: Just a sidenote: This can be coincidental. Unless you try several dozen times with each client, no valid inference can be drawn from the tests. Pascal On Jul 6, 2010, at 18:46 , Johnson wrote: I notice that the rate limit is application specific. I've tried a few clients, some of them goes thru, some don't. -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: problem with statuses/destroy
Hi! After using my api for deleting tweets, I looked at the site own twitter. I did the test on another Internet site that also deletes tweets, he had the same problem. This morning, without changing anything in my api, I took the test again and it worked. I believe had some temporary problem on twitter. Thanks Hugs Claudia A. V. Callegari Brasil On 6 jul, 19:27, Matt Harris thematthar...@twitter.com wrote: Hi Claudia, Where are you seeing the Tweet get displayed? Is this on the website or through a particular API request? Matt On Tue, Jul 6, 2010 at 9:48 AM, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hello! I'm using the api statuses / destroy with OAuth to delete messages. Returns HTTP = 200, I see that decreases the amount of tweets that shows the profile of the account. But the message continues and it is not excluded. Got a problem with this api or is missing some procedure. Can you give me a light? Thanks Claudia A. V. Callegari Brazil In portuguese Ola ! Estou usando a api statuses/destroy com oauth para excluir mensagens. Retorna http = 200 , vejo que diminui a quantidade de tweets que mostra no perfil da conta. Porém a mensagem continua la e não é excluida. Tem algum problema com essa api ou será que falta algum procedimento. Podem me dar uma luz ? Obrigada Claudia A. V. Callegari Brasil -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: Home_timeline and retweets
Hello, and thanks for your reply. When I said ridiculous, I don't meant to offend you cause I REALLY appreciate your work. I was just discussing my point of view. Sorry for that. About the retweets: Imagine I get my home_timeline. I will get the 'normal' tweets (posted by me via web, for example), the retweets I did and the tweets (and retweets) done by the ones I'm following. The thing is, how can I identify if a element from the home_timeline is a 'normal' tweet or a retweet done by me? For example, in the retweets done by the people you are following, you have the retweeted_status and with that I know that is a retweet instead of a 'normal' tweet by him/her. But with my own, I dont know. The goal is I want to add the Undo(retweet) in my application. To do the undo I need to know which of those are retweets. You understand my problem? Maybe I'm missing something. If so, I'm being ridiculous :) Thanks a lot, Luis On Jul 6, 7:01 am, Raffi Krikorian ra...@twitter.com wrote: i don't think ridiculous is the right term :P we're constantly evolving the API to match up with what our developers are trying to do! so - that being said - what are you looking for? are you trying to figure out which tweets on the home timeline has the authenticating user retweeted? On Mon, Jul 5, 2010 at 2:58 PM, luisg luisfmgoncal...@gmail.com wrote: So, instead of 1, now I have to do 2 call (one for the home_timeline and another for the retweets_of_me). I started to understand the 'Tiwtter is over capacity' error! ...ridiculous... On Jul 5, 6:17 pm, Thomas Woolway priv...@tswoolway.co.uk wrote: I don't think that you're doing anything wrong - it's just a quirk of the API - you don't get any info in your home timeline on stuff you retweeted. I think this is because of the condition that you should never see a retweet if you would have seen it already in your timeline. This stops you from seeing the latest popular tweet retweeted 100 times from each of your followers if you follow the person who originally tweeted it. However, I guess it also stops you seeing that you have retweeted a tweet, as theoretically you've already seen it. I think I've made that more complicated than it actually is... The only thing that you can do is to get the Home Timeline and then merge retweets_of_me in over the top. Tom On Mon, Jul 5, 2010 at 4:03 PM, luisg luisfmgoncal...@gmail.com wrote: Can somebody help? Maybe I'm doing something wrong. For example, if account A has Account B as follower and vice-versa, and if account A retweets tweet XPTO made by account B, shouldn't the tweet XPTO appear with retweet_status property if we request the home_timeline? Please help, Luis On Jul 3, 4:45 pm, luisg luisfmgoncal...@gmail.com wrote: Hello everybody, I'm having a problem lately with the retweets. In the API documentation and about the home_timeline says: 'Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web.' The problem is, when I request the home_timeline, none of my tweets have the 'retweeted_status' that should be present if it is a retweet. But if I request 'retweeted_by_me' I get all the information, including the 'retweeted_status'. Can someone tell me what's wrong? Something changed? Thanks, Luis -- Raffi Krikorian Twitter Platform Teamhttp://twitter.com/raffi
[twitter-dev] Re: problem with statuses/destroy
Maybe something with the browser cache, no? On Jul 7, 1:24 pm, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hi! After using my api for deleting tweets, I looked at the site own twitter. I did the test on another Internet site that also deletes tweets, he had the same problem. This morning, without changing anything in my api, I took the test again and it worked. I believe had some temporary problem on twitter. Thanks Hugs Claudia A. V. Callegari Brasil On 6 jul, 19:27, Matt Harris thematthar...@twitter.com wrote: Hi Claudia, Where are you seeing the Tweet get displayed? Is this on the website or through a particular API request? Matt On Tue, Jul 6, 2010 at 9:48 AM, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hello! I'm using the api statuses / destroy with OAuth to delete messages. Returns HTTP = 200, I see that decreases the amount of tweets that shows the profile of the account. But the message continues and it is not excluded. Got a problem with this api or is missing some procedure. Can you give me a light? Thanks Claudia A. V. Callegari Brazil In portuguese Ola ! Estou usando a api statuses/destroy com oauth para excluir mensagens. Retorna http = 200 , vejo que diminui a quantidade de tweets que mostra no perfil da conta. Porém a mensagem continua la e não é excluida. Tem algum problema com essa api ou será que falta algum procedimento. Podem me dar uma luz ? Obrigada Claudia A. V. Callegari Brasil -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: problem with statuses/destroy
Hello Luiz, I also thought about the cache, so I do I cleared the cache, to test, but the problem continued. But as I said today seems to be normal, then it occurs again, I notice again. Thanks On 7 jul, 08:56, luisg luisfmgoncal...@gmail.com wrote: Maybe something with the browser cache, no? On Jul 7, 1:24 pm, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hi! After using my api for deleting tweets, I looked at the site own twitter. I did the test on another Internet site that also deletes tweets, he had the same problem. This morning, without changing anything in my api, I took the test again and it worked. I believe had some temporary problem on twitter. Thanks Hugs Claudia A. V. Callegari Brasil On 6 jul, 19:27, Matt Harris thematthar...@twitter.com wrote: Hi Claudia, Where are you seeing the Tweet get displayed? Is this on the website or through a particular API request? Matt On Tue, Jul 6, 2010 at 9:48 AM, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hello! I'm using the api statuses / destroy with OAuth to delete messages. Returns HTTP = 200, I see that decreases the amount of tweets that shows the profile of the account. But the message continues and it is not excluded. Got a problem with this api or is missing some procedure. Can you give me a light? Thanks Claudia A. V. Callegari Brazil In portuguese Ola ! Estou usando a api statuses/destroy com oauth para excluir mensagens. Retorna http = 200 , vejo que diminui a quantidade de tweets que mostra no perfil da conta. Porém a mensagem continua la e não é excluida. Tem algum problema com essa api ou será que falta algum procedimento. Podem me dar uma luz ? Obrigada Claudia A. V. Callegari Brasil -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: Search API rate limit
Matt, What is exact limit..Whether I can write to twitter for whitelisting of the IP? Whether whitelisting of the IP would do any good? Shan On Jul 7, 12:16 am, Matt Harris thematthar...@twitter.com wrote: Hi Shan, The Search API is anonymous so authenticating makes no difference to the rate limit there. If you are requesting a lot of information from the search API you may want to look at the streaming API instead:http://dev.twitter.com/pages/streaming_api The majority of search cases can be handled by the default filter limits available through the streaming API. Best, Matt On Tue, Jul 6, 2010 at 7:31 AM, Ramanean shang...@gmail.com wrote: I am developing a normal twitter search application Inorder to beat the search rate limit if I ask a user to authenticate whether that would be helpful? Whether the calls made by the user for search api will be counted in the user's account ? or whether that would be still counted as a call from the IP address of the website? I am little bit confused here... Thanks Shan -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] On Process
Hi, I was wondering about tools and processes in use at Twitter to manage and develop the API. How are releases done so quickly across so many machines? How are work items assigned? Is CI / CD in use? What about testing? Do you have people dedicated just to manage this process? If someone at Twitter could give me a short answer on these, if it's not breaching policy, I'd appreciate it muchly! Thanks, Rob Stevenson-Leggett twitter: rsleggett
[twitter-dev] Re: XML feed not loading as before - PHP
Thanks Taylor, I've corrected this and it doesnt make any difference. $twitter_url = http://api.twitter.com/1/statuses/user_timeline/ britishabroad.xml; $buffer = file_get_contents($twitter_url); $xml = new SimpleXMLElement($buffer); $status_item = $xml - status; $status = $status_item - text; echo $status; Here is the link: http://demophon.fco.gov.uk/dashboard/test.php As I said, it was working before but not anymore. Would appreciate any help? Thx Colin On Jul 6, 5:09 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Colin, You're missing the api subdomain and version 1.. this should work for you instead: http://api.twitter.com/1/statuses/user_timeline/britishabroad.xml?cou... Taylor On Tue, Jul 6, 2010 at 8:18 AM, colin@digital.fco.gov.uk colin@digital.fco.gov.uk wrote: With the following feed/script: $twitter_url = http://twitter.com/statuses/user_timeline/ britishabroad.xml?count=1; $buffer = file_get_contents($twitter_url); $xml = new SimpleXMLElement($buffer); $status_item = $xml - status; $status = $status_item - text; echo $status; Nothing is being returned. Initally it had been working with simplexml_load_file but now everything has stopped. It is working on my local environment, but as soon as the file is tested on the server, nothing is working. I have tested this with different XMLs and they're fine. The error showing is: Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/bhammers/demophon/dashboard/test.php:5 Stack trace: #0 /home/bhammers/demophon/dashboard/test.php(5): SimpleXMLElement-__construct('') #1 {main} thrown in /home/bhammers/ demophon/dashboard/test.php on line 5 I have google this and it seems suggest this is a twitter error? Thanks in advance
[twitter-dev] Re: XML feed not loading as before - PHP
$twitter_url = http://api.twitter.com/1/statuses/user_timeline/ britishabroad.xml; $buffer = file_get_contents($twitter_url); $xml = new SimpleXMLElement($buffer); $status_item = $xml - status; $status = $status_item - text; echo $status; On Jul 6, 5:09 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Colin, You're missing the api subdomain and version 1.. this should work for you instead: http://api.twitter.com/1/statuses/user_timeline/britishabroad.xml?cou... Taylor On Tue, Jul 6, 2010 at 8:18 AM, colin@digital.fco.gov.uk colin@digital.fco.gov.uk wrote: With the following feed/script: $twitter_url = http://twitter.com/statuses/user_timeline/ britishabroad.xml?count=1; $buffer = file_get_contents($twitter_url); $xml = new SimpleXMLElement($buffer); $status_item = $xml - status; $status = $status_item - text; echo $status; Nothing is being returned. Initally it had been working with simplexml_load_file but now everything has stopped. It is working on my local environment, but as soon as the file is tested on the server, nothing is working. I have tested this with different XMLs and they're fine. The error showing is: Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/bhammers/demophon/dashboard/test.php:5 Stack trace: #0 /home/bhammers/demophon/dashboard/test.php(5): SimpleXMLElement-__construct('') #1 {main} thrown in /home/bhammers/ demophon/dashboard/test.php on line 5 I have google this and it seems suggest this is a twitter error? Thanks in advance
[twitter-dev] XML feed not loading as before - PHP
$twitter_url = http://api.twitter.com/1/statuses/user_timeline/ britishabroad.xml; $buffer = file_get_contents($twitter_url); $xml = new SimpleXMLElement($buffer); $status_item = $xml - status; $status = $status_item - text; echo $status; I am getting an error: Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/bhammers/demophon/dashboard/test.php:5 Stack trace: #0 /home/bhammers/demophon/dashboard/test.php(5): SimpleXMLElement-__construct('') #1 {main} thrown in /home/bhammers/ demophon/dashboard/test.php on line 5 Would appreciate any help. Thanks Colin
[twitter-dev] Re: XML format change???
I'm getting similar problems. With the use of simplexml_load_file, it loads other xml fine but not twitters!!! On Jul 7, 6:55 am, Pete phousle...@gmail.com wrote: Did you change the XML format today our application which has worked for a year reading XML data all of the sudden does not function today? Was there a format change without notice?
[twitter-dev] Re: Rate Limiting
For my whitelisted client everything is fine again, limit is up at 20k again :) On Jul 7, 12:40 pm, artesea ryancul...@gmail.com wrote: And again I'm locked out. 400 is saying Rate limit exceeded. Clients may not make more than 150 requests per hour., however rate_limit_status is saying You have 145 api calls left until 12:20 when it will be reset to 150. (local time 11:39) On Jul 6, 10:59 pm, Rich rhyl...@gmail.com wrote: Yep I'm now locked out of my own account with this issue On Jul 6, 10:38 pm, Matt Harris thematthar...@twitter.com wrote: We are aware rate limits are being reported incorrectly. We are tracking the issue on the API tracker:http://code.google.com/p/twitter-api/issues/detail?id=1728 Matt On Tue, Jul 6, 2010 at 10:10 AM, Johnson johnson...@gmail.com wrote: I want to know what's the metrics of this dynamic logout. I have several twitter account/twitter development accounts. It started around 1am PST, one of my account keep getting 400. I woke up this morning, that only account is still getting 400. I tried a different pair comsumer key/token using twurl, it works. I tried on mobile, Echolfon, failed, but twitbird goes thru. Obviously the web works! What other experiments do u want me to run? Are twitter giving favor on specific accounts? On Jul 6, 9:57 am, Pascal Jürgens lists.pascal.juerg...@googlemail.com wrote: Just a sidenote: This can be coincidental. Unless you try several dozen times with each client, no valid inference can be drawn from the tests. Pascal On Jul 6, 2010, at 18:46 , Johnson wrote: I notice that the rate limit is application specific. I've tried a few clients, some of them goes thru, some don't. -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Error messages during authorize and redirect processes (OAuth)
I use the twitter API in my mobile app to make tweets and retweets using OAuth authentication methods. Programming language is Zend Framework v2.3.0, PHP Version 5.3.1. As a 'siteUrl' I use the mobile url: http://m.twitter.com/oauth;. Good: The twitter authorize and redirect process for tweet and retweet works fine at Mozilla Firefox (Version 3.6.6). Bad: At Google Chrome browser (Version 5.0.375.99) it shows error, when I go to authorize-page (with question Connect your account?) at retweet: Here is the complete error message: - This page contains the following errors: error on line 393 at column 41: Entity 'rarr' not defined Below is a rendering of the page up to the first error. - At lines 391 - 393 stands: div class=pipeline orange Zugreifen und aktualisieren? brarr;/b /div And later, when I try Allow connect my account, I get this error message: --- This page contains the following errors: error on line 395 at column 36: Entity 'rarr' not defined error on line 402 at column 27: AttValue: or ' expected Below is a rendering of the page up to the first error. --- I tried Opera browser too, and there I have no errors at authorize- page, but then error at redirect page: Here is the complete error message: --- XML-Interpretation fehlgeschlagen XML-Interpretation fehlgeschlagen: Syntaxfehler (Zeile: 402, Zeichen: 27) Dokument als HTML neu analysieren. Error: invalid attribute value Spezifikation: http://www.w3.org/TR/REC-xml/#NT-AttValue 399: br/br/ 400: 401: img alt= src=http://a1.twimg.com/a/1278188204/images/ spinner.gif / 402: Du wirst zurück zu a href=\http://localhost/testapp/public/ twitter/connect/?oauth_token=key;oauth_verifier=key\test app/a geleitet. 403: br/br/ 404: 405: /div --- In the row 402, column 27 is the '\' character after a href=. As far as I understand, the redirect page is built by twitter, and only my callback url (http://localhost/testapp/public/twitter/connect/? oauth_token=key;oauth_verifier=key is added to the page. Are this error messages a twitter api bugs? The redirect to my site after tweet and retweet works fine, but it is awful to see this error messages during authorize and then redirect.
Re: [twitter-dev] Re: XML format change???
hi all. i don't know of any format change - do you have an example we can look at? On Wed, Jul 7, 2010 at 2:55 AM, colin@digital.fco.gov.uk colin@digital.fco.gov.uk wrote: I'm getting similar problems. With the use of simplexml_load_file, it loads other xml fine but not twitters!!! On Jul 7, 6:55 am, Pete phousle...@gmail.com wrote: Did you change the XML format today our application which has worked for a year reading XML data all of the sudden does not function today? Was there a format change without notice? -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Re: Search API rate limit
Shan, as far as I know twitter has been reluctant to state definite numbers, so you'll have to experiment and implement a backoff mechanism in your app. Here is the relevant part of the docs: Search API Rate Limiting The Search API is rate limited by IP address. The number of search requests that originate from a given IP address are counted against the search rate limiter. The specific number of requests a client is able to make to the Search API for a given hour is not released. Note that the Search API is not limited by the same 150 requests per hour limit as the REST API. The number is quite a bit higher and we feel it is both liberal and sufficient for most applications. We do not give the exact number because we want to discourage unnecessary search usage. Search API usage requires that applications include a unique and identifying User Agent string. A HTTP Referrer is expected but is not required. Consumers using the Search API but failing to include a User Agent string will receive a lower rate limit. An application that exceeds the rate limitations of the Search API will receive HTTP 420 response codes to requests. It is a best practice to watch for this error condition and honor the Retry-After header that instructs the application when it is safe to continue. The Retry-After header's value is the number of seconds your application should wait before submitting another query (for example: Retry-After: 67). Cheers, Pascal On Jul 7, 2010, at 1:55 , Ramanean wrote: Matt, What is exact limit..Whether I can write to twitter for whitelisting of the IP? Whether whitelisting of the IP would do any good? Shan
[twitter-dev] Temporary changes to whitelisting
I wanted to email everyone and give notice that we are going to be holding off on approving any additional whitelist requests until after the World Cup is over. We actually paused this last week, so if you haven't gotten a response, this is why. It will take us a while to get through the backlog after the World Cup, so please be patient and don't reapply as it just makes it more difficult to suss through the requests. Please let me know if you have any questions. Best, Ryan
Re: [twitter-dev] Re: problem with statuses/destroy
It sounds like our internal cache wasn't keeping up with the API. I know there was some work on what happens when a Tweet is deleted recently, specifically around keeping the API and site in sync. Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris On Jul 7, 2010, at 5:38, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hello Luiz, I also thought about the cache, so I do I cleared the cache, to test, but the problem continued. But as I said today seems to be normal, then it occurs again, I notice again. Thanks On 7 jul, 08:56, luisg luisfmgoncal...@gmail.com wrote: Maybe something with the browser cache, no? On Jul 7, 1:24 pm, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hi! After using my api for deleting tweets, I looked at the site own twitter. I did the test on another Internet site that also deletes tweets, he had the same problem. This morning, without changing anything in my api, I took the test again and it worked. I believe had some temporary problem on twitter. Thanks Hugs Claudia A. V. Callegari Brasil On 6 jul, 19:27, Matt Harris thematthar...@twitter.com wrote: Hi Claudia, Where are you seeing the Tweet get displayed? Is this on the website or through a particular API request? Matt On Tue, Jul 6, 2010 at 9:48 AM, Claudia A. V. Callegari claudia.avcalleg...@gmail.com wrote: Hello! I'm using the api statuses / destroy with OAuth to delete messages. Returns HTTP = 200, I see that decreases the amount of tweets that shows the profile of the account. But the message continues and it is not excluded. Got a problem with this api or is missing some procedure. Can you give me a light? Thanks Claudia A. V. Callegari Brazil In portuguese Ola ! Estou usando a api statuses/destroy com oauth para excluir mensagens. Retorna http = 200 , vejo que diminui a quantidade de tweets que mostra no perfil da conta. Porém a mensagem continua la e não é excluida. Tem algum problema com essa api ou será que falta algum procedimento. Podem me dar uma luz ? Obrigada Claudia A. V. Callegari Brasil -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
Re: [twitter-dev] Re: XML format change???
hey everyone, I've noticed some of users are not using an HTTP transport method, but instead a file stream to read from the API. If you are using a file stream method, like file_get_contents in PHP you will be getting XML load errors whenever the request you make returns with an error. This is because the file stream method returns false rather than the content of the XML when an error is detected. We strongly recommend using an HTTP transport for talking with the API. This way you can inspect the headers we return to you and also the status code. You also get our hash element with the error text in it: I've compared the XML structure to the ones in the API docs and they are still the same. If you are using a library like curl and are still getting the XML load error could you give us an example of the content you are getting back so we can work out why this might be happening. Thanks, Matt On Wed, Jul 7, 2010 at 5:56 AM, Raffi Krikorian ra...@twitter.com wrote: hi all. i don't know of any format change - do you have an example we can look at? On Wed, Jul 7, 2010 at 2:55 AM, colin@digital.fco.gov.uk colin@digital.fco.gov.uk wrote: I'm getting similar problems. With the use of simplexml_load_file, it loads other xml fine but not twitters!!! On Jul 7, 6:55 am, Pete phousle...@gmail.com wrote: Did you change the XML format today our application which has worked for a year reading XML data all of the sudden does not function today? Was there a format change without notice? -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] XML feed not loading as before - PHP
Hey Colin, You want to make sure you are using CURL to read from the API otherwise you loose all the header information we return. That being said, in your example the stack trace error will be thrown if we return an error. This is because you haven't checked that: $buffer !== FALSE; If there is an error your $buffer variable will be false which SimpleXMLElement cannot open. You can quickly check this on the command line using: curl -D - http://api.twitter.com/1/statuses/user_timeline/britishabroad.xml (the -D - means include headers in the output) You may find it easier to interact with the Twitter API through one of our community written libraries. http://dev.twitter.com/pages/libraries Hope that helps, Matt On Wed, Jul 7, 2010 at 2:42 AM, colin@digital.fco.gov.uk colin@digital.fco.gov.uk wrote: $twitter_url = http://api.twitter.com/1/statuses/user_timeline/ britishabroad.xml; $buffer = file_get_contents($twitter_url); $xml = new SimpleXMLElement($buffer); $status_item = $xml - status; $status = $status_item - text; echo $status; I am getting an error: Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/bhammers/demophon/dashboard/test.php:5 Stack trace: #0 /home/bhammers/demophon/dashboard/test.php(5): SimpleXMLElement-__construct('') #1 {main} thrown in /home/bhammers/ demophon/dashboard/test.php on line 5 Would appreciate any help. Thanks Colin -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Re: XML feed not loading as before - PHP
Colin, echo $buffer to see what you are getting from twitter. Could be a whale. Ryan On Jul 7, 10:42 am, colin@digital.fco.gov.uk colin@digital.fco.gov.uk wrote: $twitter_url = http://api.twitter.com/1/statuses/user_timeline/ britishabroad.xml; $buffer = file_get_contents($twitter_url); $xml = new SimpleXMLElement($buffer); $status_item = $xml - status; $status = $status_item - text; echo $status; I am getting an error: Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/bhammers/demophon/dashboard/test.php:5 Stack trace: #0 /home/bhammers/demophon/dashboard/test.php(5): SimpleXMLElement-__construct('') #1 {main} thrown in /home/bhammers/ demophon/dashboard/test.php on line 5 Would appreciate any help. Thanks Colin
Re: [twitter-dev] request token
Hi Shob, We strongly recommend you use a library for handling OAuth with Twitter until you are comfortable with how OAuth works. For VB I know of at least one library called TwitterVB: http://twittervb.codeplex.com/ This will do the OAuth heavy lifting for you so you can develop an application for use with Twitter quickly. If you then want to roll your own solution you could use the TwitterVB library to compare to the results you are getting from your function. Hope that helps, Matt On Tue, Jul 6, 2010 at 7:10 AM, Jacky jaga...@gmail.com wrote: Hullo, POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_tokenoauth_callback%3Doob%26oauth_consumer_key %3DhUMUUZO3Zx9zNzJ9DghcA%26oauth_nonce %3DDA39A3EE5E6B4B0D3255BFEF95601890AFD80709%26oauth_signature_method %3DHMAC-SHA1%26oauth_timestamp%3D1277424969%26oauth_version%3D1.0 and Oauth oauth_callback=oob, oauth_consumer_key=hUMUUZO3Zx9zNzJ9DghcA, oauth_nonce=DA39A3EE5E6B4B0D3255BFEF95601890AFD80709, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1277424969, oauth_version=1.0, oauth_signature=%2Ff8P1dS6QVQnYCIc10kD1%2Bm2DkI %3D using objhttp.Open POST, https://api.twitter.com/oauth/request_token;, False objhttp.setRequestHeader Content-type, application/x-www-form- urlencoded objhttp.setRequestHeader Authorization, strsend objhttp.send() Not working, how can I see the stream that is being loaded...or debug this... and strsend is Oauth and appended by the very first string up on top in this email Cant see the problem... Please help, if you can see anything outright off or wrong... Regards, Shob -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] US Location Stream
Hello James, Our current free access grants you 1024 calls per 24 hours for the moment. This should give you enough call credits to test the API. As of today, we grant higher-level access on a case by case basis. Please contact us for further discussion. Best regards, Jean-Charles Campagne On Tue, Jul 6, 2010 at 8:43 PM, James Kim ja...@keytweet.com wrote: Hi JC. What are the limits on free? We're wary of locking ourselves into a service that we won't be able to afford. On Mon, Jul 5, 2010 at 2:44 AM, Jean-Charles Campagne a...@semiocast.com wrote: Hello James, may be you would be interested in looking at our API which provides language and location filtering on tweets. More specifically, you'll find an example for filtering tweets based on location and on language under Example: filtering by language and location, located at the URL http://developer.semiocast.com/tutorial/twitter Do not hesitate to visit our API website: http://developer.semiocast.com or ask for more information. Hope you'll find this useful. Best regards, Jean-Charles Campagne Semiocast On Sat, Jul 3, 2010 at 1:26 AM, James Kim ja...@keytweet.com wrote: Hi John, Thanks for the quick reply. Is there a way to exclude non-english tweets from the stream like the search api does? On Fri, Jul 2, 2010 at 4:03 PM, John Kalucki j...@twitter.com wrote: Hi James, Nope. Even if we allowed all the bounding boxes to cover the US, you'd only get the tweets that are geo-tagged, which isn't a large proportion. -John On Fri, Jul 2, 2010 at 3:55 PM, James Kim ja...@keytweet.com wrote: Hi all, I'm trying to capture all the tweets originating from the US. Is there a simple way to do this without creating many bounding boxes? -- James C. Kim @jamesckim http://keytweet.com - a learning filter for twitter -- James C. Kim @jamesckim http://keytweet.com - a learning filter for twitter
[twitter-dev] Any way to get a REASON for why an account was suspended.
We are building a State of Twitter in St. Louis whitepaper for our local companies/agencies/etc. In doing this, we gathered the list of influential people from our own STLTweets site and are mining for extra information from Twitter, Klout, TrstRank, etc... For a couple high-ranking people we would be listing, we've noticed that they have been suspended in the last week or so (one's last tweet was 2 weeks ago in our mirror, and the other's last tweet was 1 week ago). I checked with the API and they show as suspended, but we can't fathom why based on the tweets WE have archived from them... the profile pictures aren't lewd, the tweets aren't spammy, etc... My CEO would love to know why these two people have dropped out of the ecosystem (because they will ask at this presentation). http://stltweets.com/People/Everything/Detail/kiconner http://twitter.com/KiConner http://api.twitter.com/1/users/show.xml?id=30913186 http://stltweets.com/People/Everything/Detail/shordeedoowhop http://twitter.com/ShordeeDooWhop http://api.twitter.com/1/users/show.xml?id=130768057 So, my request is could we get augmentation as to WHY these accounts were suspended in the API response? I would LOVE to be able to code accordingly (e.g. to be able to know if we should purge/suspend the accounts on our system, etc.) but I really can't take an action without knowing WHY they were suspended.
[twitter-dev] Twitter service authentication
Hello :) I am building a service for twitter apps to use which has an API thats quite simple. The question I have is that, I need to - from some kind of data the application sends me - get hold of the users twitter account to first, check if its a valid account, second to get their profile pic url and third to get their twitter name. Could anyone suggest to me the *valid* data I need the twitter application (that is already O/XAuth'd with twitter) to send to my API for me to get this information? Any help would be much appreciated! Thanks!
Re: [twitter-dev] Any way to get a REASON for why an account was suspended.
Hi, We don't disclose the reason for accounts being suspended to 3rd parties so there isn't a way to get that information if you don't own the account. If you do own the account you can email from the email address we have on record for it asking for the reason. The reason for accounts being suspended isn't limited to content so you shouldn't guess a reason based on the data available to you. Instead know that accounts can be suspended if they don't follow the Twitter rules: http://help.twitter.com/entries/18311 I'll follow up with some other team members about what you should be doing with suspended account data and get back to you. Hope that helps, Matt On Wed, Jul 7, 2010 at 12:27 PM, @IDisposable idisposa...@gmail.com wrote: We are building a State of Twitter in St. Louis whitepaper for our local companies/agencies/etc. In doing this, we gathered the list of influential people from our own STLTweets site and are mining for extra information from Twitter, Klout, TrstRank, etc... For a couple high-ranking people we would be listing, we've noticed that they have been suspended in the last week or so (one's last tweet was 2 weeks ago in our mirror, and the other's last tweet was 1 week ago). I checked with the API and they show as suspended, but we can't fathom why based on the tweets WE have archived from them... the profile pictures aren't lewd, the tweets aren't spammy, etc... My CEO would love to know why these two people have dropped out of the ecosystem (because they will ask at this presentation). http://stltweets.com/People/Everything/Detail/kiconner http://twitter.com/KiConner http://api.twitter.com/1/users/show.xml?id=30913186 http://stltweets.com/People/Everything/Detail/shordeedoowhop http://twitter.com/ShordeeDooWhop http://api.twitter.com/1/users/show.xml?id=130768057 So, my request is could we get augmentation as to WHY these accounts were suspended in the API response? I would LOVE to be able to code accordingly (e.g. to be able to know if we should purge/suspend the accounts on our system, etc.) but I really can't take an action without knowing WHY they were suspended. -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Rate limits should be resetting now
Hey everyone, We've been working on the rate limit issue which has been affecting many of you and believe we now have it fixed. As the issue affected people in different ways we want to be check your applications are working again. If your rate limit is still not resetting please email a...@twitter.com the following information: * The IP of the computer which is making the requests * A username you are making requests for * The time you tried to make the request * The request you were trying to make * Any response headers you received Thanks, Matt
[twitter-dev] Re: Rate limits should be resetting now
Does this mean a return to previous rate limits as well? Or are we still getting the squeeze? Isaiah On Jul 7, 5:54 pm, themattharris thematthar...@twitter.com wrote: Hey everyone, We've been working on the rate limit issue which has been affecting many of you and believe we now have it fixed. As the issue affected people in different ways we want to be check your applications are working again. If your rate limit is still not resetting please email a...@twitter.com the following information: * The IP of the computer which is making the requests * A username you are making requests for * The time you tried to make the request * The request you were trying to make * Any response headers you received Thanks, Matt
Re: [twitter-dev] Re: Rate limits should be resetting now
we are currently sitting at 100% - so 350 calls/hour on oauth, and 150 calls/hour on basic auth. fingers crossed! On Wed, Jul 7, 2010 at 6:42 PM, isaiah isa...@mac.com wrote: Does this mean a return to previous rate limits as well? Or are we still getting the squeeze? Isaiah On Jul 7, 5:54 pm, themattharris thematthar...@twitter.com wrote: Hey everyone, We've been working on the rate limit issue which has been affecting many of you and believe we now have it fixed. As the issue affected people in different ways we want to be check your applications are working again. If your rate limit is still not resetting please email a...@twitter.com the following information: * The IP of the computer which is making the requests * A username you are making requests for * The time you tried to make the request * The request you were trying to make * Any response headers you received Thanks, Matt -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Re: Rate limits should be resetting now
Quoting Raffi Krikorian ra...@twitter.com: we are currently sitting at 100% - so 350 calls/hour on oauth, and 150 calls/hour on basic auth. fingers crossed! Seems to be working fine here at the Bar Nothing Ranch - I'm getting Bad Gateway 502 errors but between instances of those, I'm getting 150 calls per hour unauthenticated. On Wed, Jul 7, 2010 at 6:42 PM, isaiah isa...@mac.com wrote: Does this mean a return to previous rate limits as well? Or are we still getting the squeeze? Isaiah On Jul 7, 5:54 pm, themattharris thematthar...@twitter.com wrote: Hey everyone, We've been working on the rate limit issue which has been affecting many of you and believe we now have it fixed. As the issue affected people in different ways we want to be check your applications are working again. If your rate limit is still not resetting please email a...@twitter.com the following information: * The IP of the computer which is making the requests * A username you are making requests for * The time you tried to make the request * The request you were trying to make * Any response headers you received Thanks, Matt -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
[twitter-dev] Getting feed for multiple accounts (how does hootsuite/tweetdeck do it so fast?)
Let's say I have five columns that show the @replies for five different twitter accounts. Since each account has its own authentication with oath, I would need to make 5 API calls to load up these columns. This seems inefficient and also slow. Is there anyway to speed this process up? Hootsuite seems to do this quite fast, do they actually make a request for every column when you load up their client. Do you guys have any suggestions on improving speed for this? Thanks! Alex