Problems with updating profile image
Hello, I've been trying to update my profile image using the account method update_profile_image. However, the server keeps returning the error There was a problem with your picture. Probably too big. The photo I am trying to upload is a jpg less than 700 kilobytes in size. Below is the request body and request response. Request body: POST /account/update_profile_image.xml HTTP/1.1 Authorization: Basic encoded credentials here User-Agent: Jakarta Commons-HttpClient/3.1 Host: twitter.com Content-Length: 71440 Content-Type: multipart/form-data; boundary=tUGDGHg6- mbUEjVXYFhFWeb_NFmBUxiXOK --tUGDGHg6-mbUEjVXYFhFWeb_NFmBUxiXOK Content-Disposition: form-data; name=Sunset.jpg; filename=Sunset.jpg Content-Type: application/octet-stream; charset=ISO-8859-1 Content-Transfer-Encoding: binary binary data here --tUGDGHg6-mbUEjVXYFhFWeb_NFmBUxiXOK-- Response body: HTTP/1.1 403 Forbidden Date: Sat, 06 Dec 2008 07:59:53 GMT Server: hi Last-Modified: Sat, 06 Dec 2008 07:59:53 GMT Status: 403 Forbidden Pragma: no-cache Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post- check=0 Content-Type: application/xml; charset=utf-8 Content-Length: 183 Expires: Tue, 31 Mar 1981 05:00:00 GMT Set-Cookie: _twitter_sess=BAh7BzoHaWQiJWRhOWNmNjI1MGM5MjRmYWIwOGEzOGQwNTQyYzNmZTNjIgpm %250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG %250AOgpAdXNlZHsA--d9fe4dcadf2064553d3371c9fe767ff009f20c21; domain=.twitter.com; path=/ Vary: Accept-Encoding Connection: close ?xml version=1.0 encoding=UTF-8? hash request/account/update_profile_image.xml/request errorThere was a problem with your picture. Probably too big./ error /hash Does the request body look correct? Does anyone have a sample of what the request body should look like if this is not correct? Thanks.
Re: Question regarding the rate limit and my program. Auth and IP Addresses
Hey, I'm making a small-application for our apartment complex at the university I'm attending. It's going to be used for campus announcements and requests. A lot of people have the same ip addresses, as both our university and local apartment complex use the same low-level internet provider. We often get a message in windows that another user has the same ip address as one of us. It's annoying! Anyways, my question: I know I'm going to be using the API (rss mainly) more than 100 times per hour with as many people as we're expecting 1.) If I make the users create accounts, and I authenticate them when getting status feeds... will that work even if a lot of them have the same ip address? Like, does the rate limit take in account their ip address if they're authenticated? I've tried testing this by using http://username:[EMAIL PROTECTED]/statuses/user_timeline/x.rss I'm still rate limited, even if I use another username and password combination. I'm hoping what I tried for an example isn't the same thing as HTTP basic auth. 2.) Another question. Is there any way to set twitter to auto-send an email when a user they're following posts a new tweet? 1. Rate limit is either by user, or by IP. If they're signed in, it should not be limiting by IP at the same time. You might look at the rate_limit_status method to see if the rate limit is really what is affecting you. 2. I can't speak for the Twitter team, but I suspect 40,000+ emails being sent out because Scoble blew his nose is not going to scale well. ps: I dont think my browser is working correctly. New to Google Groups. I posted, but nothing showed up. Trying to send through my email. Sry!! New subscribers to this group are automatically moderated due to the large amount of (now unsuccessfully attempted) spam the group receives. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * [EMAIL PROTECTED] -- I'd love to go out with you, but I'll be at the opening of my garage door.
Re: Help for a non-techie
Is it possible to create a follow me link that rather than sending my blog readers through to my twitter home page, just signs them up as a follower and keeps them on my blog page they are reading? If this were possible, I would consider it a tremendous security hole, as it means things like redirect chains and so on could also do this operation. Essentially it would be a form of CSRF. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * [EMAIL PROTECTED] -- If you had any brains at all, you'd be dangerous. --
Subsequent identical messages ignored?
I'm creating a Java app that updates my Twitter account's status on a certain event. I'm able to update the status once (i.e. Hello World!), but when I submit subsequent statuses with the identical text, my Twitter feed does not get updated When I change the text slightly (Hello World 2!), the update does get added to my stream. I am receiving HTTP response code 200's on all my requests. I also tested whether it was a frequency limit, but I'm able to update unique statuses in fairly rapid succession (i.e. 2 or 3 within ten seconds). Does Twitter ignore subsequent identical posts? The API doc doesn't mention this. I'm not setting a in_reply_to_status_id parameter or anything. Would that help? I'd prefer not to do that because I haven't been able to parse the content of the request other than the response codes.
Re: Firehose API's total load rate?
We've designed the firehose solution to handle that volume and much, much higher. On Sat, Dec 6, 2008 at 00:48, tweetip [EMAIL PROTECTED] wrote: Brendan, we've designed our server for processing 500 msgs per sec during a spike Event. I'm not sure if twitter spikes that high now, but it will. I'm also unsure if the firehose will deliver that volume. -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x
Re: Problems with updating profile image
The test we use for this method is to use curl: curl -F '[EMAIL PROTECTED]/to/test/image.jpg' -u USERNAME:PASSWORD http://twitter.com/account/update_profile_image.xml If you use an HTTP proxy, you can see it generating the appropriate request and response. On Sat, Dec 6, 2008 at 00:09, Lien Tran [EMAIL PROTECTED] wrote: Hello, I've been trying to update my profile image using the account method update_profile_image. However, the server keeps returning the error There was a problem with your picture. Probably too big. The photo I am trying to upload is a jpg less than 700 kilobytes in size. Below is the request body and request response. Request body: POST /account/update_profile_image.xml HTTP/1.1 Authorization: Basic encoded credentials here User-Agent: Jakarta Commons-HttpClient/3.1 Host: twitter.com Content-Length: 71440 Content-Type: multipart/form-data; boundary=tUGDGHg6- mbUEjVXYFhFWeb_NFmBUxiXOK --tUGDGHg6-mbUEjVXYFhFWeb_NFmBUxiXOK Content-Disposition: form-data; name=Sunset.jpg; filename=Sunset.jpg Content-Type: application/octet-stream; charset=ISO-8859-1 Content-Transfer-Encoding: binary binary data here --tUGDGHg6-mbUEjVXYFhFWeb_NFmBUxiXOK-- Response body: HTTP/1.1 403 Forbidden Date: Sat, 06 Dec 2008 07:59:53 GMT Server: hi Last-Modified: Sat, 06 Dec 2008 07:59:53 GMT Status: 403 Forbidden Pragma: no-cache Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post- check=0 Content-Type: application/xml; charset=utf-8 Content-Length: 183 Expires: Tue, 31 Mar 1981 05:00:00 GMT Set-Cookie: _twitter_sess=BAh7BzoHaWQiJWRhOWNmNjI1MGM5MjRmYWIwOGEzOGQwNTQyYzNmZTNjIgpm %250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG %250AOgpAdXNlZHsA--d9fe4dcadf2064553d3371c9fe767ff009f20c21; domain=.twitter.com; path=/ Vary: Accept-Encoding Connection: close ?xml version=1.0 encoding=UTF-8? hash request/account/update_profile_image.xml/request errorThere was a problem with your picture. Probably too big./ error /hash Does the request body look correct? Does anyone have a sample of what the request body should look like if this is not correct? Thanks. -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x
Re: How to find out how many API requests have been used?
Thank you. On Dec 4, 11:00 am, Alex Payne [EMAIL PROTECTED] wrote: We do limit the number of updates a client can send over a period time to prevent spammers. That time period may change, and the number of updates one can post is much higher than most uses would dictate, but if you really need to be posting that frequently, please apply for whitelisting to lift the limit:http://twitter.com/help/request_whitelisting. On Wed, Dec 3, 2008 at 18:17, maximz2005 [EMAIL PROTECTED] wrote: Today, I've increased the time interval to two minutes, and so far, I think it's working without problems with posting. I've just set the interval to 1 minute, do you think it will give me posting problems? On Dec 2, 10:13 pm, maximz2005 [EMAIL PROTECTED] wrote: So if I increased this time interval to a minute or two, do you think posting would work? Thanks, -maximz2005 On Dec 1, 8:57 pm, Cameron Kaiser [EMAIL PROTECTED] wrote: Do you by any chance know whether updatingstatuscounts against the rate limit? It does not. I wrote a little test program for playing around with the API, that simply posts the time as astatusmessageevery 30 seconds. Sometimes, when I go online and check thestatusmessages, they stop abruptly, but the client doesn't give me a 404 error. Is this evidence of reaching the limit? No, it just means it wasn't posted. However, a test like that being posted out every 30 seconds over and over could be construed as a runaway bot to be filtered. You might not want to constantly update that frequently. -- personal:http://www.cameronkaiser.com/-- Cameron Kaiser * Floodgap Systems [EMAIL PROTECTED] -- I like my women like my coffee: weak, cold and bitter. -- Kevin Metcalf -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x
Re: What fields can I pull from public timeline atom feeds or the upcoming firehose?
Sounds good. Thanks Alex. Btw, will the firehose have the same capacity to filter before pulling (or received the push) as regular feeds do (via advanced search or elements in the feed URL directly)? On Dec 6, 2:37 am, Alex Payne [EMAIL PROTECTED] wrote: The firehose will provide all the fields returned in the REST API. Our Atom feed is limited to those attributes that fit an Atom entry; use XML or JSON for all attributes. On Fri, Dec 5, 2008 at 12:37, drupalot [EMAIL PROTECTED] wrote: Looks like I can pull username, tweet (text and URL) and timestamp from the public timeline (or advanced search slice of the public timeline) atom feed. Can I also pull image, reply-to URL, and location? If not, will the upcoming firehose provide these additional fields by any chance, or is there another aspect of the search API I could utilize for this? Thanks for any help on this front. -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x
Re: twitter search + Google + Site search
You could use Lijit. ;) Yes, that was shameless self promotion for the company I work with. But seriously, you'd have some problems with Google because I don't think Google has a publicly available search API. -- Aaron Brazell web:: www.technosailor.com phone:: 410-608-6620 skype:: technosailor twitter:: @technosailor On Sat, Dec 6, 2008 at 2:11 PM, desinformado [EMAIL PROTECTED] wrote: Hello people, I am setting a tech gadget search related website and I would like to know how to pass the search parameters from my site search to Google and Twitter Search. If a visitor search for something in my site the result come from twitter + my site search + google search. Any help?
Re: twitter search + Google + Site search
Google Custom Search Engine might work: http://www.google.com/coop/cse/ You can set it up to search all of google while emphasizing results from your site and twitter. On Sat, Dec 6, 2008 at 14:10, Aaron Brazell [EMAIL PROTECTED] wrote: You could use Lijit. ;) Yes, that was shameless self promotion for the company I work with. But seriously, you'd have some problems with Google because I don't think Google has a publicly available search API. -- Aaron Brazell web:: www.technosailor.com phone:: 410-608-6620 skype:: technosailor twitter:: @technosailor On Sat, Dec 6, 2008 at 2:11 PM, desinformado [EMAIL PROTECTED] wrote: Hello people, I am setting a tech gadget search related website and I would like to know how to pass the search parameters from my site search to Google and Twitter Search. If a visitor search for something in my site the result come from twitter + my site search + google search. Any help? -- | Abraham Williams | Web Developer | http://abrah.am | Brazen Careerist | Pro Hacker | http://www.brazencareerist.com | PoseurTech LLC | Mashup Ambassador | http://poseurte.ch | Web608 | Community Evangelist | http://web608.org | This email is: [] blogable [x] ask first [] private
Re: twitter search + Google + Site search
Google does have a public API, its AJAX API (which is just a JSON-over-HTTP API) http://code.google.com/apis/ajaxsearch/ and if you're in to python http://anyall.org/blog/2008/11/python-bindings-to-googles-ajax-search-api/ Brendan On Sat, Dec 6, 2008 at 12:10 PM, Aaron Brazell [EMAIL PROTECTED]wrote: You could use Lijit. ;) Yes, that was shameless self promotion for the company I work with. But seriously, you'd have some problems with Google because I don't think Google has a publicly available search API. -- Aaron Brazell web:: www.technosailor.com phone:: 410-608-6620 skype:: technosailor twitter:: @technosailor On Sat, Dec 6, 2008 at 2:11 PM, desinformado [EMAIL PROTECTED] wrote: Hello people, I am setting a tech gadget search related website and I would like to know how to pass the search parameters from my site search to Google and Twitter Search. If a visitor search for something in my site the result come from twitter + my site search + google search. Any help?
Search API Rate Limiting
Hi Matt, I am noticing I am getting rate-limited by the Search API more and more frequently. I just got limited with a Retry-After value of 800 (or about 13 minutes). I'm not sure how much more my calm can be enhanced in a 13 minute period, but this does not bode well for my search apps such as TweetGrid.com. Can you say what exactly qualifies as exceeding the rate limit for search? There are no hard numbers in the docs. Is it possible to whitelist an app by referrer? TweetGrid works by querying the search servers from the clients' browsers, so whitelisting my server IP would be of no use. Request/Response headers are below: Thanks, -Chad Headers for reference: Request Headers Hostsearch.twitter.com User-AgentMozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 Accept*/* Accept-Languageen-us,en;q=0.5 Accept-Encodinggzip,deflate Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive300 Connectionkeep-alive Referer http://tweetgrid.com/grid?l=1q1=jazzychadq2=tweetgrid+OR+%22tweet+grid%22 Cookierpp=100; __utmz=110314503.1227378583.81.2.utmcsr=twitter.com |utmccn=(referral)|utmcmd=referral|utmcct =/home; __utma=110314503.2390361217092253000.1216939739.1227380887.1228599709.83; __utma=43838368.64616265 .1208222991.1228589665.1228593169.206; __utmv=43838368.lang%3A%20en_US; __utmxx=43838368.2859631981918557 :1228059149:2592000; __utmx=43838368.2859631981918557:1:3; __utmz=43838368.1228108435.204.12.utmcsr =tweetgrid.com|utmccn=(referral)|utmcmd=referral|utmcct=/grid; __qca=1204080243-25856624-1326010; __utmc =43838368; _twitter_sess=BAh7CjoMY3NyZl9pZCIlMWFhZWZjZDY0ZjMxZjMyMWVhZjYxMjVhNjY4ZmY1%250AOGY6CXVzZXIwOg5yZXR1cm5fdG8iIWh0dHA6Ly90d2l0dGVyLmNvbS90d2Vl %250AdGdyaWQiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFz%250AaEhhc2h7AAY6CkB1c2VkewA6B2lkIiU5NGYzMTlkYmU5ZmI1M2U2MDg2OGNl %250ANjU5OTkzNjhmYQ%253D%253D--10fb9d01aceab6d2682b213515f18ae15dff5fe6; _search_twitter_sess=BAh7BzoMY3NyZl9pZCIlNjVkMjZlOGRjMjdiMWI0NWEwODZmMDg0ZjZmZGI3 %0AMTAiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh%0Ac2h7AAY6CkB1c2VkewA%3D--fc15a28d4723f2c07c2c77ef5dddb01e84a14843 ; __utmc=110314503 Response Headers DateSat, 06 Dec 2008 23:10:43 GMT Serverhi Status503 Service Unavailable Retry-After414 X-Runtime0.04179 Cache-Controlno-cache, max-age=300 Content-Typetext/html; charset=utf-8 X-Served-Bysearchweb006.twitter.com ExpiresSat, 06 Dec 2008 23:15:43 GMT VaryAccept-Encoding Content-Encodinggzip Content-Length66 Connectionclose
Re: Subsequent identical messages ignored?
I've been guessing this new check is why posting an update is taking so long?
Re: Subsequent identical messages ignored?
It's not new, and we haven't had any other reports of updates lagging. On Sat, Dec 6, 2008 at 15:25, tweetip [EMAIL PROTECTED] wrote: I've been guessing this new check is why posting an update is taking so long? -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x