Re: [twitter-dev] twttr.anywhere errors in IE8

2011-01-04 Thread Mauro Asprea
Hey Matt thanks for your reply ;)

The same page works in other browsers FF, Chrome (Mac and Win). The twitter
button works too. I first though it was a problem with the dependencies not
being loaded, but after seeing that nobody else have the issue and coding a
loop just before the function call to wait till the anywhere gets
created did not prove anything I am kind of hopeless...

The IE dev tools break when twttr.anywhere is called and says something like
Object doesn’t support this property or method

I will try to to put online a test case of this and let you now ;)

Thanks!

On Tue, Jan 4, 2011 at 1:01 AM, Matt Harris thematthar...@twitter.comwrote:

 Hey Mauro,

 Does the @anywhere code work on any other page and can you create a test
 page with just that in it?

 Also, do the IE developer tools include any javascript error information?

 Best,
 @themattharris
 Developer Advocate, Twitter
 http://twitter.com/themattharris


 On Mon, Jan 3, 2011 at 1:44 PM, Mauro Asprea mauroasp...@gmail.comwrote:

 Hi, I am having issues with the http://platform.twitter.com/anywhere.js

 In IE8 it seems to fail somewhere and the twttr.anywhere function is never
 created. There is some debug version of the js so I can, well, debug it?
 Can't really share the url of the site since it's not online yet...

 It is happening only in a page where the twitter share button is also
 implemented. In all the other pages where there is no twitter button is
 working Ok also it is working Ok with other browsers.

 This is the code of an anchor being buttonized:

 a href=http://twitter.com/share; class=twitter-share-button

 data-lang=None

 data-url=
 http://www.amazon.co.uk/gp/item-dispatch/ref=cm_wl_addtocart_v/278-2287254-9887803?tag=amzwishlist-21associate-id=amzwishlist-21ie=UTF8quantity.1=1offeringID.1=PhLaWZPqTP%252BrQE0KwFR2PC6Z%252BH2HQk727v3tL%252F%252B2jl9vtPvFKIFEhtQ6IVucXFB%252Bseg7JWrFeSNxWEi%252FxqtW6XJS%252BozYPNcnsubmit.addToCart=1registryID.1=1EJC1GJXUD7IFsignInToHUC=0registryItemID.1=IV8C1KSAVE71Ksession-id=278-2287254-9887803
 

 data-text=My new wish is: Words that Sell, Revised and Expanded Edition:
 The ...

 data-count=noneTweet/a


 Any ideas?

 Thanks!

 --
 Mauro Sebastián Asprea

 E-Mail: mauroasp...@gmail.com
 Mobile: +34 654297582
 Skype: mauro.asprea

 Algunos hombres ven las cosas como son y se preguntan porque. Otros sueñan
 cosas que nunca fueron y se preguntan por qué no?.
 George Bernard Shaw

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk




-- 
Mauro Sebastián Asprea

E-Mail: mauroasp...@gmail.com
Mobile: +34 654297582
Skype: mauro.asprea

Algunos hombres ven las cosas como son y se preguntan porque. Otros sueñan
cosas que nunca fueron y se preguntan por qué no?.
George Bernard Shaw

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] /1/friendships/lookup.json doesn't accept POST method

2011-01-04 Thread Yusuke Yamamoto
got  it.

Thanks for the response.
-- 
Yusuke Yamamoto
yus...@mac.com

this email is: [x] bloggable/tweetable [ ] private
follow me on : http://twitter.com/yusukeyamamoto
subscribe me at : http://samuraism.jp/

On Jan 4, 2011, at 09:26 , Matt Harris wrote:

 Hi Yusuke,
 
 users/lookup supports POST for historical reasons so support hasn't been 
 removed. friendships/lookup is more recent and it was decided that the 
 correct HTTP request for this is a GET.
 
 Hope that helps,
 @themattharris
 Developer Advocate, Twitter
 http://twitter.com/themattharris
 
 
 On Fri, Dec 31, 2010 at 7:52 AM, Yusuke Yamamoto yus...@mac.com wrote:
 If it's done by design, it's okay.
 I just think it's not consistent with users/lookup method which accepts POST 
 method.
 http://dev.twitter.com/doc/get/users/lookup
 
 --
 Yusuke Yamamoto
 yus...@mac.com
 
 this email is: [x] bloggable/tweetable [ ] private
 follow me on : http://twitter.com/yusukeyamamoto
 subscribe me at : http://samuraism.jp/
 
 On Jan 1, 2011, at 00:45 , Tom van der Woerdt wrote:
 
  Since you're actually GETting information and not POSTing information, yes, 
  you should use GET.
 
  Tom
 
 
  On 12/31/10 4:35 PM, Yusuke Yamamoto wrote:
  Hi,
 
  /1/friendships/lookup.json returns This method requires a GET. with POST 
  method as follows:
  -
  {request:\/1\/friendships\/lookup.json?screen_name=barakobama,twit4j2,twit4jprotected,error:This
   method requires a GET.}
  -
 
  Is it done by design?
  The method accepts up to 100 screen names and it would be nice to accept 
  POST method as same as /1/users/lookup.
 
  Thanks,
 
  --
  Twitter developer documentation and resources: http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker: 
  http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group: 
  http://groups.google.com/group/twitter-development-talk
 
 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk
 
 
 -- 
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Beginner's trouble with OAuth (using Abraham's PHP library)

2011-01-04 Thread Tom van der Woerdt
You may like to know that you can make your server show errors by using 
either ini_set('display_errors', 'On'); or setting display_errors to 
On in your php.ini. Also check error_reporting, set it to E_ALL for 
optimal debugging.


Tom


On 1/4/11 6:47 AM, Dave The Happy Singer wrote:

Aha! Problem solved!

As you noted, print_r($v) wasn't printing anything. Moving print_r($t)
to after the get() call wiped all output but 'pre'.

The problem? For some reason, my PHP installation wasn't displaying
errors. A look in the apache log revealed that this was masking 'Fatal
error: Call to undefined function: curl_init()'.

Installing php5-curl and rebooting solved my problem, and now I appear
to be in business.

Thank you ever so much for your time, Abraham. I wonder if it would be
an idea for your library to catch the failure of curl_init() and add an
error status to the object? No biggie, though. There was no-one to blame
but myself here; sorry!

Dave
(@HappySinger)

On 4 January 2011 16:08, Abraham Williams 4bra...@gmail.com
mailto:4bra...@gmail.com wrote:

Try printing $t after you make the get request. Where you are
printing $t now it doesn't contain any info from the actual request.
I also don't see anything printed from $v. $v should be printing any
error messages returned from Twitter. If $v is not printing anything
or http_code is 0 then your server is probably are able to connect
to https://api.twitter.com.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am http://abrah.am
@abraham https://twitter.com/abraham | github.com/abraham
https://github.com/abraham | blog.abrah.am http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Mon, Jan 3, 2011 at 20:26, Dave The Happy Singer
sm...@davethehappysinger.com mailto:sm...@davethehappysinger.com
wrote:

Hi there,

Based on the instructions at: https://gist.github.com/564882, I
am trying to set up the TwitterOAuth object, but I seem to be
falling at the first hurdle, even before I try authenticating
another user.

With the code:

pre
?php
 error_reporting(E_ALL);
 require_once('twitteroauth/twitteroauth.php');
 require_once('config.php');
 $t = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

 print_r($t);
 $v = $t-get('account/verify_credentials');
 print_r($v);
?
/pre

I am getting the following output:

TwitterOAuth Object
(
 [http_code] =
 [url] =
 [host] = https://api.twitter.com/1/
 [timeout] = 30
 [connecttimeout] = 30
 [ssl_verifypeer] =
 [format] = json
 [decode_json] = 1
 [http_info] =
 [useragent] = TwitterOAuth v0.2.0-beta2
 [sha1_method] = OAuthSignatureMethod_HMAC_SHA1 Object
 (
 )

 [consumer] = OAuthConsumer Object
 (
 [key] = apparently correct
 [secret] = apparently correct
 [callback_url] =
 )

 [token] = OAuthConsumer Object
 (
 [key] = apparently correct
 [secret] = apparently correct
 [callback_url] =
 )

)

As you can see, I am not getting the methods 'get', 'post' etc.
in my object $t when I instantiate it, and I can go no further.

I'm confuzzled, and would be grateful for any tips!

Dave

--
Twitter developer documentation and resources:
http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk


--
Twitter developer documentation and resources:
http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk


--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk


--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: 

[twitter-dev] Re: Twitter iOS SDK

2011-01-04 Thread Rich
There isn't on, at least no official iOS SDK from Twitter themselves.

Take a look at MGTwitterEngine (https://github.com/mattgemmell/
MGTwitterEngine)

On Jan 3, 11:58 pm, Lingzhi Zhang lzzh...@gmail.com wrote:
 Hi,

 Is there a Twitter iOS SDK available? I am looking for something
 similar to Facebook iOS SDK, which is official release from
 Facebook, includes same look and feel, sample code and demo.

 I looked a couple of iPhone App which integrate Twitter, they have
 same UI (at least login), where are these kind of SDK available?

 Thanks.

 Steve

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: PHP OAuth app stopped working magically

2011-01-04 Thread Nicolás López Zerpa
Thanks you, It worked! :D

On Jan 3, 11:48 pm, @epc epcoste...@gmail.com wrote:
 On Jan 3, 8:29 am, Nicolás López Zerpa nico89...@gmail.com wrote:

  Authorization: OAuth
  oauth_version=1.0,oauth_consumer_key=ir4GfsoPEjUNHWD1fpevgA,oauth_times 
  tamp=1294056882,oauth_nonce=9e61a75246ee4c0195f4c75c4ad53943,oauth_sign 
  ature_method=HMAC-
  SHA1,oauth_signature=r8Fq9Lr9FUAgBtzgndIF6oXJwsE%3D

 Check to make sure your clock is accurate, the timestamp in that auth
 line is over an hour earlier than your post (which I realize could be
 just when you copied it, but on the chance that you tried to authorize
 just before posting, verify that your clock is accurate).
 --
 -ed costello

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Authorization with Oauth from Siebel

2011-01-04 Thread THusvaeg
Hi,

We are setting up, my first time, an Oauth connection with Twitter
from Oracle's Siebel.

But we are consistently getting a 401 unauthorized return when sending
the HTTP Transport Service request (a Siebel utility).

This is what I am doing:

-- Consumer Key and Secret are random test values for sharing. If
anyone could test with these values and confirm my signature output
that would be great :)

oauth_nonce: QP70eNmV5123456GSD1GSz44ddRRjvdfSR
oauth_timestamp: 1294118553
oauth_consumer_key: TestValu31xyz678s
oauth_consumer_secret: TestValu32xyz234a
oauth_signature_method: HMAC-SHA1
oauth_version: 1.0

encoded parameter string:

oauth_consumer_key%3DTestValu31xyz678s%26oauth_nonce
%3DQP70eNmV5123456GSD1GSz44ddRRjvdfSR%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1294118389%26oauth_version%3D1.0
encoded target string: https%3A%2F%2Fapi.twitter.com%2Foauth
%2Frequest_token

complete base string:

POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
%2Frequest_tokenoauth_consumer_key%3DTestValu31xyz678s%26oauth_nonce
%3DQP70eNmV5123456GSD1GSz44ddRRjvdfSR%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1294118389%26oauth_version%3D1.0

signature key: TestValu32xyz234a

oauth_signature (encoded): yd%2BOcLXp86pfpER58mAy%2FBd%2FLTo%3D

URL string:

https://api.twitter.com/oauth/request_token?oauth_consumer_key%3DTestValu31xyz678s%26oauth_nonce%3DQP70eNmV5123456GSD1GSz44ddRRjvdfSR%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1294118389%26oauth_version%3D1.0%26oauth_signature%3Dyd%2BOcLXp86pfpER58mAy%2FBd%2FLTo%3D

OAuth header:

OAuth oauth_consumer_key=TestValu31xyz678s,
oauth_nonce=QP70eNmV5123456GSD1GSz44ddRRjvdfSR,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1294118389,
oauth_version=1.0, oauth_signature=yd%2BOcLXp86pfpER58mAy%2FBd%2FLTo
%3D

This header sendt towards: http://api.twitter.com/oauth/request_token

Gives the following result (not the same timestamp as example above):

*** HTTP Transport Parameters:

Request URL = https://api.twitter.com/oauth/request_token
Request Method = POST
Timeout secs = 12

XML document will be generated with 'UTF-8' character encoding

Sending Request

*** HTTP request Headers for Data Send Request:

User-Agent: Mozilla/4.0
Accept: text/*
Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Authorization: OAuth oauth_consumer_key=TestValu31xyz678s,
oauth_nonce=QP70eNmV5123456GSD1GSz44ddRRjvdfSR,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1294118553,
oauth_version=1.0, oauth_signature=D3uVyQ7oghvpCagAXao2GavJP0Y%3D

*** HTTP response Headers from Data Send request:

HTTP/1.1 401 Unauthorized
Date: Tue, 04 Jan 2011 06:22:34 GMT
Server: hi
Status: 401 Unauthorized
X-Transaction: 1294122154-62378-47009
Last-Modified: Tue, 04 Jan 2011 06:22:34 GMT
X-Runtime: 0.01048

Content-Type: text/html; charset=utf-8
Content-Length: 44
Pragma: no-cache
X-Revision: DEV

Expires: Tue, 31 Mar 1981 05:00:00 GMT

Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
check=0
Set-Cookie: k=138.62.0.20.1294122154201712; path=/; expires=Tue, 11-
Jan-11 06:22:34 GMT; domain=.twitter.com
Set-Cookie: guest_id=12941221542108965; path=/; expires=Thu, 03 Feb
2011 06:22:34 GMT
Set-Cookie: _twitter_sess=##; domain=.twitter.com; path=/

Vary: Accept-Encoding
Connection: close

*** HTTP response Body from Data Send request:

Regards,
Thomas Husvæg

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Why is the people search in the @Anywhere API restricted to first page.

2011-01-04 Thread Pradheep A R
Hi,

i have a requirement of fetching more than 20 people search results
from the Twitter API.

As per http://dev.twitter.com/doc/get/users/search, the page
attribute allows us to get the nth page of a search.
So i can make multiple HTTP requests to get more people.

However, i couldn't find a way to pass this page parameter in the
@Anywhere Javascript API.

T.User.search(query) takes only one argument for the q paremeter to
be used in the HTTP API.

Why is it not allowed through the JS API while it is allowed in the
HTTP API?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Twitter's mobile oauth page waits 10 seconds before redirecting

2011-01-04 Thread Russell Davis
I tested it in the Android emulator. I used HTTP Analyzer to capture the 
content of the page, where I saw the meta tag.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Search API and location

2011-01-04 Thread Sarah - DataSift
Hi Tom,

DataSift is still in closed Alpha but we have enabled a large number
of users within the Alpha to date and will add additional users for
the Beta so if you'd like early access it's well worth signing up on
http://datasift.net and you may find you get in before we launch the
consumer release version.

Many thanks
Sarah
Community Manager
DataSift.net

On Dec 29 2010, 11:50 am, Tom van der Woerdt i...@tvdw.eu wrote:
 On 12/29/10 10:40 AM, L. Mohan Arun wrote:

  I just tried to construct a query that searches for users by location,
  as it is registered in the location field of their profiles. I had no
  luck and it seems this is not possible.

  You can also do this using Datasift's FSDL.

  ✿✿✿ Mohan ✿✿✿

 DataSift is still in closed alpha testing phase...

 Tom

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Exposing IP addresses for legal threats

2011-01-04 Thread Felipe Knorr Kuhn
Hello everyone,

Although this is probably not the best list to discuss this, perhaps you
guys have some experience to share.

A friend of mine is being threated by a Twitter user via DMs and public
messages.

He doesn't know the identity of the user and thought about tracking him via
the IP he uses to post to Twitter.

The API does not expose IP addresses, does it?

He lives in Brazil and believed he could contact the ISP to track the user,
since filing an international lawsuit to Twitter asking for this information
and only then contact the ISP would be very time and money consuming.

Thanks,

FK

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Exposing IP addresses for legal threats

2011-01-04 Thread Scott Wilcox
No, there is no API methods to access IP addresses for tweets. I'd suggest 
contacting local law enforcement and taking it from there.

Scott.

On 4 Jan 2011, at 14:39, Felipe Knorr Kuhn wrote:

 Hello everyone,
 
 Although this is probably not the best list to discuss this, perhaps you guys 
 have some experience to share.
 
 A friend of mine is being threated by a Twitter user via DMs and public 
 messages.
 
 He doesn't know the identity of the user and thought about tracking him via 
 the IP he uses to post to Twitter.
 
 The API does not expose IP addresses, does it?
 
 He lives in Brazil and believed he could contact the ISP to track the user, 
 since filing an international lawsuit to Twitter asking for this information 
 and only then contact the ISP would be very time and money consuming.
 
 Thanks,
 
 FK
 
 -- 
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk


Scott Wilcox

t:  +44 (0) 7538 842418 
+1 (646) 257 0580
e:  sc...@dor.ky
w:  http://dor.ky

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Search API and location

2011-01-04 Thread Tom van der Woerdt

Hi Sarah,

I'm already a member. Thanks for the offer though :-)

Tom


On 1/4/11 3:45 PM, Sarah - DataSift wrote:

Hi Tom,

DataSift is still in closed Alpha but we have enabled a large number
of users within the Alpha to date and will add additional users for
the Beta so if you'd like early access it's well worth signing up on
http://datasift.net and you may find you get in before we launch the
consumer release version.

Many thanks
Sarah
Community Manager
DataSift.net

On Dec 29 2010, 11:50 am, Tom van der Woerdti...@tvdw.eu  wrote:

On 12/29/10 10:40 AM, L. Mohan Arun wrote:


I just tried to construct a query that searches for users by location,
as it is registered in the location field of their profiles. I had no
luck and it seems this is not possible.



You can also do this using Datasift's FSDL.



✿✿✿ Mohan ✿✿✿


DataSift is still in closed alpha testing phase...

Tom




--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Exposing IP addresses for legal threats

2011-01-04 Thread M. Edward (Ed) Borasky
On Tue, 4 Jan 2011 14:49:59 +, Scott Wilcox sc...@dor.ky wrote:
 No, there is no API methods to access IP addresses for tweets. I'd
suggest
 contacting local law enforcement and taking it from there.

Actually, if the victim can afford it, I'd suggest seeing an attorney
before contacting law enforcement. Law enforcement tends to be overworked,
have pressing priorities and need evidence of an actual crime as defined in
their jurisdiction before they'll take any action in most cases. Law
enforcement represents the people more or less as a whole, while an
attorney can and will act on behalf of an individual victim or class of
victims, if the alleged offender is threatening more than one person. In
any case, good luck to him or her - cyberbullying is nasty stuff.

 
 Scott.
 
 On 4 Jan 2011, at 14:39, Felipe Knorr Kuhn wrote:
 
 Hello everyone,
 
 Although this is probably not the best list to discuss this, perhaps
you
 guys have some experience to share.
 
 A friend of mine is being threated by a Twitter user via DMs and public
 messages.
 
 He doesn't know the identity of the user and thought about tracking him
 via the IP he uses to post to Twitter.
 
 The API does not expose IP addresses, does it?
 
 He lives in Brazil and believed he could contact the ISP to track the
 user, since filing an international lawsuit to Twitter asking for this
 information and only then contact the ISP would be very time and money
 consuming.
 
 Thanks,
 
 FK
 
 -- 
 Twitter developer documentation and resources:
http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk
 
 
 Scott Wilcox
 
 t:+44 (0) 7538 842418 
   +1 (646) 257 0580
 e:sc...@dor.ky
 w:http://dor.ky

-- 
http://twitter.com/znmeb http://borasky-research.net

A mathematician is a device for turning coffee into theorems. -- Paul
Erdős

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] update_profile_background_image - error code 500

2011-01-04 Thread Matt Harris
Hi Derlan,

This is often caused by the image not being sent the correct way. Image
uploading with OAuth is a little different as the request contains
multi-part data. I've produced an example of how to do image posting with
OAuth on github:

https://github.com/themattharris/tmhOAuth/blob/master/examples/images.php

Hope that helps,

@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Dec 28, 2010 at 1:00 PM, Derlan Lima derla...@gmail.com wrote:

 I have a problem with update_profile_background_image, sending the
 image parameter correctly and get the error 500 Internal Server
 Error, it can be?

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Twitter Stream API rate limit issue

2011-01-04 Thread Zhe Chen
Hi,

The stream API doc shows every account can only establish one
connection.

Currently I am implementing an web application, which has a search
button. When a user click search, it should take some key words from
textbox and search it through twitter stream api.

I create a connection when a user search. In this case, I will have
problem when multiple users are using the application since I can only
have one connection. What is the right way to do this?

Thanks

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Exposing IP addresses for legal threats

2011-01-04 Thread John Adams
On Tue, Jan 4, 2011 at 6:39 AM, Felipe Knorr Kuhn fkn...@gmail.com wrote:

 Hello everyone,

 Although this is probably not the best list to discuss this, perhaps you
 guys have some experience to share.

 A friend of mine is being threated by a Twitter user via DMs and public
 messages.

 He doesn't know the identity of the user and thought about tracking him via
 the IP he uses to post to Twitter.


Have your friend report the user to our Trust and Safety team. With regards
to private user data, such as IP addresses:

Private information requires a subpoena or court order

In accordance with our Privacy Policy https://twitter.com/privacy and Terms
of Service https://twitter.com/tos, non-public information about Twitter
users is not released unless we have received a subpoena, court order, or
other valid legal process document. Some information we store is
automatically collected, while other information is provided at the user’s
discretion.  Though we do store this information, it may not be accurate if
the user has created a fake or anonymous profile. Twitter doesn’t require
email verification or identity authentication.


See here for reporting guidelines and our Abusive user policy

http://support.twitter.com/articles/15794

-john

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twttr.anywhere errors in IE8

2011-01-04 Thread Mauro Asprea
I have tracked down this to the inclusion of the:

script type=text/javascript src=http://platform.twitter.com/widgets.js;
/script

If I remove this script, anywhere works Ok. If I place both, only the button
works. I do want the widgets.js since I am using it for my tweet button.

Ideas?

On Tue, Jan 4, 2011 at 9:32 AM, Mauro Asprea mauroasp...@gmail.com wrote:

 Hey Matt thanks for your reply ;)

 The same page works in other browsers FF, Chrome (Mac and Win). The twitter
 button works too. I first though it was a problem with the dependencies not
 being loaded, but after seeing that nobody else have the issue and coding a
 loop just before the function call to wait till the anywhere gets
 created did not prove anything I am kind of hopeless...

 The IE dev tools break when twttr.anywhere is called and says something
 like Object doesn’t support this property or method

 I will try to to put online a test case of this and let you now ;)

 Thanks!


 On Tue, Jan 4, 2011 at 1:01 AM, Matt Harris thematthar...@twitter.comwrote:

 Hey Mauro,

 Does the @anywhere code work on any other page and can you create a test
 page with just that in it?

 Also, do the IE developer tools include any javascript error information?

 Best,
 @themattharris
 Developer Advocate, Twitter
 http://twitter.com/themattharris


 On Mon, Jan 3, 2011 at 1:44 PM, Mauro Asprea mauroasp...@gmail.comwrote:

 Hi, I am having issues with the http://platform.twitter.com/anywhere.js

 In IE8 it seems to fail somewhere and the twttr.anywhere function is
 never created. There is some debug version of the js so I can, well, debug
 it? Can't really share the url of the site since it's not online yet...

 It is happening only in a page where the twitter share button is also
 implemented. In all the other pages where there is no twitter button is
 working Ok also it is working Ok with other browsers.

 This is the code of an anchor being buttonized:

 a href=http://twitter.com/share; class=twitter-share-button

 data-lang=None

 data-url=
 http://www.amazon.co.uk/gp/item-dispatch/ref=cm_wl_addtocart_v/278-2287254-9887803?tag=amzwishlist-21associate-id=amzwishlist-21ie=UTF8quantity.1=1offeringID.1=PhLaWZPqTP%252BrQE0KwFR2PC6Z%252BH2HQk727v3tL%252F%252B2jl9vtPvFKIFEhtQ6IVucXFB%252Bseg7JWrFeSNxWEi%252FxqtW6XJS%252BozYPNcnsubmit.addToCart=1registryID.1=1EJC1GJXUD7IFsignInToHUC=0registryItemID.1=IV8C1KSAVE71Ksession-id=278-2287254-9887803
 

 data-text=My new wish is: Words that Sell, Revised and Expanded Edition:
 The ...

 data-count=noneTweet/a


 Any ideas?

 Thanks!

 --
 Mauro Sebastián Asprea

 E-Mail: mauroasp...@gmail.com
 Mobile: +34 654297582
 Skype: mauro.asprea

 Algunos hombres ven las cosas como son y se preguntan porque. Otros
 sueñan cosas que nunca fueron y se preguntan por qué no?.
 George Bernard Shaw

 --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk




 --
 Mauro Sebastián Asprea

 E-Mail: mauroasp...@gmail.com
 Mobile: +34 654297582
 Skype: mauro.asprea

 Algunos hombres ven las cosas como son y se preguntan porque. Otros sueñan
 cosas que nunca fueron y se preguntan por qué no?.
 George Bernard Shaw




-- 
Mauro Sebastián Asprea

E-Mail: mauroasp...@gmail.com
Mobile: +34 654297582
Skype: mauro.asprea

Algunos hombres ven las cosas como son y se preguntan porque. Otros sueñan
cosas que nunca fueron y se preguntan por qué no?.
George Bernard Shaw

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twitter namespace in api response

2011-01-04 Thread Matt Harris
Thanks for highlighting this. Can you file this as a ticket in our public
issue tracker and the team will then pick it up to take a look:
http://code.google.com/p/twitter-api/issues/list

Thanks,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Thu, Dec 30, 2010 at 2:36 AM, Shaurabh Bharti sbha...@gmail.com wrote:

 Hi,
 Calls to different twitter api gives different twitter namespace in
 its response.

 1st is http://search.twitter.com/search.atom?result_type=popularq=iphone
 Here, the twitter namespace is http://api.twitter.com/;

 2nd is
 http://api.twitter.com/1/statuses/user_timeline.atom?screen_name=Skype
 Here, the twitter namespace is http://api.twitter.com;

 The missing forward slash / makes all the difference.

 I am using java 6 (xpath) api to parse xml.

 Any solution to this? Or is this a bug?

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Exposing IP addresses for legal threats

2011-01-04 Thread Felipe Knorr Kuhn
Hello, John

Thank you very much for the information and excuse me again for bringing
this question to the development list.

People think they can hide behind an alias but it doesn't really work that
way anymore :)

FK

On Tue, Jan 4, 2011 at 4:19 PM, John Adams j...@twitter.com wrote:


 On Tue, Jan 4, 2011 at 6:39 AM, Felipe Knorr Kuhn fkn...@gmail.com
  wrote:

 Hello everyone,

 Although this is probably not the best list to discuss this, perhaps you
 guys have some experience to share.

 A friend of mine is being threated by a Twitter user via DMs and public
 messages.

 He doesn't know the identity of the user and thought about tracking him
 via the IP he uses to post to Twitter.


 Have your friend report the user to our Trust and Safety team. With regards
 to private user data, such as IP addresses:

 Private information requires a subpoena or court order

 In accordance with our Privacy Policy https://twitter.com/privacy and Terms
 of Service https://twitter.com/tos, non-public information about Twitter
 users is not released unless we have received a subpoena, court order, or
 other valid legal process document. Some information we store is
 automatically collected, while other information is provided at the user’s
 discretion.  Though we do store this information, it may not be accurate if
 the user has created a fake or anonymous profile. Twitter doesn’t require
 email verification or identity authentication.


 See here for reporting guidelines and our Abusive user policy

 http://support.twitter.com/articles/15794

 -john

  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Tweet button counter reset to 0

2011-01-04 Thread Matt Harris
We don't provide a way to backfill the count but we also don't reset the
counts. Is it possible the URLs changed to a different permalink structure?
Checking your site your current posts appear to be counting successfully.

Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Thu, Dec 30, 2010 at 12:46 AM, Lyndon lyndon.fernan...@gmail.com wrote:


 Hey guys

 Our blog http://thesociallyconsciousblog.org was down for a week due
 to technical issues with the hosting.
 Now the site is back up.

 But the Twitter button counter for each blog article has somehow reset
 itself and now
 displays '0' tweets. I have no idea why.

 The data-urls also match the permalinks to the corresponding
 articles.

 Is there there any way for us to restore our re-tweet numbers?

 Site: http://thesociallyconsciousblog.org
 Twitter handle: sociallyconsc

 Cheers,

 Lyndon

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] mobile.twitter.com/share not working?

2011-01-04 Thread Matt Harris
The Tweet Button doesn't have a custom mobile view.
Generally when a mobile view is supported Twitter.com will handle the
redirect for you. This is because paths on the mobile site can differ from
those on twitter.com

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Wed, Dec 29, 2010 at 10:44 PM, hendra hendra.af...@gmail.com wrote:

 Hi,

 I'm using the Tweet Button to share links on a mobile-friendly site,
 however when users clicked on the link, it goes to the full page which
 doesn't look good on mobile browsers. Simply changing the url from
 twitter.com/share?... to mobile.twitter.com/share?.. doesn't seem to
 work, there's a warning that said Hold up! Sorry, the profile you
 were trying to view was suspended due to strange activity.

 Any help?

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: how can i get posts count when i use search api?

2011-01-04 Thread Matt Harris
Hi Eric,

I'm not completely clear which value you are trying to find out but I hope
the information below helps,

As far as counts go, the Search API won't return how many posts match your
query. If you need that information you should track the keyword of interest
using the Streaming API and maintain the count yourself.

If you are looking for retweet counts, the Search and REST API include the
number of times a Tweet has been retweeted in the API responses.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Thu, Dec 30, 2010 at 12:42 AM, Eric Pu puxiangc...@gmail.com wrote:

 anybody can help ?

 2010/12/30 Macro puxiangc...@gmail.com

 when i user search api like :
 http://search.twitter.com/search.json?q=google
 for a keyword, i just get a list ,but i also want to get the all posts
 count retweets count or like that.

 I have no idea any APIs can help me to get this and t would like to
 get the data day by day in a month or week.eq:  posts 100
 12/1/2010 ;posts 321 12/2/2010..

 Am i allowed to get this number and how ?


 thanks very much.


  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] case sensitivity of original status mention an issue when searching mentions?

2011-01-04 Thread Matt Harris
Hi Tia,

The Search API is case insensitive so the query will be applied in the same
way.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Dec 28, 2010 at 6:11 PM, ds2k geremy.co...@gmail.com wrote:

 I'm using the search API in Ruby to grab all mentions of a given user:

 Twitter::Search.new.to(account.screen_name).per_page(100)

 If his screen name is Foo (capital 'F'), but people post status
 mentions to him as:

 @foo this is my tweet

 Will this affect the number of results I get back from the API?

 Twitter::Search.new.to(account.screen_name).per_page(100)
 and
 Twitter::Search.new.to(account.screen_name.downcase).per_page(100)

 give me identical results from the client-side, but not sure if
 something else may be going on at the server-side.

 tia

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Is id_str getting dropped again from streaming API output?

2011-01-04 Thread Matt Harris
Hi Adam,

There weren't any known issues with the field being dropped. Are you still
seeing this?

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Thu, Dec 30, 2010 at 5:50 AM, Adam Green 140...@gmail.com wrote:

 I'm getting errors that the id_str property is not found within the
 JSON output of the streaming API. I'm using Phirehose, but nothing has
 changed with that or my code that is using it. This has happened
 before. Is there a problem returning id_str again?

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twurl is getting Read-only application cannot POST

2011-01-04 Thread TJ Luoma
On Mon, Jan 3, 2011 at 7:14 PM, Matt Harris thematthar...@twitter.com wrote:
 To be able to send POST requests to the API you need to ensure your
 application is of access type: Read  Write
 The message you are getting means your application is Read Only. To change
 this you need to visit http://dev.twitter.com/apps and then edit the details
 of your application so that the access type is Read  Write.
 This will only change access tokens issues from then on so any users who
 have already authorised your application will need to be sent through the
 OAuth process again.

My app is Read  Write and has been Read  Write since day 1 since
pretty much everything it does was obviously going to require 'write'
access.

When I pull up my app on the dev page it is shown as being Read  Write.

I read somewhere else that someone else had this problem  so they
deleted their app and re-created it. I've tried that for two days now,
but whenever I try to delete it, I get the twitter is over capacity
message.

Still need ideas.
TjL

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twurl block is sending 502 even when it succeeds

2011-01-04 Thread Matt Harris
Hi TjL,

The API can occasionally return a Twitter Over Capacity error when the site
is experiencing a lot traffic. If this happens waiting a little white and
trying the request again will work.

I notice you are using a variable for the screen_name. Is this being set
correctly in your environment?

Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Thu, Dec 30, 2010 at 2:34 PM, TJ Luoma luo...@gmail.com wrote:

 I am trying to block users on the command line like this:

twurl -t -d screen_name=$1 /1/blocks/create.xml

 I am consistently getting

 - HTTP/1.1 502 Bad Gateway\r\n

 as a response to this (Twitter Over Capacity) even when it works
 (verified via API and via website)

 Is this why so few 3rd party apps can successfully block? Because the
 API gives bad information? I've had to follow every blocks/create with
 a blocks/exists to see if it really worked or not.

 TjL

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Incorrect signature for users/search using REST API

2011-01-04 Thread Matt Harris
Hi Rohit,

When passing spaces to in queries it is recommend you use %20. The reason is
that the + is often badly encoded by OAuth libraries. Percent-encoding a
space in the request is the most reliable way for the signature to be
calculated.

The reason why the search works for both Twitter_API and Twitter%20API is
that matching is performed to the account name (not screen_name) loosely to
get as many results as possible.

Hope that helps,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Thu, Dec 30, 2010 at 7:09 AM, Rohit Bansal rohitbansal.h...@gmail.comwrote:

 Hii

 Can you please share the code you are using through which you are getting
 the response. I am working this out using scribe in Java and able to fetch
 response for all API calls except possibly this one.

 Thanks


 On Thu, Dec 30, 2010 at 7:19 PM, deepa nagaraj deepa.23.naga...@gmail.com
  wrote:

 Hi...

 But i am getting same output for both url..

 http://api.twitter.com/1/users/search.xml?q=Twitter%20API

 and

 http://api.twitter.com/1/users/search.xml?q=Twitter_API


 On Thu, Dec 30, 2010 at 7:00 PM, Rohit Bansal rohitbansal.h...@gmail.com
  wrote:

 The XML response I am getting:

 ?xml version=1.0 encoding=UTF-8?
 hash
  request/1/users/search.xml?q=Twitter%20API/request
  errorIncorrect signature/error
 /hash

 Request for resource which I made:
 http://api.twitter.com/1/users/search.xml?q=Twitter%20API

 Request Type: GET


 Replacing Twitter%20API with Twitter_API is fetching me the correct
 response as stated in Twitter API documentation.

 If I am on the correct track then perhaps we need a correction in
 twitter documentation here, http://dev.twitter.com/doc/get/users/search.


 Please correct me if Twitter%20API should also be doing well. Besides
 this I also need to understand why underscore in Twitter_API works..?

 I have already posted this issue in Twitter API Issue tracker:
 http://code.google.com/p/twitter-api/issues/detail?id=2021

 --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk




 --
 Regards,

 Deepa

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Twitter Stream API rate limit issue

2011-01-04 Thread Zhe Chen
I am thing about let every user create an Oauth account, it should
solve the problem.

On 1月4日, 上午11时17分, Zhe Chen chenzhe@gmail.com wrote:
 Hi,

 The stream API doc shows every account can only establish one
 connection.

 Currently I am implementing an web application, which has a search
 button. When a user click search, it should take some key words from
 textbox and search it through twitter stream api.

 I create a connection when a user search. In this case, I will have
 problem when multiple users are using the application since I can only
 have one connection. What is the right way to do this?

 Thanks

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] /1/account/settings.json and sleep_time

2011-01-04 Thread Matt Harris
Hi Yusuke,

The sleep time indicates the period over which mobile notifications are
turned off. The start_time and end_time represent the hour in 24 hour
format. Enabled is true if the sleep period is turned on.

The sleep settings correspond to the values found on the mobile page of
twitter.com:
http://twitter.com/devices

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Fri, Dec 31, 2010 at 4:44 AM, Yusuke Yamamoto yus...@mac.com wrote:

 Hi,

 /1/account/settings is a new api which has not been included in the
 official document.

 http://groups.google.com/group/twitter-development-talk/browse_thread/thread/cdc34ae78a2350b8?pli=1
 
 GET /1/account/settings.{format}
 Requires authentication.
 Returns the current trend, geo and sleep time information for the
 authenticating user.
 
 --
 Yusuke Yamamoto
 yus...@mac.com

 this email is: [x] bloggable/tweetable [ ] private
 follow me on : http://twitter.com/yusukeyamamoto
 subscribe me at : http://samuraism.jp/

 On Dec 31, 2010, at 20:48 , Tom van der Woerdt wrote:

  I've never seen sleep_time before and the first result on google is your
 question. In fact, I've never seen account/settings before, which makes me
 think it's a private API. This would most likely mean that it's undocumented
 and that nobody is going to tell you how it works.
 
  Tom
 
 
  On 12/31/10 6:02 AM, Yusuke Yamamoto wrote:
  Hi,
 
  I'm testing /1/account/settings.json method and getting the following
 response:
  ---
  {
   sleep_time: {
   enabled: false,
   start_time: null,
   end_time: null
   },
   trend_location: [
   {
   countryCode: null,
   url: http://where.yahooapis.com/v1/place/1;,
   country: ,
   name: Worldwide,
   placeType: {
   code: 19,
   name: Supername
   },
   woeid: 1
   }
   ],
   geo_enabled: true
  }
  ---
  To me, sleep_time/enabled is always false.
  What does the element mean and how do I enable this feature?
 
  Thanks in advance,
 
  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] User_timeline returns different amount of tweets for each user

2011-01-04 Thread Matt Harris
Hi Alexandre,

You should be able to access up to 3200 Tweets (including Retweets) for your
account though the user_timeline method. If this isn't the case let our user
support team know so they can check nothing has got confused in your
account. You can contact them through:
http://bit.ly/twicket

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Jan 3, 2011 at 7:17 PM, Cisneiros alexan...@cisneiros.com wrote:

 Hello.

 I'm developing an application that has to analyse as much tweets of a
 user as possible (all of them would be the optimal case, but the API
 returns up to 3200 tweets, but no big deal).

 The problem is that I'm getting a different amount of tweets for every
 user I try. With my personal account, I can get about 470 tweets (3
 pages of 200 tweets). When I try to get the 4th page, it returns
 blank. You can try it out with my account;

 http://api.twitter.com/1/statuses/user_timeline/Cisneiros.json?count=200page=3
 --- has tweets

 http://api.twitter.com/1/statuses/user_timeline/Cisneiros.json?count=200page=4
 --- hasn't tweets (as of jan 4rd, 2011 / 12:11 AM -03:00)

 I tried to get my tweets while authenticated on my girlfriend's
 account, instead of mine, but got the same results. No matter who is
 authenticated, I get the same number of tweets for every user I try
 (but they differ between themselves).

 If I try another user, I can get more pages (like 15 pages of 200, for
 example). Other users just return 2 pages...
 I really have no idea whats happening. I know that this method strips
 the retweets, but I don't retweet that much to, from 3200 status, have
 only 470 real updates by me.

 If anyone can give a light on how to fetch all possible tweets from a
 user, I you really appreciate. I have done lots of searching, but
 found nothing to help me solving this.

 Thanks in advance,
 Alexandre Cisneiros Filho.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Does the twit posted from Twitter web app contains lon/lat infos

2011-01-04 Thread Diallo Mamadou Bobo
Hi there, are twits posted from twitter contains geo cordinates of the users?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Update http://dev.twitter.com/pages/auth page with PIN flow link

2011-01-04 Thread Matt Harris
Hey Buddy,

Thanks for highlighting this section is missing from the document. We'll add
this to our list of todos.

Glad you worked out what was required though.
Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Jan 3, 2011 at 9:17 AM, Buddy buddywilli...@gmail.com wrote:

 I spent about an hour reading through Twitter docs, at various times,
 trying to find information on the desktop user flow for OAuth. I was
 able to find the right information searching through Google which was
 a twitter page.

 Can someone please add a link to,
 http://apiwiki.twitter.com/w/page/22554643/Authentication,
 on http://dev.twitter.com/pages/auth? The oob link at the top doesn't
 go anywhere, see http://dev.twitter.com/pages/auth#oob.

 Fyi, the bit of information that was unclear for a while was how to
 obtain a PIN from a desktop application flow. The answer: you don't.
 You have to send the user to the browser to get a PIN which can be
 entered into the desktop application.

 Thank you.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Spain telephone

2011-01-04 Thread Matt Harris
Hi,

Please see:
http://support.twitter.com/articles/163508-how-to-post-a-tweet-via-sms

For user support please visit:
http://bit.ly/twicket

Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


2010/12/31 Karla Coll Garcia karla.coll.gar...@gmail.com

 Hola.

 Quiero introducir mi país y número de teléfono pero parece imposible
 ya que en la lista no aparece ESPAÑA/SPAIN (doesn't apear) Porque??
 (Why?) Tengo las mismas posibilidades que los demás pero sin opción.
 En caso de tener IPhone, o cualquier otro terminal con opción a
 Twitter, no puedo registrar mi numero de teléfono ni para recibir los
 mensajes. Agradezco su atención.

 Un saludo de antemano. Gracias.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Using OAuth Echo

2011-01-04 Thread Matt Harris
Hi Gabe,

For OAuth Echo you should be sending the value in:
X-Verify-Credentials-Authorization
to the URL given in:
X-Auth-Service-Provider

You need to use X-Auth-Service-Provider to ensure you are sending the
request to the same endpoint that was used to create the signature. This URL
could any of these:
http://api.twitter.com/1/account/verify_credentials.json
https://api.twitter.com/1/account/verify_credentials.json
http://api.twitter.com/1/account/verify_credentials.xml
https://api.twitter.com/1/account/verify_credentials.xml

Also, the error Could not authenticate with OAuth indicates there is a
problem with your consumer and/or user values. Double check the tokens and
secrets that are being used are correct.

Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Jan 3, 2011 at 5:19 PM, Gabe gabe...@gmail.com wrote:

 I'm attempting to build an image service of sorts and am trying to
 implement OAuth Echo to authorize users and get the username of the
 person posting the picture.  Anyway, I seem to be having trouble and I
 think I may be doing something wrong.  I keep getting the error Could
 not authenticate with OAuth.

 What I am doing is:
 - Taking the value passed in the header for X-Verify-Credentials-
 Authorization
 - URL encode the value
 - Use it for my Authorization header in my request to
 https://api.twitter.com/1/account/verify_credentials.json

 I am attempting to do this using Twitter4J and the following code
 illustrates what I'm doing:
 TwitterFactory factory = new TwitterFactory();
Twitter twitter = factory.getInstance(new
 EchoAuthorization(request.getHeader(X-Verify-Credentials-
 Authorization)));
try {
System.out.println(twitter.verifyCredentials());
}
catch(Exception ex) {
ex.printStackTrace();
}


 -

 public class EchoAuthorization implements Authorization {
private String authHeader;

public String getAuthHeader() {
return authHeader;
}
public void setAuthHeader(String authHeader) {
this.authHeader = authHeader;
}


public EchoAuthorization (String authHeader) {
setAuthHeader(new URLEncoder().encode(authHeader));
System.out.println(getAuthHeader());
}
public boolean isEnabled() {
return true;
}

public String getAuthorizationHeader(HttpRequest arg0) {
System.out.println(auth header:+getAuthHeader());
return getAuthHeader();
}
}

 Any help would be greatly appreciated!  I've been stuck on this for a
 while...

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Why is the people search in the @Anywhere API restricted to first page.

2011-01-04 Thread Matt Harris
Hi Pradheep,

The Javascript API is considered part of the @anywhere internals and is not
supported by the Twitter team. You are free to experiment with it but there
is no guarantee features other than those documented on
http://dev.twitter.com/anywhere/begin will be fully implemented or
functional.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Jan 3, 2011 at 10:45 PM, Pradheep A R pradheep@gmail.comwrote:

 Hi,

 i have a requirement of fetching more than 20 people search results
 from the Twitter API.

 As per http://dev.twitter.com/doc/get/users/search, the page
 attribute allows us to get the nth page of a search.
 So i can make multiple HTTP requests to get more people.

 However, i couldn't find a way to pass this page parameter in the
 @Anywhere Javascript API.

 T.User.search(query) takes only one argument for the q paremeter to
 be used in the HTTP API.

 Why is it not allowed through the JS API while it is allowed in the
 HTTP API?

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Twitter's mobile oauth page waits 10 seconds before redirecting

2011-01-04 Thread Bess
Rusell,

Can you use tricks to alter Android browser meta tag on Android
Emulator? such as reducing the redirect time to see performance
differences?

What is the main reason why Twitter can't use the same standard 302
redirect on the mobile browser?

On Jan 3, 11:18 pm, Bess bess...@gmail.com wrote:
 Rusell,

 Can you share how you confirm the mobile version use meta tag instead
 of standard 302?

 Is this something you could test on web browser?

 On Dec 30 2010, 10:25 pm, Russell Davis russell.da...@gmail.com
 wrote:

  The regular oauth page does a standard 302 redirect which happens
  immediately. For some reason, the mobile version instead uses a meta
  tag to the redirect, and it specifies a delay of 10 seconds. I can't
  be the only one who thinks this is a horrible user experience. Why the
  delay? Is there any way to change it?

  Thanks,
  Russell

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twurl is getting Read-only application cannot POST

2011-01-04 Thread Matt Harris
Deleting applications is a known issue at the moment being tracked on our
issue tracker:
http://code.google.com/p/twitter-api/issues/detail?id=2040

Regarding your application. Can you check under:
http://dev.twitter.com/apps
That your application is read and write. The error message is very specific
and is only triggered by an application which is read only. If it is read
and write, try changing it to read only and then back again.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Jan 4, 2011 at 10:59 AM, TJ Luoma luo...@gmail.com wrote:

 On Mon, Jan 3, 2011 at 7:14 PM, Matt Harris thematthar...@twitter.com
 wrote:
  To be able to send POST requests to the API you need to ensure your
  application is of access type: Read  Write
  The message you are getting means your application is Read Only. To
 change
  this you need to visit http://dev.twitter.com/apps and then edit the
 details
  of your application so that the access type is Read  Write.
  This will only change access tokens issues from then on so any users who
  have already authorised your application will need to be sent through the
  OAuth process again.

 My app is Read  Write and has been Read  Write since day 1 since
 pretty much everything it does was obviously going to require 'write'
 access.

 When I pull up my app on the dev page it is shown as being Read  Write.

 I read somewhere else that someone else had this problem  so they
 deleted their app and re-created it. I've tried that for two days now,
 but whenever I try to delete it, I get the twitter is over capacity
 message.

 Still need ideas.
 TjL

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Does the twit posted from Twitter web app contains lon/lat infos

2011-01-04 Thread Matt Harris
Hi Diallo,

The lat/long is included if the user has enabled geo in their profile and
the client they are using supports it. Whether the information is included
in a tweet depends on the options chosen by the user of the client they are
using - and whether the client supports geo.

The accuracy is dependent upon the device being used.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Jan 4, 2011 at 10:19 AM, Diallo Mamadou Bobo
mana...@gurumades.comwrote:

 Hi there, are twits posted from twitter contains geo cordinates of the
 users?

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Twitter's mobile oauth page waits 10 seconds before redirecting

2011-01-04 Thread Matt Harris
10 seconds does seem like a long time for this to be paused. I'm checking
with the team why this value was chosen.

Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Jan 4, 2011 at 11:59 AM, Bess bess...@gmail.com wrote:

 Rusell,

 Can you use tricks to alter Android browser meta tag on Android
 Emulator? such as reducing the redirect time to see performance
 differences?

 What is the main reason why Twitter can't use the same standard 302
 redirect on the mobile browser?

 On Jan 3, 11:18 pm, Bess bess...@gmail.com wrote:
  Rusell,
 
  Can you share how you confirm the mobile version use meta tag instead
  of standard 302?
 
  Is this something you could test on web browser?
 
  On Dec 30 2010, 10:25 pm, Russell Davis russell.da...@gmail.com
  wrote:
 
   The regular oauth page does a standard 302 redirect which happens
   immediately. For some reason, the mobile version instead uses a meta
   tag to the redirect, and it specifies a delay of 10 seconds. I can't
   be the only one who thinks this is a horrible user experience. Why the
   delay? Is there any way to change it?
 
   Thanks,
   Russell

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Twitter Stream API rate limit issue

2011-01-04 Thread Matt Harris
Hi Zhe,

In this case you might want to use the Search API instead as the Streaming
API is designed for server to server communication. You can use the
Streaming API but you would need to combine the search terms into one set of
filter keywords, and then deduplicate the Tweets which are returned.

Hope that helps you move in the right direction,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


2011/1/4 Zhe Chen chenzhe@gmail.com

 I am thing about let every user create an Oauth account, it should
 solve the problem.

 On 1月4日, 上午11时17分, Zhe Chen chenzhe@gmail.com wrote:
  Hi,
 
  The stream API doc shows every account can only establish one
  connection.
 
  Currently I am implementing an web application, which has a search
  button. When a user click search, it should take some key words from
  textbox and search it through twitter stream api.
 
  I create a connection when a user search. In this case, I will have
  problem when multiple users are using the application since I can only
  have one connection. What is the right way to do this?
 
  Thanks

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Twitter's mobile oauth page waits 10 seconds before redirecting

2011-01-04 Thread Bess
Hi Matt,

Could you also check why the standard 302 redirect not being used on
mobile browser?

I am guessing the 10 sec is just a rough guideline most web browser
vendors use to redirect if there is an error in displaying content.
Usu the workaround hack mobile developers use is to continue to check
status using a timer until Oauth is completed. This hack is on device
app, not server-side.

On Jan 4, 2:25 pm, Matt Harris thematthar...@twitter.com wrote:
 10 seconds does seem like a long time for this to be paused. I'm checking
 with the team why this value was chosen.

 Best
 @themattharris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

 On Tue, Jan 4, 2011 at 11:59 AM, Bess bess...@gmail.com wrote:
  Rusell,

  Can you use tricks to alter Android browser meta tag on Android
  Emulator? such as reducing the redirect time to see performance
  differences?

  What is the main reason why Twitter can't use the same standard 302
  redirect on the mobile browser?

  On Jan 3, 11:18 pm, Bess bess...@gmail.com wrote:
   Rusell,

   Can you share how you confirm the mobile version use meta tag instead
   of standard 302?

   Is this something you could test on web browser?

   On Dec 30 2010, 10:25 pm, Russell Davis russell.da...@gmail.com
   wrote:

The regular oauth page does a standard 302 redirect which happens
immediately. For some reason, the mobile version instead uses a meta
tag to the redirect, and it specifies a delay of 10 seconds. I can't
be the only one who thinks this is a horrible user experience. Why the
delay? Is there any way to change it?

Thanks,
Russell

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Twitter's mobile oauth page waits 10 seconds before redirecting

2011-01-04 Thread Matt Harris
302 is a redirect of a URL. We're not redirecting the URL
https://api.twitter.com/oauth/authorize, we're redirecting from
https://api.twitter.com/oauth/authorize to the callback URL.

Using the 302 code would mean we are telling browsers that
https://api.twitter.com/oauth/authorize is actually callback URL - which is
not correct.

Hope that answers your question,
Matt

On Tue, Jan 4, 2011 at 3:50 PM, Bess bess...@gmail.com wrote:

 Hi Matt,

 Could you also check why the standard 302 redirect not being used on
 mobile browser?

 I am guessing the 10 sec is just a rough guideline most web browser
 vendors use to redirect if there is an error in displaying content.
 Usu the workaround hack mobile developers use is to continue to check
 status using a timer until Oauth is completed. This hack is on device
 app, not server-side.

 On Jan 4, 2:25 pm, Matt Harris thematthar...@twitter.com wrote:
  10 seconds does seem like a long time for this to be paused. I'm checking
  with the team why this value was chosen.
 
  Best
  @themattharris
  Developer Advocate, Twitterhttp://twitter.com/themattharris
 
  On Tue, Jan 4, 2011 at 11:59 AM, Bess bess...@gmail.com wrote:
   Rusell,
 
   Can you use tricks to alter Android browser meta tag on Android
   Emulator? such as reducing the redirect time to see performance
   differences?
 
   What is the main reason why Twitter can't use the same standard 302
   redirect on the mobile browser?
 
   On Jan 3, 11:18 pm, Bess bess...@gmail.com wrote:
Rusell,
 
Can you share how you confirm the mobile version use meta tag instead
of standard 302?
 
Is this something you could test on web browser?
 
On Dec 30 2010, 10:25 pm, Russell Davis russell.da...@gmail.com
wrote:
 
 The regular oauth page does a standard 302 redirect which happens
 immediately. For some reason, the mobile version instead uses a
 meta
 tag to the redirect, and it specifies a delay of 10 seconds. I
 can't
 be the only one who thinks this is a horrible user experience. Why
 the
 delay? Is there any way to change it?
 
 Thanks,
 Russell
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] API fails when tweeting with single asterisk

2011-01-04 Thread Adam Green
There are some very strange behaviors when using the statuses/update
API call to send a tweet with a single asterisk.

1. If you send a tweet with just a single asterisk:
*

The API returns 200 and the response string contains the previous good
tweet in the timeline. No new tweet with an asterisk appears in the
timeline. Repeating this API call results in the same behavior.

2. If you send a statuses/update with a single asterisk followed by a
single word:
* test

The first time you do this, the API returns 200 and the response
string contains the previous good tweet in the timeline. No new tweet
with the string sent to the API appears in the timeline. If you repeat
the same API call, the API returns 500 and the response string has an
HTML page that something strange happened:
h2Something is technically wrong./h2
pThanks for noticing we're going to fix it up and have things back
to normal soon./p

No other use of the asterisk has a problem that I can find. These bad
tweet strings cause similar problems on Twitter.com.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] API fails when tweeting with single asterisk

2011-01-04 Thread Matt Harris
Hey Adam,

The status update you are sending is part of the SMS command set.
http://support.twitter.com/articles/14020-about-twitter-sms-commands

It corresponds to the FAV command and is the alias for it. It used to be
documented but for some reason isn't there at the moment. I've asked the
support team to make sure it is added.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Jan 4, 2011 at 4:09 PM, Adam Green 140...@gmail.com wrote:

 There are some very strange behaviors when using the statuses/update
 API call to send a tweet with a single asterisk.

 1. If you send a tweet with just a single asterisk:
 *

 The API returns 200 and the response string contains the previous good
 tweet in the timeline. No new tweet with an asterisk appears in the
 timeline. Repeating this API call results in the same behavior.

 2. If you send a statuses/update with a single asterisk followed by a
 single word:
 * test

 The first time you do this, the API returns 200 and the response
 string contains the previous good tweet in the timeline. No new tweet
 with the string sent to the API appears in the timeline. If you repeat
 the same API call, the API returns 500 and the response string has an
 HTML page that something strange happened:
 h2Something is technically wrong./h2
 pThanks for noticing we're going to fix it up and have things back
 to normal soon./p

 No other use of the asterisk has a problem that I can find. These bad
 tweet strings cause similar problems on Twitter.com.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Hexadecimal Tweet Length on Streaming API?? When??

2011-01-04 Thread Sebastian Hoitz
I now changed the request from HTTP 1.1 to HTTP 1.0 as suggested in
this post:

http://stackoverflow.com/questions/4581330/twitter-streaming-api-oauth-chunked-response/4581538#4581538

Could this have any negative side-effects?

On Jan 4, 3:42 am, @epc epcoste...@gmail.com wrote:
 The streaming API transmits in chunked encoding, it sounds like you
 are consuming it raw.
 Seehttp://groups.google.com/group/twitter-development-talk/msg/ee8b7024d...
 andhttp://groups.google.com/group/twitter-development-talk/msg/69131a43f...
 for previous discussions about this.
 --
 -ed costello

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] API fails when tweeting with single asterisk

2011-01-04 Thread Adam Green
So I can assume that * and * word will remain unavailable for normal tweeting?

On Tue, Jan 4, 2011 at 7:22 PM, Matt Harris thematthar...@twitter.com wrote:
 Hey Adam,
 The status update you are sending is part of the SMS command set.
     http://support.twitter.com/articles/14020-about-twitter-sms-commands
 It corresponds to the FAV command and is the alias for it. It used to be
 documented but for some reason isn't there at the moment. I've asked the
 support team to make sure it is added.
 Best,
 @themattharris
 Developer Advocate, Twitter
 http://twitter.com/themattharris


 On Tue, Jan 4, 2011 at 4:09 PM, Adam Green 140...@gmail.com wrote:

 There are some very strange behaviors when using the statuses/update
 API call to send a tweet with a single asterisk.

 1. If you send a tweet with just a single asterisk:
 *

 The API returns 200 and the response string contains the previous good
 tweet in the timeline. No new tweet with an asterisk appears in the
 timeline. Repeating this API call results in the same behavior.

 2. If you send a statuses/update with a single asterisk followed by a
 single word:
 * test

 The first time you do this, the API returns 200 and the response
 string contains the previous good tweet in the timeline. No new tweet
 with the string sent to the API appears in the timeline. If you repeat
 the same API call, the API returns 500 and the response string has an
 HTML page that something strange happened:
 h2Something is technically wrong./h2
 pThanks for noticing we're going to fix it up and have things back
 to normal soon./p

 No other use of the asterisk has a problem that I can find. These bad
 tweet strings cause similar problems on Twitter.com.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk




-- 
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twitter sign-on and user_id based urls

2011-01-04 Thread Juan Antonio Cano
There you have.

http://twitter.com/account/redirect_by_id?id=X

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] incorrect created_at times?

2011-01-04 Thread jenny
lately I've noticed tweets with times out of order on twitter.com. for
example, earlier today http://twitter.com/#!/warrenellis showed:

Previous Marvel EIC Joe Quesada becomes Chief Creative Officer, to be
addressed as Comandante
4 hours ago
http://twitter.com/#!/warrenellis/status/22352255088852993

Axel Alonso becomes new Editor In Chief of Marvel Comics, institutes
celebratory beatings companywide
3 hours ago
http://twitter.com/#!/warrenellis/status/22351328088956928
...
The brilliant novelist @steveaylett is guest writer today at my site:
http://bit.ly/epD01V
4 hours ago
http://twitter.com/#!/warrenellis/status/22332045711646720

calling twurl /1/statuses/show/ for each of the above ids yields:
22352255088852993:
created_atTue Jan 04 20:29:07 + 2011/created_at
statuses_count12853/statuses_count

22351328088956928:
created_atTue Jan 04 21:07:31 + 2011/created_at
statuses_count12852/statuses_count

22332045711646720:
created_atTue Jan 04 20:00:10 + 2011/created_at
statuses_count12851/statuses_count

Is this expected?  they're correctly sorted by status id, but the
created_at times are out of order, and incorrect judging by the
statuses_count. It looks like created_at values are used behind the
scenes in some REST queries using sinceid, since if I try to get
statuses since the middle tweet above, it won't include the first
tweet, which has a higher status id but earlier created_at time:
$ twurl /1/statuses/home_timeline.xml?sinceid=22351328088956928 | grep
22352255088852993
$

(to reproduce the sinceid bug you have to use tweets from people
you're already following; if I start following warrenellis from
another account after those tweets have happened, the above call
includes the top tweet.)

another example from my home timeline, in order shown on twitter.com
earlier today:
codinghorror Jeff Atwood
A call to all community minded sysadmins http://goo.gl/Vfo8P
4 hours ago
(http://twitter.com/#!/codinghorror/status/22357712645918720,
created_at = Tue Jan 04 18:24:28 + 2011)

arstechnica Ars Technica
Warrantless cell phone search gets a green light in California:
http://arst.ch/npo by @ejacqui
3 hours ago
(http://twitter.com/#!/arstechnica/status/22357602243448833,
created_at = Tue Jan 04 19:51:52 + 2011)

BoingBoing Boing Boing
In Egypt, an iPrayer http://bit.ly/gsFfHp
2 hours ago
(http://twitter.com/#!/BoingBoing/status/22357128580694016,
created_at = Tue Jan 04 21:08:45 + 2011)

BoingBoing Boing Boing
Cute, friendly, non-threatening bear hat http://bit.ly/gKsaAP
4 hours ago
(http://twitter.com/#!/BoingBoing/status/22357124545773568,
created_at = Tue Jan 04 19:06:26 + 2011)

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] API fails when tweeting with single asterisk

2011-01-04 Thread Matt Harris
Hi Adam,

That's correct, a tweet cannot be just a * or a * word. Something like
** or * html { would be fine though.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Jan 4, 2011 at 5:29 PM, Adam Green 140...@gmail.com wrote:

 So I can assume that * and * word will remain unavailable for normal
 tweeting?

 On Tue, Jan 4, 2011 at 7:22 PM, Matt Harris thematthar...@twitter.com
 wrote:
  Hey Adam,
  The status update you are sending is part of the SMS command set.
  http://support.twitter.com/articles/14020-about-twitter-sms-commands
  It corresponds to the FAV command and is the alias for it. It used to be
  documented but for some reason isn't there at the moment. I've asked the
  support team to make sure it is added.
  Best,
  @themattharris
  Developer Advocate, Twitter
  http://twitter.com/themattharris
 
 
  On Tue, Jan 4, 2011 at 4:09 PM, Adam Green 140...@gmail.com wrote:
 
  There are some very strange behaviors when using the statuses/update
  API call to send a tweet with a single asterisk.
 
  1. If you send a tweet with just a single asterisk:
  *
 
  The API returns 200 and the response string contains the previous good
  tweet in the timeline. No new tweet with an asterisk appears in the
  timeline. Repeating this API call results in the same behavior.
 
  2. If you send a statuses/update with a single asterisk followed by a
  single word:
  * test
 
  The first time you do this, the API returns 200 and the response
  string contains the previous good tweet in the timeline. No new tweet
  with the string sent to the API appears in the timeline. If you repeat
  the same API call, the API returns 500 and the response string has an
  HTML page that something strange happened:
  h2Something is technically wrong./h2
  pThanks for noticing we're going to fix it up and have things back
  to normal soon./p
 
  No other use of the asterisk has a problem that I can find. These bad
  tweet strings cause similar problems on Twitter.com.
 
  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk
 
  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk
 



 --
 Adam Green
 Twitter API Consultant and Trainer
 http://140dev.com
 @140dev

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Tweeting with single asterisk

2011-01-04 Thread Adam Green
It looks like the following tweets will not be possible:
*
* word

All other uses of the single and double asterisk are acceptable. So,
Alexander, it looks like you are right in wanting ** as your
identifying string. That can be used with no problems. I would
recommend that we stick with that in any position in a tweet and not
even tell people about using a single asterisk.

-- Forwarded message --
From: Matt Harris thematthar...@twitter.com
Date: Tue, Jan 4, 2011 at 8:57 PM
Subject: Re: [twitter-dev] API fails when tweeting with single asterisk
To: twitter-development-talk@googlegroups.com


Hi Adam,
That's correct, a tweet cannot be just a * or a * word. Something
like ** or * html { would be fine though.
Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Jan 4, 2011 at 5:29 PM, Adam Green 140...@gmail.com wrote:

 So I can assume that * and * word will remain unavailable for normal tweeting?

 On Tue, Jan 4, 2011 at 7:22 PM, Matt Harris thematthar...@twitter.com wrote:
  Hey Adam,
  The status update you are sending is part of the SMS command set.
      http://support.twitter.com/articles/14020-about-twitter-sms-commands
  It corresponds to the FAV command and is the alias for it. It used to be
  documented but for some reason isn't there at the moment. I've asked the
  support team to make sure it is added.
  Best,
  @themattharris
  Developer Advocate, Twitter
  http://twitter.com/themattharris
 
 
  On Tue, Jan 4, 2011 at 4:09 PM, Adam Green 140...@gmail.com wrote:
 
  There are some very strange behaviors when using the statuses/update
  API call to send a tweet with a single asterisk.
 
  1. If you send a tweet with just a single asterisk:
  *
 
  The API returns 200 and the response string contains the previous good
  tweet in the timeline. No new tweet with an asterisk appears in the
  timeline. Repeating this API call results in the same behavior.
 
  2. If you send a statuses/update with a single asterisk followed by a
  single word:
  * test
 
  The first time you do this, the API returns 200 and the response
  string contains the previous good tweet in the timeline. No new tweet
  with the string sent to the API appears in the timeline. If you repeat
  the same API call, the API returns 500 and the response string has an
  HTML page that something strange happened:
  h2Something is technically wrong./h2
  pThanks for noticing we're going to fix it up and have things back
  to normal soon./p
 
  No other use of the asterisk has a problem that I can find. These bad
  tweet strings cause similar problems on Twitter.com.
 
  --
  Twitter developer documentation and resources: http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk
 
  --
  Twitter developer documentation and resources: http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk
 



 --
 Adam Green
 Twitter API Consultant and Trainer
 http://140dev.com
 @140dev

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk

--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk



-- 
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twurl is getting Read-only application cannot POST

2011-01-04 Thread TJ Luoma
On Tue, Jan 4, 2011 at 5:13 PM, Matt Harris thematthar...@twitter.com wrote:
 Deleting applications is a known issue at the moment being tracked on our
 issue tracker:
     http://code.google.com/p/twitter-api/issues/detail?id=2040

Why is the 'delete' button still shown if you know it isn't working?


 Regarding your application. Can you check under:
     http://dev.twitter.com/apps
 That your application is read and write. The error message is very specific
 and is only triggered by an application which is read only. If it is read
 and write, try changing it to read only and then back again.

It was set to read  write, as previously stated, but since you don't
believe me, here's a screenshot:

https://img.skitch.com/20110105-e7439ygif6i6yiiwuir244itnp.jpg

I did as you suggested, toggling the app to read only, (and then saved
 saw it listed as read only), and then changed it back to readwrite,
as shown here:

https://img.skitch.com/20110105-urh375rhp1bfmgu463pbtwc3b.jpg

Then re-authorized (which I'll now have to do on 4 different computers
since the keys changed):

# twurl authorize --consumer-key 6meHNyaircETFgqObTAkQ
--consumer-secret qqKvuCRyNBGrYMPQIUyhZiOU8sLdlKS9Mo7Edx70Uk

and then pasted the PIN from my web browser. It said it authorized.

I tried my script again:

# twit.sh --block @dwikirowi

failed, as did

# twurl  -d screen_name=dwikirowi /1/blocks/create.xml
?xml version=1.0 encoding=UTF-8?
hash
  request/1/blocks/create.xml/request
  errorRead-only application cannot POST/error
/hash

Actually, now that I think about it… isn't that suggesting that
*twurl* is Read-Only, not my app? I don't know. All I know is that we
never had these problems with curl and I've wasted far too long on
this when I could have been actually improving my program :-/

Would xAuth make this any easier?

TjL

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twurl is getting Read-only application cannot POST

2011-01-04 Thread Abraham Williams
Go to https://twitter.com/settings/connections and find the application you
are testing with. Coffee says that next to it will be read-only access.
You will have to revoke access then a new authorization should work.

Actually, now that I think about it… isn't that suggesting that *twurl* is
 Read-Only, not my app?


No. It Twurl is just acting like a library that is using your applications
consumer key and secret. (Which you should reset if those are you real
values in the emails).

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Tue, Jan 4, 2011 at 18:40, TJ Luoma luo...@gmail.com wrote:

 On Tue, Jan 4, 2011 at 5:13 PM, Matt Harris thematthar...@twitter.com
 wrote:
  Deleting applications is a known issue at the moment being tracked on our
  issue tracker:
  http://code.google.com/p/twitter-api/issues/detail?id=2040

 Why is the 'delete' button still shown if you know it isn't working?


  Regarding your application. Can you check under:
  http://dev.twitter.com/apps
  That your application is read and write. The error message is very
 specific
  and is only triggered by an application which is read only. If it is read
  and write, try changing it to read only and then back again.

 It was set to read  write, as previously stated, but since you don't
 believe me, here's a screenshot:

 https://img.skitch.com/20110105-e7439ygif6i6yiiwuir244itnp.jpg

 I did as you suggested, toggling the app to read only, (and then saved
  saw it listed as read only), and then changed it back to readwrite,
 as shown here:

 https://img.skitch.com/20110105-urh375rhp1bfmgu463pbtwc3b.jpg

 Then re-authorized (which I'll now have to do on 4 different computers
 since the keys changed):

 # twurl authorize --consumer-key 6meHNyaircETFgqObTAkQ
 --consumer-secret qqKvuCRyNBGrYMPQIUyhZiOU8sLdlKS9Mo7Edx70Uk

 and then pasted the PIN from my web browser. It said it authorized.

 I tried my script again:

 # twit.sh --block @dwikirowi

 failed, as did

 # twurl  -d screen_name=dwikirowi /1/blocks/create.xml
 ?xml version=1.0 encoding=UTF-8?
 hash
  request/1/blocks/create.xml/request
  errorRead-only application cannot POST/error
 /hash

 Actually, now that I think about it… isn't that suggesting that
 *twurl* is Read-Only, not my app? I don't know. All I know is that we
 never had these problems with curl and I've wasted far too long on
 this when I could have been actually improving my program :-/

 Would xAuth make this any easier?

 TjL

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twitter sign-on and user_id based urls

2011-01-04 Thread Abraham Williams
Are we playing necroing now?
http://www.urbandictionary.com/define.php?term=necroing

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Tue, Jan 4, 2011 at 17:31, Juan Antonio Cano jacan...@gmail.com wrote:

 There you have.

 http://twitter.com/account/redirect_by_id?id=X

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Beginner's trouble with OAuth (using Abraham's PHP library)

2011-01-04 Thread Dave The Happy Singer
Thanks, Tom. That was perhaps the very root of my problem.

I had been used to errors being shown by default. This was a relatively
recent OS install. I don't know if something has changed in recent months (I
use a LAMP stack on Ubuntu), but I had to change display_errors to on in
php.ini, which I had never had to do previously on a fresh install as far as
I can recall.

Anyway, this is becoming less and less Twitter-related, so I'll tip my hat
to all the kind and helpful people and get back to my coding fun. :-)

Dave
(@HappySinger)

On 4 January 2011 21:16, Tom van der Woerdt i...@tvdw.eu wrote:

 You may like to know that you can make your server show errors by using
 either ini_set('display_errors', 'On'); or setting display_errors to On in
 your php.ini. Also check error_reporting, set it to E_ALL for optimal
 debugging.

 Tom



 On 1/4/11 6:47 AM, Dave The Happy Singer wrote:

 Aha! Problem solved!

 As you noted, print_r($v) wasn't printing anything. Moving print_r($t)
 to after the get() call wiped all output but 'pre'.

 The problem? For some reason, my PHP installation wasn't displaying
 errors. A look in the apache log revealed that this was masking 'Fatal
 error: Call to undefined function: curl_init()'.

 Installing php5-curl and rebooting solved my problem, and now I appear
 to be in business.

 Thank you ever so much for your time, Abraham. I wonder if it would be
 an idea for your library to catch the failure of curl_init() and add an
 error status to the object? No biggie, though. There was no-one to blame
 but myself here; sorry!

 Dave
 (@HappySinger)

 On 4 January 2011 16:08, Abraham Williams 4bra...@gmail.com
 mailto:4bra...@gmail.com wrote:

Try printing $t after you make the get request. Where you are
printing $t now it doesn't contain any info from the actual request.
I also don't see anything printed from $v. $v should be printing any
error messages returned from Twitter. If $v is not printing anything
or http_code is 0 then your server is probably are able to connect
to https://api.twitter.com.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am http://abrah.am
@abraham https://twitter.com/abraham | github.com/abraham
https://github.com/abraham | blog.abrah.am http://blog.abrah.am

This email is: [ ] shareable [x] ask first [ ] private.



On Mon, Jan 3, 2011 at 20:26, Dave The Happy Singer
sm...@davethehappysinger.com mailto:sm...@davethehappysinger.com

wrote:

Hi there,

Based on the instructions at: https://gist.github.com/564882, I
am trying to set up the TwitterOAuth object, but I seem to be
falling at the first hurdle, even before I try authenticating
another user.

With the code:

pre
?php
 error_reporting(E_ALL);
 require_once('twitteroauth/twitteroauth.php');
 require_once('config.php');
 $t = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

 print_r($t);
 $v = $t-get('account/verify_credentials');
 print_r($v);
?
/pre

I am getting the following output:

TwitterOAuth Object
(
 [http_code] =
 [url] =
 [host] = https://api.twitter.com/1/
 [timeout] = 30
 [connecttimeout] = 30
 [ssl_verifypeer] =
 [format] = json
 [decode_json] = 1
 [http_info] =
 [useragent] = TwitterOAuth v0.2.0-beta2
 [sha1_method] = OAuthSignatureMethod_HMAC_SHA1 Object
 (
 )

 [consumer] = OAuthConsumer Object
 (
 [key] = apparently correct
 [secret] = apparently correct
 [callback_url] =
 )

 [token] = OAuthConsumer Object
 (
 [key] = apparently correct
 [secret] = apparently correct
 [callback_url] =
 )

)

As you can see, I am not getting the methods 'get', 'post' etc.
in my object $t when I instantiate it, and I can go no further.

I'm confuzzled, and would be grateful for any tips!

Dave

--
Twitter developer documentation and resources:
http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk


--
Twitter developer documentation and resources:
http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker:

Re: [twitter-dev] twurl is getting Read-only application cannot POST

2011-01-04 Thread TJ Luoma
On Tue, Jan 4, 2011 at 10:06 PM, Abraham Williams 4bra...@gmail.com wrote:
 Go to https://twitter.com/settings/connections and find the application you
 are testing with. Coffee says that next to it will be read-only access.
 You will have to revoke access then a new authorization should work.

Can I get that coffee via PayPal?

https://img.skitch.com/20110105-mr9ydhi9uh6yr2e6mkpjy26gaq.jpg

Again, the app has NEVER BEEN Read Only, so the app could never have
requested Read Only access to my account.


 Actually, now that I think about it… isn't that suggesting that *twurl* is
 Read-Only, not my app?

 No. It Twurl is just acting like a library that is using your applications
 consumer key and secret. (Which you should reset if those are you real
 values in the emails).

Will do.


I appreciate folks willingness to help, but so far everything has
resolved around the idea that I must be wrong about the app being
read only. I don't know how else to prove that it isn't now and it
never was.



TjL

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] twurl is getting Read-only application cannot POST

2011-01-04 Thread Abraham Williams
I don't think PayPal sends coffees...

At this point I would recommend creating a new application. If you are still
having issues deleting the existing one you should be able to rename it to
something else and delete it later.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Tue, Jan 4, 2011 at 23:05, TJ Luoma luo...@gmail.com wrote:

 On Tue, Jan 4, 2011 at 10:06 PM, Abraham Williams 4bra...@gmail.com
 wrote:
  Go to https://twitter.com/settings/connections and find the application
 you
  are testing with. Coffee says that next to it will be read-only access.
  You will have to revoke access then a new authorization should work.

 Can I get that coffee via PayPal?

 https://img.skitch.com/20110105-mr9ydhi9uh6yr2e6mkpjy26gaq.jpg

 Again, the app has NEVER BEEN Read Only, so the app could never have
 requested Read Only access to my account.


  Actually, now that I think about it… isn't that suggesting that *twurl*
 is
  Read-Only, not my app?
 
  No. It Twurl is just acting like a library that is using your
 applications
  consumer key and secret. (Which you should reset if those are you real
  values in the emails).

 Will do.


 I appreciate folks willingness to help, but so far everything has
 resolved around the idea that I must be wrong about the app being
 read only. I don't know how else to prove that it isn't now and it
 never was.



 TjL

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk