Re: problem returning a public status

2008-12-16 Thread Mark Ng

2008/12/16 Ninjamonk dar...@stuartmedia.co.uk:
 How do I get around this? I am not logged in with an account as it is
 not needed to access these files (public users status xml). It works
 fine on my local machine and I have done over 100 requests in an hour.

You can apply for a whitelisting based on just IP addresses, I do this
for twitfave, which doesn't use a logged in account to gather
favorites.

Mark


Re: problem returning a public status

2008-12-16 Thread Mark Ng

2008/12/16 Ninjamonk dar...@stuartmedia.co.uk:

 cool thanks, I just had to buy a unique ip address for this. any idea
 how long it takes once requested?

Mine was pretty quick, a day or two, if I recall, but I'm guessing
it'd depend on how busy the twitter people are at the time.

Mark


Re: problem returning a public status

2008-12-16 Thread Ninjamonk

cool thanks, I just had to buy a unique ip address for this. any idea
how long it takes once requested?

Kind Regards

Darren

On Dec 16, 11:30 am, fastest963 fastest...@gmail.com wrote:
 http://twitter.com/help/request_whitelisting


Profile image update returns 500 Internal Server Error

2008-12-16 Thread Toby Glenn

I get the 500 Internal Server Error when I try to update a profile
image. I am trying to do it using c# and I am not sure what is going
on. Here is a network sniff of my request:
No. TimeSourceDestination
Protocol Info
657 2.77551410.50.50.230  128.121.146.100
HTTP POST /account/update_profile_image.xml HTTP/1.1  (JPEG JFIF
image)

Frame 657 (85 bytes on wire, 85 bytes captured)
Ethernet II, Src: 00:21:70:6b:00:61 (00:21:70:6b:00:61), Dst:
Watchgua_30:99:52 (00:90:7f:30:99:52)
Destination: Watchgua_30:99:52 (00:90:7f:30:99:52)
Source: 00:21:70:6b:00:61 (00:21:70:6b:00:61)
Type: IP (0x0800)
Internet Protocol, Src: 10.50.50.230 (10.50.50.230), Dst:
128.121.146.100 (128.121.146.100)
Transmission Control Protocol, Src Port: hfcs (4900), Dst Port: http
(80), Seq: 28021, Ack: 26, Len: 31
[Reassembled TCP Segments (28051 bytes): #586(210), #621(129), #622
(1260), #623(1260), #627(1260), #628(1260), #629(1260), #630(1260),
#632(1260), #633(1260), #634(1260), #635(1260), #636(1260), #638
(1260), #639(1260), #640(1260), #641(1260]
Hypertext Transfer Protocol
MIME Multipart Media Encapsulation, Type: multipart/form-data,
Boundary: --8cb2dd5e785fac4
[Type: multipart/form-data]
First boundary: 8cb2dd5e785fac4\r\n
Encapsulated multipart part:  (image/jpeg)
Boundary: \r\n8cb2dd5e785fac4\r\n
Encapsulated multipart part:


Re: 403 Error using .xml Update status with HTTPConnection Post in j2me..

2008-12-16 Thread Scott Birksted
Ya this is very odd.

I set the request props in the header:
httpConn.setRequestProperty(Content-Type,application/x-www-form-urlencoded);
httpConn.setRequestProperty( Content-Length,
+encodedPostData.getBytes().length);

postData: status=testing
encodedPostData = c3RhdHVzPXRlc3Rpbmc=
encodedPostData len = 22

then write the encodedData to the output stream.

Checking the header details after that I see:
Content-Type : application/xml; charset=utf-8
Content-Length : 168

looks like some ghost in the (java) machine, I don't know why the headers
seem incorrect and the content-length isn't being properly set.

?xml version=1.0 encoding=UTF-8?
hash
  request/statuses/update.xml/request
  errorClient must provide a 'status' parameter with a value./error
/hash

-Scott


On Tue, Dec 2, 2008 at 4:31 PM, Matt Sanford m...@twitter.com wrote:

 Hello Scott,
 A few things come to mind. Make sure you're correctly setting the
 Content-Type header like so:

  Content-Type: application/x-www-form-urlencoded

 and also make sure you URL encod the status text. My first guess would
 be the URL encoding. If that does not work please try and capture the exact
 headers/body that you are sending (but be sure to obscure the Authoriztion
 header).

 Thanks;
   — Matt Sanford (@mzsanford)

 On Dec 2, 2008, at 11:47 AM, ScottB wrote:


 I keep getting this response to my attempts to post a status update
 from an app I'm writing.

 ?xml version=1.0 encoding=UTF-8?
 hash
  request/statuses/update.xml/request
  errorClient must provide a 'status' parameter with a value./
 error
 /hash

 Everything seems totally in order,

 using:
 http://twitter.com/statuses/update.xml

 I set the content length in the header, then open the HttpConnections
 outputstream, write the request bytes, flush it, then check the
 response code to send the request in that order.

 I'm under the impression that the content body of the request should
 be simply:

 status=*update_content_string_here*

 I've tried testing various different headers, adding the optional
 in_reply_to_status_id as well, but it just gives me that same 403
 error.


 Any help or verification that the
 http://twitter.com/statuses/update.xml
 works for others and that I'm using the correct parameter formatting
 would be greatly appreciated.

 Thanks





Re: Will this break your app? Chime in!

2008-12-16 Thread Cameron Kaiser

 As per http://code.google.com/p/twitter-api/issues/detail?id=202, I'd
 like to return a proper boolean in the JSON response for
 /friendships/exists.  Will this break your app?  If so, how much time
 to do you need to ship a fix?

TTYtter uses its own internal JSON parser and in fact special cases trivial
Booleans and stringified Booleans:

if ($data =~ /^[']?(true|false)[']?$/);

So it will accept any of true, true, false, false, etc. If you decided
to wrap it in something, though, I'd need to account for that. As described
in the issue, it should be okay.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- He whose face gives no light, shall never become a star. -- William Blake --


Re: Profile image update returns 500 Internal Server Error

2008-12-16 Thread Alex Payne

HTTP headers and such are a bit more helpful for debugging this, thanks!

On Tue, Dec 16, 2008 at 12:48, Toby Glenn tobygl...@gmail.com wrote:

 I get the 500 Internal Server Error when I try to update a profile
 image. I am trying to do it using c# and I am not sure what is going
 on. Here is a network sniff of my request:
 No. TimeSourceDestination
 Protocol Info
657 2.77551410.50.50.230  128.121.146.100
 HTTP POST /account/update_profile_image.xml HTTP/1.1  (JPEG JFIF
 image)

 Frame 657 (85 bytes on wire, 85 bytes captured)
 Ethernet II, Src: 00:21:70:6b:00:61 (00:21:70:6b:00:61), Dst:
 Watchgua_30:99:52 (00:90:7f:30:99:52)
Destination: Watchgua_30:99:52 (00:90:7f:30:99:52)
Source: 00:21:70:6b:00:61 (00:21:70:6b:00:61)
Type: IP (0x0800)
 Internet Protocol, Src: 10.50.50.230 (10.50.50.230), Dst:
 128.121.146.100 (128.121.146.100)
 Transmission Control Protocol, Src Port: hfcs (4900), Dst Port: http
 (80), Seq: 28021, Ack: 26, Len: 31
 [Reassembled TCP Segments (28051 bytes): #586(210), #621(129), #622
 (1260), #623(1260), #627(1260), #628(1260), #629(1260), #630(1260),
 #632(1260), #633(1260), #634(1260), #635(1260), #636(1260), #638
 (1260), #639(1260), #640(1260), #641(1260]
 Hypertext Transfer Protocol
 MIME Multipart Media Encapsulation, Type: multipart/form-data,
 Boundary: --8cb2dd5e785fac4
[Type: multipart/form-data]
First boundary: 8cb2dd5e785fac4\r\n
Encapsulated multipart part:  (image/jpeg)
Boundary: \r\n8cb2dd5e785fac4\r\n
Encapsulated multipart part:




-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


Re: Will this break your app? Chime in!

2008-12-16 Thread Alex Payne

Example response:

true

That's it :)  Just a bare boolean literal.

On Tue, Dec 16, 2008 at 17:06, Kazuho Okui kaz...@gmail.com wrote:

 This will break my app. 1 week to 10 days to get an approval from Apple.

 Also, please give us a example of new response.

 On Tue, Dec 16, 2008 at 4:53 PM, Cameron Kaiser spec...@floodgap.com wrote:

 As per http://code.google.com/p/twitter-api/issues/detail?id=202, I'd
 like to return a proper boolean in the JSON response for
 /friendships/exists.  Will this break your app?  If so, how much time
 to do you need to ship a fix?

 TTYtter uses its own internal JSON parser and in fact special cases trivial
 Booleans and stringified Booleans:

if ($data =~ /^[']?(true|false)[']?$/);

 So it will accept any of true, true, false, false, etc. If you decided
 to wrap it in something, though, I'd need to account for that. As described
 in the issue, it should be okay.

 --
  personal: http://www.cameronkaiser.com/ 
 --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
 -- He whose face gives no light, shall never become a star. -- William Blake 
 --





-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


Re: Will this break your app? Chime in!

2008-12-16 Thread Kazuho Okui

Thanks :)

Also, please consider to fix issue #157. If you do, I can use show
method only to get friends existence then I can reduce 1 API call.

http://code.google.com/p/twitter-api/issues/detail?id=157

Thanks,
Kazuho

On Tue, Dec 16, 2008 at 5:09 PM, Alex Payne a...@twitter.com wrote:

 Example response:

 true

 That's it :)  Just a bare boolean literal.

 On Tue, Dec 16, 2008 at 17:06, Kazuho Okui kaz...@gmail.com wrote:

 This will break my app. 1 week to 10 days to get an approval from Apple.

 Also, please give us a example of new response.

 On Tue, Dec 16, 2008 at 4:53 PM, Cameron Kaiser spec...@floodgap.com wrote:

 As per http://code.google.com/p/twitter-api/issues/detail?id=202, I'd
 like to return a proper boolean in the JSON response for
 /friendships/exists.  Will this break your app?  If so, how much time
 to do you need to ship a fix?

 TTYtter uses its own internal JSON parser and in fact special cases trivial
 Booleans and stringified Booleans:

if ($data =~ /^[']?(true|false)[']?$/);

 So it will accept any of true, true, false, false, etc. If you decided
 to wrap it in something, though, I'd need to account for that. As described
 in the issue, it should be okay.

 --
  personal: 
 http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
 -- He whose face gives no light, shall never become a star. -- William 
 Blake --





 --
 Alex Payne - API Lead, Twitter, Inc.
 http://twitter.com/al3x



Re: send a parameter named source

2008-12-16 Thread Pete Wingard
Thanks I think I found where

On Tue, Dec 16, 2008 at 8:16 PM, Pete Wingard petewing...@gmail.com wrote:

 I am using a PHP class that uses cURL and I am not an expert a OOp PHP this
 is the calling statement= $curTwitter = new twitter($twitter_user_name,
 $twitter_password);

 On Tue, Dec 16, 2008 at 7:54 PM, Cameron Kaiser spec...@floodgap.comwrote:


  Exactly how do I
 
  Please have your application send a parameter named source
  with a value of krumlrpagekrums when you POST updates to the Twitter
  API.
 
  The link to your application should show up on the Twitter site
  in the next 24 to 48 hours.
 
  using cURL PHP?

 The same way you post anything else, just with the extra argument. How
 was your app doing it before?

 --
  personal:
 http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
 ckai...@floodgap.com
 -- Bowl angry.
 




 --
 Pete Wingard

 Krumlr.Com
 MudSweatAndTears.Com
 PixelCast.Net
 TigerTailST.Com
  Yougler.Com

 Decatur, GA
 404.797.1646
 http://yougler.com/pete
 petewing...@gmail.com




-- 
Pete Wingard

Krumlr.Com
MudSweatAndTears.Com
PixelCast.Net
TigerTailST.Com
 Yougler.Com

Decatur, GA
404.797.1646
http://yougler.com/pete
petewing...@gmail.com


Re: send a parameter named source

2008-12-16 Thread krumlr

I am using a php class called Twitter that uses cURL so I am not sure
which parts I should tweek.

On Dec 16, 7:54 pm, Cameron Kaiser spec...@floodgap.com wrote:
  Exactly how do I

  Please have your application send a parameter named source
  with a value of krumlrpagekrums when you POST updates to the Twitter
  API.

  The link to your application should show up on the Twitter site
  in the next 24 to 48 hours.

  using cURL PHP?

 The same way you post anything else, just with the extra argument. How
 was your app doing it before?

 --
  personal:http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
 -- Bowl angry. 
 


Re: send a parameter named source

2008-12-16 Thread Anthony Papillion
If you're using the PHP library suggested on the Twitter site, take a look
at the class and find the method named updateStatus(). There, just add the
?source=your_source_keyword to the status update. Worked for me like a
charm.

HTH,
Anthony

On Tue, Dec 16, 2008 at 7:02 PM, krumlr petewing...@gmail.com wrote:


 I am using a php class called Twitter that uses cURL so I am not sure
 which parts I should tweek.

 On Dec 16, 7:54 pm, Cameron Kaiser spec...@floodgap.com wrote:
   Exactly how do I
 
   Please have your application send a parameter named source
   with a value of krumlrpagekrums when you POST updates to the Twitter
   API.
 
   The link to your application should show up on the Twitter site
   in the next 24 to 48 hours.
 
   using cURL PHP?
 
  The same way you post anything else, just with the extra argument. How
  was your app doing it before?
 
  --
   personal:
 http://www.cameronkaiser.com/--
Cameron Kaiser * Floodgap Systems *www.floodgap.com*
 ckai...@floodgap.com
  -- Bowl angry.
 



Re: Will this break your app? Chime in!

2008-12-16 Thread Colby Palmer

I added a fix to handle both responses, so I'm good.  I'll just look
out for your note that this fix is deployed and remove the old string
response.  Thanks for the heads up!


Re: send a parameter named source

2008-12-16 Thread Pete Wingard
Thanks Anthony I think I figured it out. Well see in 24-48 hours. Pete

Sent from my iPhone

On Dec 16, 2008, at 9:09 PM, Anthony Papillion papill...@gmail.com  
wrote:

 If you're using the PHP library suggested on the Twitter site, take  
 a look at the class and find the method named updateStatus().  
 There, just add the ?source=your_source_keyword to the status  
 update. Worked for me like a charm.

 HTH,
 Anthony

 On Tue, Dec 16, 2008 at 7:02 PM, krumlr petewing...@gmail.com wrote:

 I am using a php class called Twitter that uses cURL so I am not sure
 which parts I should tweek.

 On Dec 16, 7:54 pm, Cameron Kaiser spec...@floodgap.com wrote:
   Exactly how do I
 
   Please have your application send a parameter named source
   with a value of krumlrpagekrums when you POST updates to the  
 Twitter
   API.
 
   The link to your application should show up on the Twitter site
   in the next 24 to 48 hours.
 
   using cURL PHP?
 
  The same way you post anything else, just with the extra argument.  
 How
  was your app doing it before?
 
  --
   
  personal:http://www.cameronkaiser.com/--
Cameron Kaiser * Floodgap Systems *www.floodgap.com*  
 ckai...@floodgap.com
  -- Bowl angry.  
 



Re: Will this break your app? Chime in!

2008-12-16 Thread Alex Payne

At this point, I'm planning on a deploy on Friday, Dec 26.  Happy to
delay it if need be.

On Tue, Dec 16, 2008 at 19:31, Colby Palmer colbywo...@gmail.com wrote:

 I added a fix to handle both responses, so I'm good.  I'll just look
 out for your note that this fix is deployed and remove the old string
 response.  Thanks for the heads up!




-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


Re: follow gives 401 Not Authorized

2008-12-16 Thread Jesse Stay
Scratch this - I was checking the wrong user's credentials.  I know, I'm an
idiot. :-)

On Wed, Dec 17, 2008 at 12:09 AM, Jesse Stay jesses...@gmail.com wrote:

 I'm running a follow on behalf of a user, and I run verify_credentials for
 the user.  It returns full credentials and the full returned object for the
 user, signifying that user was successfully verified.  However, when I then
 run follow on that same authenticated user, I get a 401 Not Authorized
 message, saying (in the Error field), Could not authenticate you.

 Is anyone else seeing this, and why would I get this error when the user is
 already verified as authenticated?  This only recently started after the new
 verify_credentials API was released.

 Thanks,

 Jesse