[twitter-dev] Re: not authorized over and over again

2010-10-01 Thread Thai Pangsakulyanont
You have to make sure that `Twitterh.OAuth_token` and
`Twitterh.OAuth_token_secret` stays same before and after restarting
the application. Also, make sure that `oauth_timestamp` is up to date
and `oauth_nonce` is unique each time you make a request.

On Oct 1, 6:05 am, eMailaya a...@emailaya.com wrote:
 i could really use some help here
 thanks

 On Sep 29, 7:05 pm, eMailaya a...@emailaya.com wrote:







  any kind of help here will be appreciated
  thanks

  On Sep 28, 8:06 pm, eMailaya a...@emailaya.com wrote:

   im doing the following:

       Twitterh.Key := consumer key - hard coded
       Twitterh.Secret := consumer secret - hard coded
       Twitterh.OAuth_token :=
   SettingsFile.ReadString('TWITTER','TOKEN',''); //saved from when i got
   the authorization from the user
       Twitterh.OAuth_token_secret :=
   SettingsFile.ReadString('TWITTER','TOKENSECRET',''); //saved from when
   i got the authorization from the user

   after getting the authorization from the user i can do both getting
   the statuses of the user and the followees but NOT updating the
   status.
   after restart of the application, at first try i do succeed to
   receive the user's statuses but not his followees' , on second try
   (without restart), i can do nothing and all for the same reason: not
   authorized

   not sure i understood the other reply of re-hashing, hashing of what
   exactly? the only place i do some processing is when i ask for
   authorization from the user. i want it so once i have it, to not need
   to re-ask it over and over again

   what am i missing?
   thanks

   On Sep 28, 10:52 am, Tom van der Woerdt i...@tvdw.eu wrote:

If you save those four keys, you should have everything you need to
restore the session.

If this does not work for you, make sure that you save the keys
properly. For example, you don't want to confuse oauth_token with
oauth_consumer_key.

Tom

On 9/28/10 12:39 AM, eMailaya wrote:

 Im developing a desktop application. firstly, the user needs to
 approve my app to let it access his account, enter the PIN code and
 retrieve his statuses and his followees' statuses, all is working
 fine.

 im closing my application and re-open it. now i already have his PIN
 code so im skipping the authorization part. i put the oauth_key and
 oauth_key_secret, the consumer_key and consumer_secret and ask for his
 statuses, this one works but when i want to retrieve his followees
 statuses i get unauthorized error. trying again causing the
 unauthorized error also for his statuses. the only way to solve this
 problem is to ask for an authorization everytime, this is annoying.

 also, i cant update the status for the same reason/error
 any idea what am i missing?
 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-dev] twitter oauth :geting undefined index: oauth_token_secret in

2010-10-01 Thread bharani
Hi am trying to post tweets using oauth (PHP)

i created the application in my twitter account ,

i executed some open source script but that produce the below error,

Notice: Undefined index: oauth_token_secret in

How to fix this issue

my snippet

require_once('twitterOAuth/twitterOAuth.php');
require_once('twitterOAuth/OAuth.php');


$consumer_key='q3fsdfsdfsdw';
$consumer_secret='rfsdfsdfsdfsdfdsfsdL';
$request_token='http://twitter.com/oauth/request_token';
$request_token_secret='5454545';
$oauth = new TwitterOAuth($consumer_key, $consumer_secret,
$request_token, $request_token_secret);

// Ask Twitter for an access token (and an access token secret)
$request = $oauth-getAccessToken();

$access_token = $request['amp;oauth_token'];
$access_token_secret = $request['oauth_token_secret'];=== HERE AM
GETTING TROUBLE

function getAccessToken($token = NULL, $pin = NULL)
{
if ($pin)
$r = $this-oAuthRequest($this-accessTokenURL(),
array(oauth_verifier = $pin));
else
$r = $this-oAuthRequest($this-accessTokenURL());

$token = $this-oAuthParseResponse($r);
$this-token = new OAuthConsumer($token['oauth_token'],
$token['oauth_token_secret']);

return $token;
}

My complete Error Here

Notice: Undefined index: oauth_token_secret in E:\wamp\www\source\oauth
\twitterOAuth\twitteroauth.php on line 118

Notice: Undefined index: oauth_token_secret in E:\wamp\www\source\oauth
\bharani.php

-- 
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] undefined index: oauth_token_secret in

2010-10-01 Thread bharani kumar
Hi ,


When i run my oauth snippet am getting this error,

Refer some good open source oauth,

Thanks

-- 
Regards
B.S.Bharanikumar
http://php-mysql-jquery.blogspot.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-dev] Twitter user's email

2010-10-01 Thread Imran
Is there any way to get user's email address using Twitter API?


Thanks

Imran

-- 
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: Help converting Basic Auth to oAuth

2010-10-01 Thread Lorraine
Thanks again, but now am getting:
Warning: Invalid argument supplied for foreach()

It looks correct to me, so I'm confused about the warning.

Thanks
Lorraine

On Fri, Oct 1, 2010 at 3:54 AM, Abraham Williams 4bra...@gmail.com wrote:

 You don't need the cURL and XML code.

  require_once('twitteroauth.php');
 $connection = new TwitterOAuth('consumer key', 'consumer secret', 'access
 token', 'access token secret');
 $tweets = $connection-get('statuses/friends_timeline');
 $latesttweets = count($tweets);

 foreach ($tweets-status as $tweet) {
   echo  $tweet-text;
 }


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


 On Thu, Sep 30, 2010 at 11:38, Lorraine lorrainema...@gmail.com wrote:

 Thank you so much, Abraham! I'm getting an error String could not be
 parsed as XML now- this is what I now have (with my reset consumer keys put
 in :-)):


 require_once('twitteroauth.php');
 $connection = new TwitterOAuth('consumer key', 'consumer secret', 'access
 token', 'access token secret');
 $tweets = $connection-get('statuses/friends_timeline');
 $latesttweets = count($tweets);

 $tw = curl_init();
 curl_setopt($tw, CURLOPT_URL, $tweets);
 curl_setopt($tw, CURLOPT_RETURNTRANSFER, TRUE);

 $twi = curl_exec($tw);
 $tweeters = new SimpleXMLElement($twi);

 I then go on to grab data using
 foreach ($tweeters-status as $twit1) {

 etc.

 Thanks again,
 Lorraine

 On Fri, Oct 1, 2010 at 2:13 AM, Abraham Williams 4bra...@gmail.comwrote:

 Make sure you reset your consumer key on http://dev.twitter.com/apps and
 try not to post them in public in the future.

 This should work. I switched it to json as it didn't look like you needed
 the actual xml and dropped the count as 20 is the default.

 require_once('twitteroauth.php');
 $connection = new TwitterOAuth('consumer key', 'consumer secret', 'access
 token', 'access token secret');
 $tweets = $connection-get('statuses/friends_timeline');
 $latesttweets = count($tweets);



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



 On Thu, Sep 30, 2010 at 02:38, Lorraine lorrainema...@gmail.com wrote:

 Maybe I should explain what I'm trying to do-- basically just want to
 get my own status updates and the (public) details  updates of my
 friends.

 Would it work if I replaced this:
 $login = mytwitterusername:mytwitterpassword;
 $tweets = http://twitter.com/statuses/friends_timeline.xml?count=20;;

 with this?:

 require_once('twitteroauth.php');
 $connection = new TwitterOAuth('6Oe8P3U72LimBkfGsj0h1A',
 'XVX67blKxfro001KDq1PZLV6QwZ5Et1TnmeVBexMqI', '769601-
 PXr5egoxYccGKnua9cg58QNfVMIyiXsEFUtkOPoH0',
 'P7JiGIKvMg8TsaKgxU9azAi8cZwerZyshu1VHwoPbD8');
 $connection-format = 'xml';
 $tweets = $connection-get('statuses/friends_timeline.xml?count=20');

 $tw = curl_init();
 curl_setopt($tw, CURLOPT_URL, $tweets);
 curl_setopt($tw, CURLOPT_RETURNTRANSFER, TRUE);

 $twi = curl_exec($tw);
 $tweeters = new SimpleXMLElement($twi);
 $latesttweets = count($tweeters);

 ... or am I completely off the mark?

 Thanks very much :)
 Lorraine

 --
 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


-- 
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: not authorized over and over again

2010-10-01 Thread eMailaya
* please read my comments inside the 
* i store the token and token secret and i checked and they are the
same

here is what i do step by step until it doesnt work. first i ask for
authorization and get it with a PIN. then the user enters the PIN and
gets the information.
first i call for the user's statuses and this works:
http://twitter.com/statuses/user_timeline/user.xml?oauth_consumer_key=consumer
keyoauth_nonce=F89B4E724909C57D71193B24D075B88Foauth_signature_method=HMAC-
SHA1oauth_signature=oauth sig, changes every
calloauth_timestamp=1285925817oauth_token=oauth token, same as in
the next call, different than the other 2 callsoauth_version=1.0

then i ask for the followees statuses and that is working too:
http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consumer_key=consumer
keyoauth_nonce=8C822206BE598A78CF97E942CB8A24E5oauth_signature_method=HMAC-
SHA1oauth_signature=oauth sig, changes every
calloauth_timestamp=1285925833oauth_token=same as previous call,
different than the next 2 callsoauth_version=1.0

then i simply press the button again to make the same 2 calls once
again, first i ask for the user statuses and this works:
http://twitter.com/statuses/user_timeline/emailaya.xml?oauth_consumer_key=consumer
keyoauth_nonce=F7414A51B2D59AF04E13D7D2A58821DAoauth_signature_method=HMAC-
SHA1oauth_signature=oauth sig, changes every
calloauth_timestamp=1285925869oauth_token=oauth token, different
than the ones from above, same as in the next calloauth_version=1.0

then i ask for the followees statuses but this time, it doesnt work
with the not authorized error:
http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consumer_key=consumer
keyoauth_nonce=3AC90E2A7C528953FC32A1B909D54B53oauth_signature_method=HMAC-
SHA1oauth_signature=oauth sig, changes every
calloauth_timestamp=1285925897oauth_token=same as in the above
calloauth_version=1.0

what am i missing?
the weird thing is that the user statuses do work but the right after
that i call the followees statuses and that doesnt work, though just 2
seconds ago, in the previous 2 calls, right after the authorization,
it did work with no problem.


to update a status, right after the authorization from the user, i
call to this url: http://twitter.com/statuses/update.xml but again, i
get unauthorized. i never succeeded to update a status for that
reason. here there is no complex url that contains parameters
what am i missing?



On Oct 1, 7:09 am, Thai Pangsakulyanont org.yi.dt...@gmail.com
wrote:
 You have to make sure that `Twitterh.OAuth_token` and
 `Twitterh.OAuth_token_secret` stays same before and after restarting
 the application. Also, make sure that `oauth_timestamp` is up to date
 and `oauth_nonce` is unique each time you make a request.

 On Oct 1, 6:05 am, eMailaya a...@emailaya.com wrote:

  i could really use some help here
  thanks

  On Sep 29, 7:05 pm, eMailaya a...@emailaya.com wrote:

   any kind of help here will be appreciated
   thanks

   On Sep 28, 8:06 pm, eMailaya a...@emailaya.com wrote:

im doing the following:

    Twitterh.Key := consumer key - hard coded
    Twitterh.Secret := consumer secret - hard coded
    Twitterh.OAuth_token :=
SettingsFile.ReadString('TWITTER','TOKEN',''); //saved from when i got
the authorization from the user
    Twitterh.OAuth_token_secret :=
SettingsFile.ReadString('TWITTER','TOKENSECRET',''); //saved from when
i got the authorization from the user

after getting the authorization from the user i can do both getting
the statuses of the user and the followees but NOT updating the
status.
after restart of the application, at first try i do succeed to
receive the user's statuses but not his followees' , on second try
(without restart), i can do nothing and all for the same reason: not
authorized

not sure i understood the other reply of re-hashing, hashing of what
exactly? the only place i do some processing is when i ask for
authorization from the user. i want it so once i have it, to not need
to re-ask it over and over again

what am i missing?
thanks

On Sep 28, 10:52 am, Tom van der Woerdt i...@tvdw.eu wrote:

 If you save those four keys, you should have everything you need to
 restore the session.

 If this does not work for you, make sure that you save the keys
 properly. For example, you don't want to confuse oauth_token with
 oauth_consumer_key.

 Tom

 On 9/28/10 12:39 AM, eMailaya wrote:

  Im developing a desktop application. firstly, the user needs to
  approve my app to let it access his account, enter the PIN code and
  retrieve his statuses and his followees' statuses, all is working
  fine.

  im closing my application and re-open it. now i already have his PIN
  code so im skipping the authorization part. i put the oauth_key and
  oauth_key_secret, the consumer_key and consumer_secret and ask for 
  his
  

[twitter-dev] Re: xAuth - sometimes Error with StatusCode 401, sometimes Response with StatusCode 200

2010-10-01 Thread andy
Hello again,

I still have problems that I sometimes get a successful response, and
a couple of times a faulty response.
If I get a bad response, then four hundred and first with the status
code The error message uist following:
Failed to validate oauth signature and token

The values that are different are the oAuth_nonce and oAuth_timestamp.
The oAuth_nonce is determined by a random number. This is determined
by the uuid of the current date. Subcontent special characters such
as: - removed. Such uuid should be unique. I wonder why I for similar
calculations of the nonce, etc. sometimes successful and sometimes get
a bad response!

On 27 Sep., 11:41, Tom van der Woerdt i...@tvdw.eu wrote:
 401 is a general HTTP error code. The message is more important.

 If the message is about an invalid nonce, then you should check the
 timestamp. If it's about a nonce that had already been used, check the
 nonce. If it's a signature error, check the code that generates the
 signature and make sure to use proper URL encoding (which may be an
 issue here).

 It's xAuth you are using here, so also make sure that you are entering
 the right password. ;-)

 Tom

 On Mon, 27 Sep 2010 02:31:01 -0700 (PDT), andy

 andreas-wilkeme...@andreazw.de wrote:
  Hello,

  I using xAuth for an Flash-Application. I have written in the group
  Twitter Development Group already several entries, as there was
  problems to use xauth. I currently have an application that works half
  way. The problem is that I sometimes get a response with a HTTP-
  StatucCode of 200 and sometimes an error with a status code of 401.
  The only difference is that a new timestamp and a new nonce
  (oauth_nonce) are calculated. Is it possible that there will be
  differences in these parameters?

  The following is an example with parameters that return a successful
  Resposnse (HTTP status code 200):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=07AF3D6E65C79090E9B35274C03E4946
  oauth_signature=KnC1UxVVyqkrDsuwmBqGhiJpjQI=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285578604
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  And now an incorrect response with the following parameters (HTTP
  status code 401):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=317780E4B140C66DD4715283B40F13DC
  oauth_signature=0Pnd/X3w8VR5+iNmpJuNeBydeec=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285579584
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  Thanks,
  Andy

-- 
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: xAuth - sometimes Error with StatusCode 401, sometimes Response with StatusCode 200

2010-10-01 Thread andy


On 27 Sep., 11:41, Tom van der Woerdt i...@tvdw.eu wrote:
 401 is a general HTTP error code. The message is more important.

 If the message is about an invalid nonce, then you should check the
 timestamp. If it's about a nonce that had already been used, check the
 nonce. If it's a signature error, check the code that generates the
 signature and make sure to use proper URL encoding (which may be an
 issue here).

 It's xAuth you are using here, so also make sure that you are entering
 the right password. ;-)

 Tom

 On Mon, 27 Sep 2010 02:31:01 -0700 (PDT), andy

 andreas-wilkeme...@andreazw.de wrote:
  Hello,

  I using xAuth for an Flash-Application. I have written in the group
  Twitter Development Group already several entries, as there was
  problems to use xauth. I currently have an application that works half
  way. The problem is that I sometimes get a response with a HTTP-
  StatucCode of 200 and sometimes an error with a status code of 401.
  The only difference is that a new timestamp and a new nonce
  (oauth_nonce) are calculated. Is it possible that there will be
  differences in these parameters?

  The following is an example with parameters that return a successful
  Resposnse (HTTP status code 200):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=07AF3D6E65C79090E9B35274C03E4946
  oauth_signature=KnC1UxVVyqkrDsuwmBqGhiJpjQI=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285578604
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  And now an incorrect response with the following parameters (HTTP
  status code 401):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=317780E4B140C66DD4715283B40F13DC
  oauth_signature=0Pnd/X3w8VR5+iNmpJuNeBydeec=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285579584
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  Thanks,
  Andy

-- 
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: xAuth - sometimes Error with StatusCode 401, sometimes Response with StatusCode 200

2010-10-01 Thread andy


On 27 Sep., 11:41, Tom van der Woerdt i...@tvdw.eu wrote:
 401 is a general HTTP error code. The message is more important.

 If the message is about an invalid nonce, then you should check the
 timestamp. If it's about a nonce that had already been used, check the
 nonce. If it's a signature error, check the code that generates the
 signature and make sure to use proper URL encoding (which may be an
 issue here).

 It's xAuth you are using here, so also make sure that you are entering
 the right password. ;-)

 Tom

 On Mon, 27 Sep 2010 02:31:01 -0700 (PDT), andy

 andreas-wilkeme...@andreazw.de wrote:
  Hello,

  I using xAuth for an Flash-Application. I have written in the group
  Twitter Development Group already several entries, as there was
  problems to use xauth. I currently have an application that works half
  way. The problem is that I sometimes get a response with a HTTP-
  StatucCode of 200 and sometimes an error with a status code of 401.
  The only difference is that a new timestamp and a new nonce
  (oauth_nonce) are calculated. Is it possible that there will be
  differences in these parameters?

  The following is an example with parameters that return a successful
  Resposnse (HTTP status code 200):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=07AF3D6E65C79090E9B35274C03E4946
  oauth_signature=KnC1UxVVyqkrDsuwmBqGhiJpjQI=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285578604
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  And now an incorrect response with the following parameters (HTTP
  status code 401):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=317780E4B140C66DD4715283B40F13DC
  oauth_signature=0Pnd/X3w8VR5+iNmpJuNeBydeec=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285579584
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  Thanks,
  Andy

-- 
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: xAuth - sometimes Error with StatusCode 401, sometimes Response with StatusCode 200

2010-10-01 Thread andy
Hello again,

I still have problems that I sometimes get a successful response, and
a couple of times a faulty response.
If I get a bad response, then four hundred and first with the status
code The error message uist following:
Failed to validate oauth signature and token

The values that are different are the oAuth_nonce and oAuth_timestamp.
The oAuth_nonce is determined by a random number. This is determined
by the uuid of the current date. Subcontent special characters such
as: - removed. Such uuid should be unique. I wonder why I for similar
calculations of the nonce, etc. sometimes successful and sometimes get
a bad response!

On 27 Sep., 11:41, Tom van der Woerdt i...@tvdw.eu wrote:
 401 is a general HTTP error code. The message is more important.

 If the message is about an invalid nonce, then you should check the
 timestamp. If it's about a nonce that had already been used, check the
 nonce. If it's a signature error, check the code that generates the
 signature and make sure to use proper URL encoding (which may be an
 issue here).

 It's xAuth you are using here, so also make sure that you are entering
 the right password. ;-)

 Tom

 On Mon, 27 Sep 2010 02:31:01 -0700 (PDT), andy

 andreas-wilkeme...@andreazw.de wrote:
  Hello,

  I using xAuth for an Flash-Application. I have written in the group
  Twitter Development Group already several entries, as there was
  problems to use xauth. I currently have an application that works half
  way. The problem is that I sometimes get a response with a HTTP-
  StatucCode of 200 and sometimes an error with a status code of 401.
  The only difference is that a new timestamp and a new nonce
  (oauth_nonce) are calculated. Is it possible that there will be
  differences in these parameters?

  The following is an example with parameters that return a successful
  Resposnse (HTTP status code 200):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=07AF3D6E65C79090E9B35274C03E4946
  oauth_signature=KnC1UxVVyqkrDsuwmBqGhiJpjQI=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285578604
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  And now an incorrect response with the following parameters (HTTP
  status code 401):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=317780E4B140C66DD4715283B40F13DC
  oauth_signature=0Pnd/X3w8VR5+iNmpJuNeBydeec=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285579584
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  Thanks,
  Andy

-- 
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: xAuth - sometimes Error with StatusCode 401, sometimes Response with StatusCode 200

2010-10-01 Thread andy
Hello again,

I still have problems that I sometimes get a successful response, and
a couple of times a faulty response.
If I get a bad response, then four hundred and first with the status
code The error message uist following:
Failed to validate oauth signature and token

The values that are different are the oAuth_nonce and oAuth_timestamp.
The oAuth_nonce is determined by a random number. This is determined
by the uuid of the current date. Subcontent special characters such
as: - removed. Such uuid should be unique. I wonder why I for similar
calculations of the nonce, etc. sometimes successful and sometimes get
a bad response!

On 27 Sep., 11:41, Tom van der Woerdt i...@tvdw.eu wrote:
 401 is a general HTTP error code. The message is more important.

 If the message is about an invalid nonce, then you should check the
 timestamp. If it's about a nonce that had already been used, check the
 nonce. If it's a signature error, check the code that generates the
 signature and make sure to use proper URL encoding (which may be an
 issue here).

 It's xAuth you are using here, so also make sure that you are entering
 the right password. ;-)

 Tom

 On Mon, 27 Sep 2010 02:31:01 -0700 (PDT), andy

 andreas-wilkeme...@andreazw.de wrote:
  Hello,

  I using xAuth for an Flash-Application. I have written in the group
  Twitter Development Group already several entries, as there was
  problems to use xauth. I currently have an application that works half
  way. The problem is that I sometimes get a response with a HTTP-
  StatucCode of 200 and sometimes an error with a status code of 401.
  The only difference is that a new timestamp and a new nonce
  (oauth_nonce) are calculated. Is it possible that there will be
  differences in these parameters?

  The following is an example with parameters that return a successful
  Resposnse (HTTP status code 200):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=07AF3D6E65C79090E9B35274C03E4946
  oauth_signature=KnC1UxVVyqkrDsuwmBqGhiJpjQI=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285578604
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  And now an incorrect response with the following parameters (HTTP
  status code 401):
  oauth_consumer_key=myConsumerKey
  oauth_nonce=317780E4B140C66DD4715283B40F13DC
  oauth_signature=0Pnd/X3w8VR5+iNmpJuNeBydeec=
  oauth_signature_method=HMAC-SHA1
  oauth_timestamp=1285579584
  oauth_version=1.0
  x_auth_mode=client_auth
  x_auth_password=myPassword
  x_auth_username=myUsername

  Thanks,
  Andy

-- 
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: List of @usernames

2010-10-01 Thread artesea
The problem with that method is that
a) I would still need to use a large number of api calls just to build
the initial list
b) it requires new followers to appear on the first api call. Whilst
this happens at the moment, it might not in the future.
c) the api won't tell me people you have recently unfollowed
d) I'd need to check for updates on a server side for each user on a
frequent basis

if it was just for me, I'd be happy with this method (check once a
day, not many changes). but for 000s of users it gets time consuming.

On Sep 30, 1:24 pm, nischalshetty nischalshett...@gmail.com wrote:
 There's no way right now to get usernames in bulk. Get the ids, then
 query and get the complete info 100 at a time. You can build this for
 your users over time.

 Once list of friends for a user has been retrieved, the next time a
 user comes, you can just get the latest set of friends and add them to
 the existing records.

 -Nischal

 On Sep 30, 4:01 pm, artesea ryancul...@gmail.com wrote:

  I was hoping on adding some ajax code to my web app to allow auto-
  completing of @usernames as you start typing
  eg:
  [...@jon]
  �...@jonathan
  �...@jon_smith
  �...@jonny
  I suspect I'll need to cache the names on my server, but was wondering
  if there was a quick API call to get just the usernames of the people
  you follow.

  statuses/friends gets me the username, but I also end up with more
  data than I need (bandwidth), and have to navigate in blocks of 100s
  (time).
  friends/ids looks perfect, limited info, brings back 5000 in one go,
  however I only get the ids.

  Is there a (hidden) option to get usernames instead of ids with
  friends/ ?

  Else if I have a user who is following 3000 people I will need to
  cursor through the api 30 times, just to build a cache file, by the
  time that is complete I'm sure the user will have completed the name.

-- 
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] List of new users registering on twitter datawise

2010-10-01 Thread rajiv74
Hi,

  Can I get the list of users registering on twitter on daily
basis or date wise using twitter api? Can I also get the list of
twitter users category wise? Please help as I need to implement this
in one of my site. If there is no way, can you help me to suggest
alternate way to get the database of users from twitter?

Thanks,

Rajiv

-- 
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] about image-size in newtwitter

2010-10-01 Thread Rushikesh Bhanage
Hi there,

 I got the new look of new twitter, and liked it a lot.

 The profile-image size in newtwitter has been increased from
previous(48*48). When I increase the profile image size of the user(the
image i get from api right now), it looks unclear, blur type. I just need to
know that, will I get a big image from twitter API, once new twitter will
come in service completely? or can I do it from my side?


Thank you 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


Re: [twitter-dev] about image-size in newtwitter

2010-10-01 Thread Thomas Mango
If you're using the profile_image_url from the API, you can remove the
_normal from the suffix to get the original size, although you have
to make sure the user doesn't have a default image.

You can also use this API method:
http://dev.twitter.com/doc/get/users/profile_image/:screen_name

The response from that API method shouldn't be used directly as an
image source, though.

On Fri, Oct 1, 2010 at 9:43 AM, Rushikesh Bhanage
rishibhan...@gmail.com wrote:
 Hi there,

  I got the new look of new twitter, and liked it a lot.

  The profile-image size in newtwitter has been increased from
 previous(48*48). When I increase the profile image size of the user(the
 image i get from api right now), it looks unclear, blur type. I just need to
 know that, will I get a big image from twitter API, once new twitter will
 come in service completely? or can I do it from my side?


 Thank you 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




-- 
Thomas Mango
tsma...@gmail.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-dev] Failed to validate oauth signature and token in xauth

2010-10-01 Thread Hyeonjong Ryu
Yes, I know there're already plenty of questions with this same topic,
but I cannot really find out the one suite for me.
I use C++ and libcurl to make a HTTP POST request, and here are some
ingredients that I used for POST requests.

Signature base string
POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
%2Faccess_tokenoauth_consumer_key%3DMYCONSUMERKEY%26oauth_nonce
%3DXZZJd88qUu25L8wpylQ6%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1285924211%26oauth_version%3D1.0%26x_auth_mode
%3Dclient_auth%26x_auth_password%3DMYPASSWORD%26x_auth_username
%3Dxoancer%40seed9.com

POST Body
x_auth_username=xoancer
%40seed9.comx_auth_password=MYPASSWORDx_auth_mode=client_auth

HTTP Header
Authorization: OAuth oauth_nonce=XZZJd88qUu25L8wpylQ6,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285924211,
oauth_consumer_key=MYCONSUMERKEY,
oauth_signature=l4L1%2Fn7w3P7U0lcxvkTizusF2TY%3D,
oauth_version=1.0

I believe signature generating is not the problem since my program
makes the proper one when it runs with the example at
http://dev.twitter.com/pages/xauth. But without the signature
parameter, I cannot found out what's wrong since every other
parameters are just a given constants(except nonce, but he doesn't
really matter I think.).
Maybe I missed something in using libcurl, since it's first time for
me to use this library, especially in setting HTTP Header. Follows are
my source codes for libcurl parts.

curl_global_init(CURL_GLOBAL_ALL);

CURL *curl;
curl = curl_easy_init();

curl_easy_reset(curl);
curl_easy_setopt(curl, CURLOPT_URL, baseUrl.c_str());
// baseUrl == https://api.twitter.com/oauth/access_token

curl_easy_setopt(curl, CURLOPT_POST, true);

string postbody;
for(int i=7;i=5;i--) postbody +=  + params[i].first + = +
urlenc(params[i].second);
postbody = postbody.substr(1);
// postbody == x_auth_username=xoancer
%40seed9.comx_auth_password=MYPASSWORDx_auth_mode=client_auth

curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postbody.c_str());

string header = Authorization: OAuth  + params[1].first + =\ +
params[1].second + \,  + params[2].first + =\ + params[2].second
+ \,  + params[3].first + =\ +
params[3].second + \,  + params[0].first + =\ +
params[0].second + \, oauth_signature=\;

header += urlenc(base64encoded);
header += \, oauth_version=\1.0\;
// header == Authorization: OAuth oauth_nonce=XZZJd88qUu25L8wpylQ6,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285924211,
oauth_consumer_key=MYCONSUMERKEY,
oauth_signature=l4L1%2Fn7w3P7U0lcxvkTizusF2TY%3D,
oauth_version=1.0

curl_slist* responseHeaders = NULL ;
responseHeaders = curl_slist_append( responseHeaders ,
header.c_str() ) ;
curl_easy_setopt( curl , CURLOPT_HTTPHEADER , responseHeaders ) ;

string res;
curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, write_callback );
curl_easy_setopt( curl, CURLOPT_WRITEDATA, res );

curl_easy_setopt(curl, CURLOPT_HEADER, true);

curl_easy_setopt( curl, CURLOPT_SSL_VERIFYPEER, false);

CURLcode rc = curl_easy_perform(curl);


If you find some mistakes, please tell me. 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-dev] Re: not authorized over and over again

2010-10-01 Thread Thai Pangsakulyanont
Everything looks normal to me, so I have no idea why it didn't work.

When it said Unauthorized, did the API say anything else about it?
Like incorrect signature, or something like that.

On Oct 1, 5:05 pm, eMailaya a...@emailaya.com wrote:
 * please read my comments inside the 
 * i store the token and token secret and i checked and they are the
 same

 here is what i do step by step until it doesnt work. first i ask for
 authorization and get it with a PIN. then the user enters the PIN and
 gets the information.
 first i call for the user's statuses and this 
 works:http://twitter.com/statuses/user_timeline/user.xml?oauth_consumer_key=consumer
 keyoauth_nonce=F89B4E724909C57D71193B24D075B88Foauth_signature_method=HMAC-
 SHA1oauth_signature=oauth sig, changes every
 calloauth_timestamp=1285925817oauth_token=oauth token, same as in
 the next call, different than the other 2 callsoauth_version=1.0

 then i ask for the followees statuses and that is working 
 too:http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consu...consumer
 keyoauth_nonce=8C822206BE598A78CF97E942CB8A24E5oauth_signature_method=HMAC-
 SHA1oauth_signature=oauth sig, changes every
 calloauth_timestamp=1285925833oauth_token=same as previous call,
 different than the next 2 callsoauth_version=1.0

 then i simply press the button again to make the same 2 calls once
 again, first i ask for the user statuses and this 
 works:http://twitter.com/statuses/user_timeline/emailaya.xml?oauth_consumer...consumer
 keyoauth_nonce=F7414A51B2D59AF04E13D7D2A58821DAoauth_signature_method=HMAC-
 SHA1oauth_signature=oauth sig, changes every
 calloauth_timestamp=1285925869oauth_token=oauth token, different
 than the ones from above, same as in the next calloauth_version=1.0

 then i ask for the followees statuses but this time, it doesnt work
 with the not authorized 
 error:http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consu...consumer
 keyoauth_nonce=3AC90E2A7C528953FC32A1B909D54B53oauth_signature_method=HMAC-
 SHA1oauth_signature=oauth sig, changes every
 calloauth_timestamp=1285925897oauth_token=same as in the above
 calloauth_version=1.0

 what am i missing?
 the weird thing is that the user statuses do work but the right after
 that i call the followees statuses and that doesnt work, though just 2
 seconds ago, in the previous 2 calls, right after the authorization,
 it did work with no problem.

 to update a status, right after the authorization from the user, i
 call to this url:http://twitter.com/statuses/update.xmlbut again, i
 get unauthorized. i never succeeded to update a status for that
 reason. here there is no complex url that contains parameters
 what am i missing?

 On Oct 1, 7:09 am, Thai Pangsakulyanont org.yi.dt...@gmail.com
 wrote:







  You have to make sure that `Twitterh.OAuth_token` and
  `Twitterh.OAuth_token_secret` stays same before and after restarting
  the application. Also, make sure that `oauth_timestamp` is up to date
  and `oauth_nonce` is unique each time you make a request.

  On Oct 1, 6:05 am, eMailaya a...@emailaya.com wrote:

   i could really use some help here
   thanks

   On Sep 29, 7:05 pm, eMailaya a...@emailaya.com wrote:

any kind of help here will be appreciated
thanks

On Sep 28, 8:06 pm, eMailaya a...@emailaya.com wrote:

 im doing the following:

     Twitterh.Key := consumer key - hard coded
     Twitterh.Secret := consumer secret - hard coded
     Twitterh.OAuth_token :=
 SettingsFile.ReadString('TWITTER','TOKEN',''); //saved from when i got
 the authorization from the user
     Twitterh.OAuth_token_secret :=
 SettingsFile.ReadString('TWITTER','TOKENSECRET',''); //saved from when
 i got the authorization from the user

 after getting the authorization from the user i can do both getting
 the statuses of the user and the followees but NOT updating the
 status.
 after restart of the application, at first try i do succeed to
 receive the user's statuses but not his followees' , on second try
 (without restart), i can do nothing and all for the same reason: not
 authorized

 not sure i understood the other reply of re-hashing, hashing of what
 exactly? the only place i do some processing is when i ask for
 authorization from the user. i want it so once i have it, to not need
 to re-ask it over and over again

 what am i missing?
 thanks

 On Sep 28, 10:52 am, Tom van der Woerdt i...@tvdw.eu wrote:

  If you save those four keys, you should have everything you need to
  restore the session.

  If this does not work for you, make sure that you save the keys
  properly. For example, you don't want to confuse oauth_token with
  oauth_consumer_key.

  Tom

  On 9/28/10 12:39 AM, eMailaya wrote:

   Im developing a desktop application. firstly, the user needs to
   approve my app to let it access his account, enter the PIN code 
   and
  

[twitter-dev] Re: Looking for Java class/package for Firehose

2010-10-01 Thread D. Smith
perl has the same limitation as php, I decided to use Java for
streaming API because of support for threads.

On Sep 30, 12:54 pm, M. Edward (Ed) Borasky zn...@borasky-
research.net wrote:
 I've used the Perl AnyEvent::Twitter::Stream CPAN module and the Ruby  
 tweetstream gem. Both of them work just fine, although I think the  
 error handling in the Perl one may have a glitch. The Perl one is  
 lighter on both CPU and RAM use, but that's the nature of Perl vs.  
 Ruby, not something in the library codes themselves.

 I don't know if either of them has been updated to work with the  
 official User Streams endpoint yet - last time I looked at User  
 Streams, I used cURL from the command line.

 I'll probably get back to my User Streams project next week - I've  
 been pushing to get my appliances in shape for the SUSE Disters  
 contest entry deadline, which is tomorrow. ;-)

 And yes, I'd still like the option to get spritzer data in User  
 Streams without having to open another connection. But I'm probably  
 the only one. ;-)
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul Erdos

 Quoting Taylor Singletary taylorsinglet...@twitter.com:



  While it's in Scala, not Java, I've heard good things about
  @alejandrocrosa's Scala-TwitterStreamer :
 http://github.com/acrosa/Scala-TwitterStreamer-- you should be able
  to make use of it fairly easily in a Java environment.

  We'd love to start collecting libraries built around the Streaming API.

  Regardless of language, does anyone have libraries to share with everyone?

  Taylor

  On Thu, Sep 30, 2010 at 8:25 AM, D. Smith emai...@sharedlog.com wrote:
  Hello there!
  I am pretty experienced with using PHP for Twitter, but now I want to
  use firehose and Java seems to be a much better fit because of
  'Threads', so I can listen to Firehose the pass a job to a thread and
  return right away. PHP cannot do that, well, maybe to some crazy hacks
  that I am not too impressed with.

  Anyway, can someone recommend a good Java client that does that,
  ideally where I can just extend the class to write my own runnable
  classes.

  thanks a lot.

  --
  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] Failed to validate oauth signature and token in xauth

2010-10-01 Thread Tom van der Woerdt
Using the Base String validator at http://quonos.nl/oauthTester/, I
got this :

Bad URL encoding!
Both key and value in the POST body need to be URL encoded.
In this case: xoan...@seed9.com is bad

Tom


On 10/1/10 11:34 AM, Hyeonjong Ryu wrote:
 Yes, I know there're already plenty of questions with this same topic,
 but I cannot really find out the one suite for me.
 I use C++ and libcurl to make a HTTP POST request, and here are some
 ingredients that I used for POST requests.
 
 Signature base string
 POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
 %2Faccess_tokenoauth_consumer_key%3DMYCONSUMERKEY%26oauth_nonce
 %3DXZZJd88qUu25L8wpylQ6%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1285924211%26oauth_version%3D1.0%26x_auth_mode
 %3Dclient_auth%26x_auth_password%3DMYPASSWORD%26x_auth_username
 %3Dxoancer%40seed9.com
 
 POST Body
 x_auth_username=xoancer
 %40seed9.comx_auth_password=MYPASSWORDx_auth_mode=client_auth
 
 HTTP Header
 Authorization: OAuth oauth_nonce=XZZJd88qUu25L8wpylQ6,
 oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285924211,
 oauth_consumer_key=MYCONSUMERKEY,
 oauth_signature=l4L1%2Fn7w3P7U0lcxvkTizusF2TY%3D,
 oauth_version=1.0
 
 I believe signature generating is not the problem since my program
 makes the proper one when it runs with the example at
 http://dev.twitter.com/pages/xauth. But without the signature
 parameter, I cannot found out what's wrong since every other
 parameters are just a given constants(except nonce, but he doesn't
 really matter I think.).
 Maybe I missed something in using libcurl, since it's first time for
 me to use this library, especially in setting HTTP Header. Follows are
 my source codes for libcurl parts.
 
   curl_global_init(CURL_GLOBAL_ALL);
 
   CURL *curl;
   curl = curl_easy_init();
 
   curl_easy_reset(curl);
   curl_easy_setopt(curl, CURLOPT_URL, baseUrl.c_str());
 // baseUrl == https://api.twitter.com/oauth/access_token
 
   curl_easy_setopt(curl, CURLOPT_POST, true);
 
   string postbody;
   for(int i=7;i=5;i--) postbody +=  + params[i].first + = +
 urlenc(params[i].second);
   postbody = postbody.substr(1);
 // postbody == x_auth_username=xoancer
 %40seed9.comx_auth_password=MYPASSWORDx_auth_mode=client_auth
 
   curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postbody.c_str());
 
   string header = Authorization: OAuth  + params[1].first + =\ +
 params[1].second + \,  + params[2].first + =\ + params[2].second
 + \,  + params[3].first + =\ +
   params[3].second + \,  + params[0].first + =\ +
 params[0].second + \, oauth_signature=\;
 
   header += urlenc(base64encoded);
   header += \, oauth_version=\1.0\;
 // header == Authorization: OAuth oauth_nonce=XZZJd88qUu25L8wpylQ6,
 oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285924211,
 oauth_consumer_key=MYCONSUMERKEY,
 oauth_signature=l4L1%2Fn7w3P7U0lcxvkTizusF2TY%3D,
 oauth_version=1.0
 
   curl_slist* responseHeaders = NULL ;
 responseHeaders = curl_slist_append( responseHeaders ,
 header.c_str() ) ;
 curl_easy_setopt( curl , CURLOPT_HTTPHEADER , responseHeaders ) ;
 
   string res;
   curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, write_callback );
 curl_easy_setopt( curl, CURLOPT_WRITEDATA, res );
 
   curl_easy_setopt(curl, CURLOPT_HEADER, true);
 
   curl_easy_setopt( curl, CURLOPT_SSL_VERIFYPEER, false);
 
   CURLcode rc = curl_easy_perform(curl);
 
 
 If you find some mistakes, please tell me. 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-dev] Re: not authorized over and over again

2010-10-01 Thread eMailaya
the error is:
http/1.1 401 unauthorized

trying again (3rd time) to call the 2 calls again i succeed with
getting the user's statuses but not his followees
the fact that the oauth_token=X was different between the 2 first and
last calls, is it ok?
(each button press makes 2 calls sequentially, one for the user's
statuses and the other for the followees, also i tried to wait 5
seconds between the calls but it didnt help)

thanks!


On Oct 1, 12:56 pm, Thai Pangsakulyanont org.yi.dt...@gmail.com
wrote:
 Everything looks normal to me, so I have no idea why it didn't work.

 When it said Unauthorized, did the API say anything else about it?
 Like incorrect signature, or something like that.

 On Oct 1, 5:05 pm, eMailaya a...@emailaya.com wrote:

  * please read my comments inside the 
  * i store the token and token secret and i checked and they are the
  same

  here is what i do step by step until it doesnt work. first i ask for
  authorization and get it with a PIN. then the user enters the PIN and
  gets the information.
  first i call for the user's statuses and this 
  works:http://twitter.com/statuses/user_timeline/user.xml?oauth_consumer_key=consumer
  keyoauth_nonce=F89B4E724909C57D71193B24D075B88Foauth_signature_method=HMAC-
  SHA1oauth_signature=oauth sig, changes every
  calloauth_timestamp=1285925817oauth_token=oauth token, same as in
  the next call, different than the other 2 callsoauth_version=1.0

  then i ask for the followees statuses and that is working 
  too:http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consu...consumer
  keyoauth_nonce=8C822206BE598A78CF97E942CB8A24E5oauth_signature_method=HMAC-
  SHA1oauth_signature=oauth sig, changes every
  calloauth_timestamp=1285925833oauth_token=same as previous call,
  different than the next 2 callsoauth_version=1.0

  then i simply press the button again to make the same 2 calls once
  again, first i ask for the user statuses and this 
  works:http://twitter.com/statuses/user_timeline/emailaya.xml?oauth_consumer...consumer
  keyoauth_nonce=F7414A51B2D59AF04E13D7D2A58821DAoauth_signature_method=HMAC-
  SHA1oauth_signature=oauth sig, changes every
  calloauth_timestamp=1285925869oauth_token=oauth token, different
  than the ones from above, same as in the next calloauth_version=1.0

  then i ask for the followees statuses but this time, it doesnt work
  with the not authorized 
  error:http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consu...consumer
  keyoauth_nonce=3AC90E2A7C528953FC32A1B909D54B53oauth_signature_method=HMAC-
  SHA1oauth_signature=oauth sig, changes every
  calloauth_timestamp=1285925897oauth_token=same as in the above
  calloauth_version=1.0

  what am i missing?
  the weird thing is that the user statuses do work but the right after
  that i call the followees statuses and that doesnt work, though just 2
  seconds ago, in the previous 2 calls, right after the authorization,
  it did work with no problem.

  to update a status, right after the authorization from the user, i
  call to this url:http://twitter.com/statuses/update.xmlbutagain, i
  get unauthorized. i never succeeded to update a status for that
  reason. here there is no complex url that contains parameters
  what am i missing?

  On Oct 1, 7:09 am, Thai Pangsakulyanont org.yi.dt...@gmail.com
  wrote:

   You have to make sure that `Twitterh.OAuth_token` and
   `Twitterh.OAuth_token_secret` stays same before and after restarting
   the application. Also, make sure that `oauth_timestamp` is up to date
   and `oauth_nonce` is unique each time you make a request.

   On Oct 1, 6:05 am, eMailaya a...@emailaya.com wrote:

i could really use some help here
thanks

On Sep 29, 7:05 pm, eMailaya a...@emailaya.com wrote:

 any kind of help here will be appreciated
 thanks

 On Sep 28, 8:06 pm, eMailaya a...@emailaya.com wrote:

  im doing the following:

      Twitterh.Key := consumer key - hard coded
      Twitterh.Secret := consumer secret - hard coded
      Twitterh.OAuth_token :=
  SettingsFile.ReadString('TWITTER','TOKEN',''); //saved from when i 
  got
  the authorization from the user
      Twitterh.OAuth_token_secret :=
  SettingsFile.ReadString('TWITTER','TOKENSECRET',''); //saved from 
  when
  i got the authorization from the user

  after getting the authorization from the user i can do both getting
  the statuses of the user and the followees but NOT updating the
  status.
  after restart of the application, at first try i do succeed to
  receive the user's statuses but not his followees' , on second try
  (without restart), i can do nothing and all for the same reason: not
  authorized

  not sure i understood the other reply of re-hashing, hashing of what
  exactly? the only place i do some processing is when i ask for
  authorization from the user. i want it so once i have it, to not 
  need
  to re-ask it over and 

[twitter-dev] Re: List of @usernames

2010-10-01 Thread nischalshetty
 a) I would still need to use a large number of api calls just to build
 the initial list

Yeah, you have no choice. Even Twitter just fetches from the recent
500 followers only for autocompleting usernames. You can build your
list slowly as background tasks once the user has authenticated you so
that the next time the user comes to your site, all the usernames
would be available.

 b) it requires new followers to appear on the first api call. Whilst
 this happens at the moment, it might not in the future.

Where did you get the info from regarding it might not happen in the
future? As far as I know, their persistence is such that new ids are
returned first, so you don't have to worry about this for a long time.

 c) the api won't tell me people you have recently unfollowed
Yeah, it won't. You can get the delta by retrieving all the friends
and followers.

 d) I'd need to check for updates on a server side for each user on a
 frequent basis

Not really frequent, most of your users won't really be gaining any
significant number of followers in a single day. You can run the
updates whenever they login. Instead of running a background job (if
it doesn't seem feasible for many users), you can just run the updates
whenever they login.

-Nischal



On Oct 1, 3:34 pm, artesea ryancul...@gmail.com wrote:
 The problem with that method is that
 a) I would still need to use a large number of api calls just to build
 the initial list
 b) it requires new followers to appear on the first api call. Whilst
 this happens at the moment, it might not in the future.
 c) the api won't tell me people you have recently unfollowed
 d) I'd need to check for updates on a server side for each user on a
 frequent basis

 if it was just for me, I'd be happy with this method (check once a
 day, not many changes). but for 000s of users it gets time consuming.

 On Sep 30, 1:24 pm, nischalshetty nischalshett...@gmail.com wrote:

  There's no way right now to get usernames in bulk. Get the ids, then
  query and get the complete info 100 at a time. You can build this for
  your users over time.

  Once list of friends for a user has been retrieved, the next time a
  user comes, you can just get the latest set of friends and add them to
  the existing records.

  -Nischal

  On Sep 30, 4:01 pm, artesea ryancul...@gmail.com wrote:

   I was hoping on adding some ajax code to my web app to allow auto-
   completing of @usernames as you start typing
   eg:
   [...@jon]
   �...@jonathan
   �...@jon_smith
   �...@jonny
   I suspect I'll need to cache the names on my server, but was wondering
   if there was a quick API call to get just the usernames of the people
   you follow.

   statuses/friends gets me the username, but I also end up with more
   data than I need (bandwidth), and have to navigate in blocks of 100s
   (time).
   friends/ids looks perfect, limited info, brings back 5000 in one go,
   however I only get the ids.

   Is there a (hidden) option to get usernames instead of ids with
   friends/ ?

   Else if I have a user who is following 3000 people I will need to
   cursor through the api 30 times, just to build a cache file, by the
   time that is complete I'm sure the user will have completed the name.

-- 
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: not authorized over and over again

2010-10-01 Thread Taylor Singletary
One issue with your implementation is that you are not using Twitter API
URLs.

Twitter API URLs have api.twitter.com as the domain and /1/ as the version
before any resource.

http://api.twitter.com/1/statuses/home_timeline.xml
http://api.twitter.com/1/statuses/update.xml

If you don't use those style URLs, you are going to run into many issues.

Next: using OAuth on the query string leads to more problems than it is
worth. If you use HTTP headers instead, you separate concerns between the
resource you're trying to access and the credentials you're using to access
them. It makes it much easier for others to assist you as well.

Your oauth_token value should only be changing between requests if you're
representing a different user. If it's changing and you don't know why, it's
time to get intimate with your code path  your library's code path.

Finally, are you sure that your application is setup as a read/write
application? If it's set as a read-only app, and you want to POST a status
update, you'll need to change it to a r/w application, expire the access
token manually at http://twitter.com/settings/connections and then re-issue
the access token.

Taylor

On Fri, Oct 1, 2010 at 7:51 AM, eMailaya a...@emailaya.com wrote:

 the error is:
 http/1.1 401 unauthorized

 trying again (3rd time) to call the 2 calls again i succeed with
 getting the user's statuses but not his followees
 the fact that the oauth_token=X was different between the 2 first and
 last calls, is it ok?
 (each button press makes 2 calls sequentially, one for the user's
 statuses and the other for the followees, also i tried to wait 5
 seconds between the calls but it didnt help)

 thanks!


 On Oct 1, 12:56 pm, Thai Pangsakulyanont org.yi.dt...@gmail.com
 wrote:
  Everything looks normal to me, so I have no idea why it didn't work.
 
  When it said Unauthorized, did the API say anything else about it?
  Like incorrect signature, or something like that.
 
  On Oct 1, 5:05 pm, eMailaya a...@emailaya.com wrote:
 
   * please read my comments inside the 
   * i store the token and token secret and i checked and they are the
   same
 
   here is what i do step by step until it doesnt work. first i ask for
   authorization and get it with a PIN. then the user enters the PIN and
   gets the information.
   first i call for the user's statuses and this works:
 http://twitter.com/statuses/user_timeline/
 user.xml?oauth_consumer_key=consumer
  
 keyoauth_nonce=F89B4E724909C57D71193B24D075B88Foauth_signature_method=HMAC-
   SHA1oauth_signature=oauth sig, changes every
   calloauth_timestamp=1285925817oauth_token=oauth token, same as in
   the next call, different than the other 2 callsoauth_version=1.0
 
   then i ask for the followees statuses and that is working too:
 http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consu..
 .consumer
  
 keyoauth_nonce=8C822206BE598A78CF97E942CB8A24E5oauth_signature_method=HMAC-
   SHA1oauth_signature=oauth sig, changes every
   calloauth_timestamp=1285925833oauth_token=same as previous call,
   different than the next 2 callsoauth_version=1.0
 
   then i simply press the button again to make the same 2 calls once
   again, first i ask for the user statuses and this works:
 http://twitter.com/statuses/user_timeline/emailaya.xml?oauth_consumer..
 .consumer
  
 keyoauth_nonce=F7414A51B2D59AF04E13D7D2A58821DAoauth_signature_method=HMAC-
   SHA1oauth_signature=oauth sig, changes every
   calloauth_timestamp=1285925869oauth_token=oauth token, different
   than the ones from above, same as in the next calloauth_version=1.0
 
   then i ask for the followees statuses but this time, it doesnt work
   with the not authorized error:
 http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consu..
 .consumer
  
 keyoauth_nonce=3AC90E2A7C528953FC32A1B909D54B53oauth_signature_method=HMAC-
   SHA1oauth_signature=oauth sig, changes every
   calloauth_timestamp=1285925897oauth_token=same as in the above
   calloauth_version=1.0
 
   what am i missing?
   the weird thing is that the user statuses do work but the right after
   that i call the followees statuses and that doesnt work, though just 2
   seconds ago, in the previous 2 calls, right after the authorization,
   it did work with no problem.
 
   to update a status, right after the authorization from the user, i
   call to this url:http://twitter.com/statuses/update.xmlbutagain, i
   get unauthorized. i never succeeded to update a status for that
   reason. here there is no complex url that contains parameters
   what am i missing?
 
   On Oct 1, 7:09 am, Thai Pangsakulyanont org.yi.dt...@gmail.com
   wrote:
 
You have to make sure that `Twitterh.OAuth_token` and
`Twitterh.OAuth_token_secret` stays same before and after restarting
the application. Also, make sure that `oauth_timestamp` is up to date
and `oauth_nonce` is unique each time you make a request.
 
On Oct 1, 6:05 am, eMailaya a...@emailaya.com wrote:
 
 i could 

[twitter-dev] Re: Bypass the OAuth callback and be authorized transparently?

2010-10-01 Thread alto
Excellent! Just tried it and it works. It takes some changes in the
app code of course, but more importantly it satisfies a business
requirement. Thank you Taylor.

BTW, I was wondering if one should expect support for this single user
scenario from other social media APIs, e.g. Facebook or LinkedIn?
Considering they are all OAuth based...

alto

On Sep 29, 10:20 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi TIA,

 For these kind of single-user scenarios we support a feature called
 My Access Token -- just go to your application's details page on
 dev.twitter.com/apps and click the My Token link in the right-hand
 sidebar. This will return your oauth_token and oauth_token_secret
 (collectively your access token) which you can then hard-code into
 the single-user software you're developing. More details 
 here:http://bit.ly/1token

 Taylor

 On Wed, Sep 29, 2010 at 6:46 AM, alto alexander.todo...@cactus.ca wrote:
  Hi,

  I created my first Twitter enabled ASP.NET app yesterday. I wanted
  simply to test a OAuth sample and post a tweet to myself.

  As a next step, I want toautomatesuch posts in C# network
  programming, i.e. using HTTP web requests outside a web page or a web
  service.

  The scenario: every day my C# component receives some content from the
  back-end and sends it to me as tweets. This has to be automated via
  API calls, meaning no UI and no user interaction to authorize the
  post.

  Is there a way to bypass the OAuth callback and be authorized
  transparently (I'm posting to my Twitter only)? My application will
  have no front-end, hence no specific URL to return me the access
  token. Can I get the token in the first HTTP web response - after I
  send the first web request with consumer key and secret?

  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] List of new users registering on twitter datawise

2010-10-01 Thread Taylor Singletary
Hi there,

We don't provide any kind of feed/API for polling new signups.

Generally, with any service that has a large user base, the motives of an
organization or developer that wants the database of users from insert
service name here will be suspect.

What's the use case that you'd want/employ this information?

We provide some categorical data of Twitter users available through GET
users/suggestions ( http://dev.twitter.com/doc/get/users/suggestions ) and
its companion resources.

Taylor

On Fri, Oct 1, 2010 at 5:07 AM, rajiv74 kalyanra...@gmail.com wrote:

 Hi,

  Can I get the list of users registering on twitter on daily
 basis or date wise using twitter api? Can I also get the list of
 twitter users category wise? Please help as I need to implement this
 in one of my site. If there is no way, can you help me to suggest
 alternate way to get the database of users from twitter?

 Thanks,

 Rajiv

 --
 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: Looking for Java class/package for Firehose

2010-10-01 Thread M. Edward (Ed) Borasky

Yeah, the Perl library uses AnyEvent to achieve threading.
--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

A mathematician is a device for turning coffee into theorems. - Paul Erdos


Quoting D. Smith emai...@sharedlog.com:


perl has the same limitation as php, I decided to use Java for
streaming API because of support for threads.

On Sep 30, 12:54 pm, M. Edward (Ed) Borasky zn...@borasky-
research.net wrote:

I've used the Perl AnyEvent::Twitter::Stream CPAN module and the Ruby  
tweetstream gem. Both of them work just fine, although I think the  
error handling in the Perl one may have a glitch. The Perl one is  
lighter on both CPU and RAM use, but that's the nature of Perl vs.  
Ruby, not something in the library codes themselves.

I don't know if either of them has been updated to work with the  
official User Streams endpoint yet - last time I looked at User  
Streams, I used cURL from the command line.

I'll probably get back to my User Streams project next week - I've  
been pushing to get my appliances in shape for the SUSE Disters  
contest entry deadline, which is tomorrow. ;-)

And yes, I'd still like the option to get spritzer data in User  
Streams without having to open another connection. But I'm probably  
the only one. ;-)
--
M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

A mathematician is a device for turning coffee into theorems. - Paul Erdos

Quoting Taylor Singletary taylorsinglet...@twitter.com:



 While it's in Scala, not Java, I've heard good things about
 @alejandrocrosa's Scala-TwitterStreamer :
http://github.com/acrosa/Scala-TwitterStreamer-- you should be able
 to make use of it fairly easily in a Java environment.

 We'd love to start collecting libraries built around the Streaming API.

 Regardless of language, does anyone have libraries to share with everyone?

 Taylor

 On Thu, Sep 30, 2010 at 8:25 AM, D. Smith emai...@sharedlog.com wrote:
 Hello there!
 I am pretty experienced with using PHP for Twitter, but now I want to
 use firehose and Java seems to be a much better fit because of
 'Threads', so I can listen to Firehose the pass a job to a thread and
 return right away. PHP cannot do that, well, maybe to some crazy hacks
 that I am not too impressed with.

 Anyway, can someone recommend a good Java client that does that,
 ideally where I can just extend the class to write my own runnable
 classes.

 thanks a lot.

 --
 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] List of new users registering on twitter datawise

2010-10-01 Thread Rajiv Kaushal
Hi Taylor,

Thanks for clarification. Actually, my thought was to create new page for
every user on website signing up on twitter where one can update his other
information later.

  Next, Can I get list of users for particular
category/suggestion[e.g Business, Family, Fashion] not with respect to
particular user? If yes, how and what is the limit for that api on the
number of users?

Thanks and Regards,

Rajiv

On Fri, Oct 1, 2010 at 9:50 PM, Taylor Singletary 
taylorsinglet...@twitter.com wrote:

 Hi there,

 We don't provide any kind of feed/API for polling new signups.

 Generally, with any service that has a large user base, the motives of an
 organization or developer that wants the database of users from insert
 service name here will be suspect.

 What's the use case that you'd want/employ this information?

 We provide some categorical data of Twitter users available through GET
 users/suggestions ( http://dev.twitter.com/doc/get/users/suggestions ) and
 its companion resources.

 Taylor

 On Fri, Oct 1, 2010 at 5:07 AM, rajiv74 kalyanra...@gmail.com wrote:

 Hi,

  Can I get the list of users registering on twitter on daily
 basis or date wise using twitter api? Can I also get the list of
 twitter users category wise? Please help as I need to implement this
 in one of my site. If there is no way, can you help me to suggest
 alternate way to get the database of users from twitter?

 Thanks,

 Rajiv

 --
 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




-- 

Rajiv Kaushal
Software Engineer

-- 
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: Site Streams - Unfollow Events?

2010-10-01 Thread Justin
It sounds like it's the same (NO) for both:

Friendship Events
Created - To you, from you
Deleted - From you

So, unfollow events from you not to you as the target. There doesn't
seem to be any way to tell when someone stops following other than
using the rest API to check followers and compare it to the list of
following.

Same with blocks:

Created - From you (source)
Deleted - From you (source)


On Sep 30, 12:05 pm, M. Edward (Ed) Borasky zn...@borasky-
research.net wrote:
 Site Streams only or User Streams? I'm developing around User Streams.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul Erdos

 Quoting tsmango tsma...@gmail.com:







  Hi, Ed. Block and unblock events are already being delivered in the
  Site Stream. Very useful!

  On Sep 30, 12:30 pm, M. Edward (Ed) Borasky zn...@borasky-
  research.net wrote:
  As long as we're wishing, I'd like to get a notification when someone  
  blocks me. ;-)
  --
  M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

  A mathematician is a device for turning coffee into theorems. - Paul 
  Erdos

  -
  Thomas Mango
  @tsmango

  --
  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: Site Streams - Unfollow Events?

2010-10-01 Thread Tom van der Woerdt
Correct.

I'd like to add an additional question to this thread: what about list
events? The docs say that they get sent, but they don't.

http://dev.twitter.com/pages/user_streams

Tom


On 10/1/10 7:46 PM, Justin wrote:
 It sounds like it's the same (NO) for both:
 
 Friendship Events
 Created - To you, from you
 Deleted - From you
 
 So, unfollow events from you not to you as the target. There doesn't
 seem to be any way to tell when someone stops following other than
 using the rest API to check followers and compare it to the list of
 following.
 
 Same with blocks:
 
 Created - From you (source)
 Deleted - From you (source)
 
 
 On Sep 30, 12:05 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 Site Streams only or User Streams? I'm developing around User Streams.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul Erdos

 Quoting tsmango tsma...@gmail.com:







 Hi, Ed. Block and unblock events are already being delivered in the
 Site Stream. Very useful!

 On Sep 30, 12:30 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 As long as we're wishing, I'd like to get a notification when someone  
 blocks me. ;-)
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul 
 Erdos

 -
 Thomas Mango
 @tsmango

 --
 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: not authorized over and over again

2010-10-01 Thread eMailaya
thank you for your reply

1. my app is in read/write mode - i just double checked it - and
updating a new twit fails for 401 unauthorized

2. i changed the url according to what you wrote:
http://api.twitter.com/1/statuses/user_timeline/...  and
http://twitter.com/statuses/friends_timeline.xml and again,
retrieving the user statuses works ok while retrieving the followees
fails for 401 unauthorized. if i ask for a user authorization (pin)
again, both works fine once and again the loop of self statuses works
while followees doesnt

3. regarding the headers: i admit that im not sure i understood what
do you mean and how will it make it easier for other people to help
me. can you please elaborate?

4. the first 2 calls and the other 2 calls have the same oauth_token.
while the 2 first calls work, the other 2 calls don't or more
accurately, the first call (my statuses) works and the other one
doesnt, that what kills me in all this, if none worked i would think
that something is wrong with my processing, but the first call does
work the only problem is with getting the followees statuses (and
updating a twit but maybe it's a different problem)



On Oct 1, 5:14 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 One issue with your implementation is that you are not using Twitter API
 URLs.

 Twitter API URLs have api.twitter.com as the domain and /1/ as the version
 before any resource.

 http://api.twitter.com/1/statuses/home_timeline.xmlhttp://api.twitter.com/1/statuses/update.xml

 If you don't use those style URLs, you are going to run into many issues.

 Next: using OAuth on the query string leads to more problems than it is
 worth. If you use HTTP headers instead, you separate concerns between the
 resource you're trying to access and the credentials you're using to access
 them. It makes it much easier for others to assist you as well.

 Your oauth_token value should only be changing between requests if you're
 representing a different user. If it's changing and you don't know why, it's
 time to get intimate with your code path  your library's code path.

 Finally, are you sure that your application is setup as a read/write
 application? If it's set as a read-only app, and you want to POST a status
 update, you'll need to change it to a r/w application, expire the access
 token manually athttp://twitter.com/settings/connectionsand then re-issue
 the access token.

 Taylor

 On Fri, Oct 1, 2010 at 7:51 AM, eMailaya a...@emailaya.com wrote:
  the error is:
  http/1.1 401 unauthorized

  trying again (3rd time) to call the 2 calls again i succeed with
  getting the user's statuses but not his followees
  the fact that the oauth_token=X was different between the 2 first and
  last calls, is it ok?
  (each button press makes 2 calls sequentially, one for the user's
  statuses and the other for the followees, also i tried to wait 5
  seconds between the calls but it didnt help)

  thanks!

  On Oct 1, 12:56 pm, Thai Pangsakulyanont org.yi.dt...@gmail.com
  wrote:
   Everything looks normal to me, so I have no idea why it didn't work.

   When it said Unauthorized, did the API say anything else about it?
   Like incorrect signature, or something like that.

   On Oct 1, 5:05 pm, eMailaya a...@emailaya.com wrote:

* please read my comments inside the 
* i store the token and token secret and i checked and they are the
same

here is what i do step by step until it doesnt work. first i ask for
authorization and get it with a PIN. then the user enters the PIN and
gets the information.
first i call for the user's statuses and this works:
 http://twitter.com/statuses/user_timeline/
  user.xml?oauth_consumer_key=consumer

  keyoauth_nonce=F89B4E724909C57D71193B24D075B88Foauth_signature_method=HMAC-
SHA1oauth_signature=oauth sig, changes every
calloauth_timestamp=1285925817oauth_token=oauth token, same as in
the next call, different than the other 2 callsoauth_version=1.0

then i ask for the followees statuses and that is working too:
 http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consu..
  .consumer

  keyoauth_nonce=8C822206BE598A78CF97E942CB8A24E5oauth_signature_method=HMAC-
SHA1oauth_signature=oauth sig, changes every
calloauth_timestamp=1285925833oauth_token=same as previous call,
different than the next 2 callsoauth_version=1.0

then i simply press the button again to make the same 2 calls once
again, first i ask for the user statuses and this works:
 http://twitter.com/statuses/user_timeline/emailaya.xml?oauth_consumer..
  .consumer

  keyoauth_nonce=F7414A51B2D59AF04E13D7D2A58821DAoauth_signature_method=HMAC-
SHA1oauth_signature=oauth sig, changes every
calloauth_timestamp=1285925869oauth_token=oauth token, different
than the ones from above, same as in the next calloauth_version=1.0

then i ask for the followees statuses but this time, it doesnt work
with the not authorized error:
 

[twitter-dev] Re: not authorized over and over again

2010-10-01 Thread eMailaya
partial success!!!
i managed to receive both the user's statuses and the followees
statuses' ! the problem was that i was storing the wrong oauth_key,
why did i manage to retrieve the user's statuses? i dont know but now
it's ok.

so why partial? because updating the status still gives me
unauthorized error but i  will check it and get back if i need help
about it
till now, thank you very much for your help and guiding lines!


On Oct 1, 8:31 pm, eMailaya a...@emailaya.com wrote:
 thank you for your reply

 1. my app is in read/write mode - i just double checked it - and
 updating a new twit fails for 401 unauthorized

 2. i changed the url according to what you 
 wrote:http://api.twitter.com/1/statuses/user_timeline/...  
 andhttp://twitter.com/statuses/friends_timeline.xml and again,
 retrieving the user statuses works ok while retrieving the followees
 fails for 401 unauthorized. if i ask for a user authorization (pin)
 again, both works fine once and again the loop of self statuses works
 while followees doesnt

 3. regarding the headers: i admit that im not sure i understood what
 do you mean and how will it make it easier for other people to help
 me. can you please elaborate?

 4. the first 2 calls and the other 2 calls have the same oauth_token.
 while the 2 first calls work, the other 2 calls don't or more
 accurately, the first call (my statuses) works and the other one
 doesnt, that what kills me in all this, if none worked i would think
 that something is wrong with my processing, but the first call does
 work the only problem is with getting the followees statuses (and
 updating a twit but maybe it's a different problem)

 On Oct 1, 5:14 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:

  One issue with your implementation is that you are not using Twitter API
  URLs.

  Twitter API URLs have api.twitter.com as the domain and /1/ as the version
  before any resource.

 http://api.twitter.com/1/statuses/home_timeline.xmlhttp://api.twitter...

  If you don't use those style URLs, you are going to run into many issues.

  Next: using OAuth on the query string leads to more problems than it is
  worth. If you use HTTP headers instead, you separate concerns between the
  resource you're trying to access and the credentials you're using to access
  them. It makes it much easier for others to assist you as well.

  Your oauth_token value should only be changing between requests if you're
  representing a different user. If it's changing and you don't know why, it's
  time to get intimate with your code path  your library's code path.

  Finally, are you sure that your application is setup as a read/write
  application? If it's set as a read-only app, and you want to POST a status
  update, you'll need to change it to a r/w application, expire the access
  token manually athttp://twitter.com/settings/connectionsandthen re-issue
  the access token.

  Taylor

  On Fri, Oct 1, 2010 at 7:51 AM, eMailaya a...@emailaya.com wrote:
   the error is:
   http/1.1 401 unauthorized

   trying again (3rd time) to call the 2 calls again i succeed with
   getting the user's statuses but not his followees
   the fact that the oauth_token=X was different between the 2 first and
   last calls, is it ok?
   (each button press makes 2 calls sequentially, one for the user's
   statuses and the other for the followees, also i tried to wait 5
   seconds between the calls but it didnt help)

   thanks!

   On Oct 1, 12:56 pm, Thai Pangsakulyanont org.yi.dt...@gmail.com
   wrote:
Everything looks normal to me, so I have no idea why it didn't work.

When it said Unauthorized, did the API say anything else about it?
Like incorrect signature, or something like that.

On Oct 1, 5:05 pm, eMailaya a...@emailaya.com wrote:

 * please read my comments inside the 
 * i store the token and token secret and i checked and they are the
 same

 here is what i do step by step until it doesnt work. first i ask for
 authorization and get it with a PIN. then the user enters the PIN and
 gets the information.
 first i call for the user's statuses and this works:
  http://twitter.com/statuses/user_timeline/
   user.xml?oauth_consumer_key=consumer

   keyoauth_nonce=F89B4E724909C57D71193B24D075B88Foauth_signature_method=HMAC-
 SHA1oauth_signature=oauth sig, changes every
 calloauth_timestamp=1285925817oauth_token=oauth token, same as in
 the next call, different than the other 2 callsoauth_version=1.0

 then i ask for the followees statuses and that is working too:
  http://twitter.com/statuses/friends_timeline.xml?count=10oauth_consu..
   .consumer

   keyoauth_nonce=8C822206BE598A78CF97E942CB8A24E5oauth_signature_method=HMAC-
 SHA1oauth_signature=oauth sig, changes every
 calloauth_timestamp=1285925833oauth_token=same as previous call,
 different than the next 2 callsoauth_version=1.0

 then i simply press the button again to make the same 2 calls once
   

[twitter-dev] 403 with null response?

2010-10-01 Thread Justin
Just noticed this in my log:

Oct 01/2010 12:20:05 pm : process 25236 - response NULL
Oct 01/2010 12:20:05 pm : process 25236 - caught http status 403,
backing off. EXITED

When I get any status other than 200 I back off and log the response,
in this case the response was null.

My rate limit is also logged and I was well under 20k

The process that caught that 403 handles friendships, and seemed to be
pulling my list for cache at the time.

This is the only time I've seen this in at least 7 days. Any thoughts?
Temp glitch?

I noticed there have been about several back-offs with 500 listed as
well. Just a choppy day? (it is Friday I guess).

-- 
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: How many user are using my app?

2010-10-01 Thread Justin
There's probably a better way, but:

http://search.twitter.com/search?q=a+source:hootsuite

That gets any message coming out of hootsuite with a in it, limited
by the reliability of the search data of course.


On Sep 30, 10:33 am, Luco lucfl...@arcor.de wrote:
 Hey there,

 is there a possibility to check out, how many users already started
 using my Twitter-App?
 Or can i search for tweets using via my app?

 Thanks for your help
 Best regards
 Luca

-- 
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: List of new users registering on twitter datawise

2010-10-01 Thread Justin
Since the vast majority of twitter users won't ever visit your site,
why not just create a page if that user or a friend visits?

Check out how wefollow.com does it, it works well.


On Oct 1, 12:40 pm, Rajiv Kaushal kalyanra...@gmail.com wrote:
 Hi Taylor,

 Thanks for clarification. Actually, my thought was to create new page for
 every user on website signing up on twitter where one can update his other
 information later.

           Next, Can I get list of users for particular
 category/suggestion[e.g Business, Family, Fashion] not with respect to
 particular user? If yes, how and what is the limit for that api on the
 number of users?

 Thanks and Regards,

 Rajiv

 On Fri, Oct 1, 2010 at 9:50 PM, Taylor Singletary 









 taylorsinglet...@twitter.com wrote:
  Hi there,

  We don't provide any kind of feed/API for polling new signups.

  Generally, with any service that has a large user base, the motives of an
  organization or developer that wants the database of users from insert
  service name here will be suspect.

  What's the use case that you'd want/employ this information?

  We provide some categorical data of Twitter users available through GET
  users/suggestions (http://dev.twitter.com/doc/get/users/suggestions) and
  its companion resources.

  Taylor

  On Fri, Oct 1, 2010 at 5:07 AM, rajiv74 kalyanra...@gmail.com wrote:

  Hi,

       Can I get the list of users registering on twitter on daily
  basis or date wise using twitter api? Can I also get the list of
  twitter users category wise? Please help as I need to implement this
  in one of my site. If there is no way, can you help me to suggest
  alternate way to get the database of users from twitter?

  Thanks,

  Rajiv

  --
  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

 --

 Rajiv Kaushal
 Software Engineer

-- 
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: Custom background design

2010-10-01 Thread Justin
Just make your background and set here: http://twitter.com/settings/design

Take a look at the background in the link you sited, you'll see how
simple it is.
http://a3.twimg.com/profile_background_images/98968019/fan_news_twitter_bg.PNG



On Sep 30, 11:27 am, Erik der...@icomminteractive.com wrote:
 Hi.  I want to update a Twitter page's background so that there is a
 gradient background image and on the left only, a graphic that spans
 the height (logo).  But no matter what, when scrolling the page
 content, the logo stays in place.  This is an example of what I 
 saw.http://twitter.com/CBSfantasynews

 Can anyone guide me to a way of doing that?
 Thanks,
 Erik

-- 
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] 403 with null response?

2010-10-01 Thread Taylor Singletary
Hi Justin,

Do you know the exact method call you were making when you got this? Was it
friends/ids ?

Have you seen the error again since?

Are you logging the status message in addition to the code itself?

Taylor

On Fri, Oct 1, 2010 at 12:45 PM, Justin justin.carl...@gmail.com wrote:

 Just noticed this in my log:

 Oct 01/2010 12:20:05 pm : process 25236 - response NULL
 Oct 01/2010 12:20:05 pm : process 25236 - caught http status 403,
 backing off. EXITED

 When I get any status other than 200 I back off and log the response,
 in this case the response was null.

 My rate limit is also logged and I was well under 20k

 The process that caught that 403 handles friendships, and seemed to be
 pulling my list for cache at the time.

 This is the only time I've seen this in at least 7 days. Any thoughts?
 Temp glitch?

 I noticed there have been about several back-offs with 500 listed as
 well. Just a choppy day? (it is Friday I guess).

 --
 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: Site Streams - Unfollow Events?

2010-10-01 Thread John Kalucki
List modifications are streamed as social events. The lists themselves
are not streamed.

-John


On Fri, Oct 1, 2010 at 11:01 AM, Tom van der Woerdt i...@tvdw.eu wrote:
 Correct.

 I'd like to add an additional question to this thread: what about list
 events? The docs say that they get sent, but they don't.

 http://dev.twitter.com/pages/user_streams

 Tom


 On 10/1/10 7:46 PM, Justin wrote:
 It sounds like it's the same (NO) for both:

 Friendship Events
 Created - To you, from you
 Deleted - From you

 So, unfollow events from you not to you as the target. There doesn't
 seem to be any way to tell when someone stops following other than
 using the rest API to check followers and compare it to the list of
 following.

 Same with blocks:

 Created - From you (source)
 Deleted - From you (source)


 On Sep 30, 12:05 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 Site Streams only or User Streams? I'm developing around User Streams.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul Erdos

 Quoting tsmango tsma...@gmail.com:







 Hi, Ed. Block and unblock events are already being delivered in the
 Site Stream. Very useful!

 On Sep 30, 12:30 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 As long as we're wishing, I'd like to get a notification when someone
 blocks me. ;-)
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul 
 Erdos

 -
 Thomas Mango
 @tsmango

 --
 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] Re: How many user are using my app?

2010-10-01 Thread John Meyer

On 10/1/2010 2:04 PM, Justin wrote:

There's probably a better way, but:

http://search.twitter.com/search?q=a+source:hootsuite

That gets any message coming out of hootsuite with a in it, limited
by the reliability of the search data of course.



Other than designing your software to report back to the mothership (and 
raising a lot of privacy issues as well), I don't think so.


--
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: Site Streams - Unfollow Events?

2010-10-01 Thread Tom van der Woerdt
I tried, but I didn't see anything. Adding a new user to one of my lists
didn't send anything, and removing didn't either.

Haven't been able to test this outside my app, although I doubt that
it's my code (it simply outputs all incoming data to debug). Tried with
cURL but got an error about Basic Auth.

Can anyone verify that there are no list events in the streams, or am I
simply going blind?

Tom


On 10/1/10 10:57 PM, John Kalucki wrote:
 List modifications are streamed as social events. The lists themselves
 are not streamed.
 
 -John
 
 
 On Fri, Oct 1, 2010 at 11:01 AM, Tom van der Woerdt i...@tvdw.eu wrote:
 Correct.

 I'd like to add an additional question to this thread: what about list
 events? The docs say that they get sent, but they don't.

 http://dev.twitter.com/pages/user_streams

 Tom


 On 10/1/10 7:46 PM, Justin wrote:
 It sounds like it's the same (NO) for both:

 Friendship Events
 Created - To you, from you
 Deleted - From you

 So, unfollow events from you not to you as the target. There doesn't
 seem to be any way to tell when someone stops following other than
 using the rest API to check followers and compare it to the list of
 following.

 Same with blocks:

 Created - From you (source)
 Deleted - From you (source)


 On Sep 30, 12:05 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 Site Streams only or User Streams? I'm developing around User Streams.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul 
 Erdos

 Quoting tsmango tsma...@gmail.com:







 Hi, Ed. Block and unblock events are already being delivered in the
 Site Stream. Very useful!

 On Sep 30, 12:30 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 As long as we're wishing, I'd like to get a notification when someone
 blocks me. ;-)
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul 
 Erdos

 -
 Thomas Mango
 @tsmango

 --
 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] Re: Site Streams - Unfollow Events?

2010-10-01 Thread John Kalucki
I just verified with curl and it worked fine.

?

-John


On Fri, Oct 1, 2010 at 2:02 PM, Tom van der Woerdt i...@tvdw.eu wrote:
 I tried, but I didn't see anything. Adding a new user to one of my lists
 didn't send anything, and removing didn't either.

 Haven't been able to test this outside my app, although I doubt that
 it's my code (it simply outputs all incoming data to debug). Tried with
 cURL but got an error about Basic Auth.

 Can anyone verify that there are no list events in the streams, or am I
 simply going blind?

 Tom


 On 10/1/10 10:57 PM, John Kalucki wrote:
 List modifications are streamed as social events. The lists themselves
 are not streamed.

 -John


 On Fri, Oct 1, 2010 at 11:01 AM, Tom van der Woerdt i...@tvdw.eu wrote:
 Correct.

 I'd like to add an additional question to this thread: what about list
 events? The docs say that they get sent, but they don't.

 http://dev.twitter.com/pages/user_streams

 Tom


 On 10/1/10 7:46 PM, Justin wrote:
 It sounds like it's the same (NO) for both:

 Friendship Events
 Created - To you, from you
 Deleted - From you

 So, unfollow events from you not to you as the target. There doesn't
 seem to be any way to tell when someone stops following other than
 using the rest API to check followers and compare it to the list of
 following.

 Same with blocks:

 Created - From you (source)
 Deleted - From you (source)


 On Sep 30, 12:05 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 Site Streams only or User Streams? I'm developing around User Streams.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul 
 Erdos

 Quoting tsmango tsma...@gmail.com:







 Hi, Ed. Block and unblock events are already being delivered in the
 Site Stream. Very useful!

 On Sep 30, 12:30 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 As long as we're wishing, I'd like to get a notification when someone
 blocks me. ;-)
 --
 M. Edward (Ed) 
 Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul 
 Erdos

 -
 Thomas Mango
 @tsmango

 --
 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] Re: Site Streams - Unfollow Events?

2010-10-01 Thread Thomas Mango
I'm seeing list modification events in my Site Streams. The list events 
I've seen are are list_member_added, list_member_removed and list_created.


Tom van der Woerdt wrote:

I tried, but I didn't see anything. Adding a new user to one of my lists
didn't send anything, and removing didn't either.

Haven't been able to test this outside my app, although I doubt that
it's my code (it simply outputs all incoming data to debug). Tried with
cURL but got an error about Basic Auth.

Can anyone verify that there are no list events in the streams, or am I
simply going blind?

Tom


On 10/1/10 10:57 PM, John Kalucki wrote:

List modifications are streamed as social events. The lists themselves
are not streamed.

-John


On Fri, Oct 1, 2010 at 11:01 AM, Tom van der Woerdti...@tvdw.eu  wrote:

Correct.

I'd like to add an additional question to this thread: what about list
events? The docs say that they get sent, but they don't.

http://dev.twitter.com/pages/user_streams

Tom


On 10/1/10 7:46 PM, Justin wrote:

It sounds like it's the same (NO) for both:

Friendship Events
Created - To you, from you
Deleted - From you

So, unfollow events from you not to you as the target. There doesn't
seem to be any way to tell when someone stops following other than
using the rest API to check followers and compare it to the list of
following.

Same with blocks:

Created - From you (source)
Deleted - From you (source)


On Sep 30, 12:05 pm, M. Edward (Ed) Boraskyzn...@borasky-
research.net  wrote:

Site Streams only or User Streams? I'm developing around User Streams.
--
M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

A mathematician is a device for turning coffee into theorems. - Paul Erdos

Quoting tsmangotsma...@gmail.com:








Hi, Ed. Block and unblock events are already being delivered in the
Site Stream. Very useful!
On Sep 30, 12:30 pm, M. Edward (Ed) Boraskyzn...@borasky-
research.net  wrote:

As long as we're wishing, I'd like to get a notification when someone
blocks me. ;-)
--
M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb
A mathematician is a device for turning coffee into theorems. - Paul Erdos

-
Thomas Mango
@tsmango
--
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






--
Thomas Mango
tsma...@gmail.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-dev] Re: 403 with null response?

2010-10-01 Thread Justin
I log the status code and the full response if available, which in
this case it came back null.

It is likely that it was either friends/ids, or followers/ids.

I checked my logs and I don't believe this has ever happened before
(backend has been in use for 14 months).

Everything has been working fine sense.

I've added additional logging, including the full headers and the
method called when it happens so if it does happen again I'll have
more info.




On Oct 1, 3:46 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Justin,

 Do you know the exact method call you were making when you got this? Was it
 friends/ids ?

 Have you seen the error again since?

 Are you logging the status message in addition to the code itself?

 Taylor







 On Fri, Oct 1, 2010 at 12:45 PM, Justin justin.carl...@gmail.com wrote:
  Just noticed this in my log:

  Oct 01/2010 12:20:05 pm : process 25236 - response NULL
  Oct 01/2010 12:20:05 pm : process 25236 - caught http status 403,
  backing off. EXITED

  When I get any status other than 200 I back off and log the response,
  in this case the response was null.

  My rate limit is also logged and I was well under 20k

  The process that caught that 403 handles friendships, and seemed to be
  pulling my list for cache at the time.

  This is the only time I've seen this in at least 7 days. Any thoughts?
  Temp glitch?

  I noticed there have been about several back-offs with 500 listed as
  well. Just a choppy day? (it is Friday I guess).

  --
  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: Site Streams - Unfollow Events?

2010-10-01 Thread Tom van der Woerdt
I just tried again (last time I tried is about 12 hours ago) and I am
getting the notifications now.

Thanks.

Tom


On 10/1/10 11:05 PM, John Kalucki wrote:
 I just verified with curl and it worked fine.
 
 ?
 
 -John
 
 
 On Fri, Oct 1, 2010 at 2:02 PM, Tom van der Woerdt i...@tvdw.eu wrote:
 I tried, but I didn't see anything. Adding a new user to one of my lists
 didn't send anything, and removing didn't either.

 Haven't been able to test this outside my app, although I doubt that
 it's my code (it simply outputs all incoming data to debug). Tried with
 cURL but got an error about Basic Auth.

 Can anyone verify that there are no list events in the streams, or am I
 simply going blind?

 Tom


 On 10/1/10 10:57 PM, John Kalucki wrote:
 List modifications are streamed as social events. The lists themselves
 are not streamed.

 -John


 On Fri, Oct 1, 2010 at 11:01 AM, Tom van der Woerdt i...@tvdw.eu wrote:
 Correct.

 I'd like to add an additional question to this thread: what about list
 events? The docs say that they get sent, but they don't.

 http://dev.twitter.com/pages/user_streams

 Tom


 On 10/1/10 7:46 PM, Justin wrote:
 It sounds like it's the same (NO) for both:

 Friendship Events
 Created - To you, from you
 Deleted - From you

 So, unfollow events from you not to you as the target. There doesn't
 seem to be any way to tell when someone stops following other than
 using the rest API to check followers and compare it to the list of
 following.

 Same with blocks:

 Created - From you (source)
 Deleted - From you (source)


 On Sep 30, 12:05 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 Site Streams only or User Streams? I'm developing around User Streams.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul 
 Erdos

 Quoting tsmango tsma...@gmail.com:







 Hi, Ed. Block and unblock events are already being delivered in the
 Site Stream. Very useful!

 On Sep 30, 12:30 pm, M. Edward (Ed) Borasky zn...@borasky-
 research.net wrote:
 As long as we're wishing, I'd like to get a notification when someone
 blocks me. ;-)
 --
 M. Edward (Ed) 
 Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul 
 Erdos

 -
 Thomas Mango
 @tsmango

 --
 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] Re: 403 with null response?

2010-10-01 Thread Matt Harris
Hey Justin,

Thanks for the update. If it does happen again let us know with the
headers and response body. We can then try and find out what happened.
It's very odd for us to not return any body content on error.

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



On Fri, Oct 1, 2010 at 2:27 PM, Justin justin.carl...@gmail.com wrote:
 I log the status code and the full response if available, which in
 this case it came back null.

 It is likely that it was either friends/ids, or followers/ids.

 I checked my logs and I don't believe this has ever happened before
 (backend has been in use for 14 months).

 Everything has been working fine sense.

 I've added additional logging, including the full headers and the
 method called when it happens so if it does happen again I'll have
 more info.




 On Oct 1, 3:46 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 Hi Justin,

 Do you know the exact method call you were making when you got this? Was it
 friends/ids ?

 Have you seen the error again since?

 Are you logging the status message in addition to the code itself?

 Taylor







 On Fri, Oct 1, 2010 at 12:45 PM, Justin justin.carl...@gmail.com wrote:
  Just noticed this in my log:

  Oct 01/2010 12:20:05 pm : process 25236 - response NULL
  Oct 01/2010 12:20:05 pm : process 25236 - caught http status 403,
  backing off. EXITED

  When I get any status other than 200 I back off and log the response,
  in this case the response was null.

  My rate limit is also logged and I was well under 20k

  The process that caught that 403 handles friendships, and seemed to be
  pulling my list for cache at the time.

  This is the only time I've seen this in at least 7 days. Any thoughts?
  Temp glitch?

  I noticed there have been about several back-offs with 500 listed as
  well. Just a choppy day? (it is Friday I guess).

  --
  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] Re: Search with geocode does not respect search radius?

2010-10-01 Thread Matt Harris
This is being investigated at the moment so were still waiting for a
fix. When one is deployed we'll let you know.
Best,

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



On Fri, Oct 1, 2010 at 1:58 AM, Johannes la Poutre jsixp...@gmail.com wrote:
 Hi Taylor,

 Any updates on this?
 Currently the geocode search is still broken...

 On Sep 24, 4:33 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 We have a bug right now effecting exactly these kinds of searches. I'm not
 sure how quickly it will be fixed, but I'm hoping it will be early next
 week. I don't think there are any functional workarounds besides merging
 multiple searches.

 Sorry about the mess!

 Taylor

 On Fri, Sep 24, 2010 at 6:57 AM, Johannes la Poutre 
 jsixp...@gmail.comwrote:

  Hello,

  Since a few days it seems that search restricted by geolocation and
  search radius is not working correctly anymore.

  If I submit this request:

 http://search.twitter.com/search.json?geocode=52.360773%2C4.871720%2C...

  I expect all resuls to originate from a geocode within 1km radius
  around the central coordinate.

  As of a few days ago I get many results from much farther away, up to
  several tens of kilometers.

  Is this a known issue?
  Any time to a fix?
  Or has there been an API change?
  Note: I revisited the API documentation ad could not find any recent
  changes.

  Best,

  Joe.

  --
  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: Looking for Java class/package for Firehose

2010-10-01 Thread Justin

Alternatively, you can just dump to disk and have a separate process
read through the queue.

That would be ideal as you wouldn't lose any messages if your database
goes down. (I guess I'm assuming your db is on it's own machine).






On Oct 1, 12:11 pm, M. Edward (Ed) Borasky zn...@borasky-
research.net wrote:
 Yeah, the Perl library uses AnyEvent to achieve threading.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

 A mathematician is a device for turning coffee into theorems. - Paul Erdos

 Quoting D. Smith emai...@sharedlog.com:







  perl has the same limitation as php, I decided to use Java for
  streaming API because of support for threads.

  On Sep 30, 12:54 pm, M. Edward (Ed) Borasky zn...@borasky-
  research.net wrote:
  I've used the Perl AnyEvent::Twitter::Stream CPAN module and the Ruby  
  tweetstream gem. Both of them work just fine, although I think the  
  error handling in the Perl one may have a glitch. The Perl one is  
  lighter on both CPU and RAM use, but that's the nature of Perl vs.  
  Ruby, not something in the library codes themselves.

  I don't know if either of them has been updated to work with the  
  official User Streams endpoint yet - last time I looked at User  
  Streams, I used cURL from the command line.

  I'll probably get back to my User Streams project next week - I've  
  been pushing to get my appliances in shape for the SUSE Disters  
  contest entry deadline, which is tomorrow. ;-)

  And yes, I'd still like the option to get spritzer data in User  
  Streams without having to open another connection. But I'm probably  
  the only one. ;-)
  --
  M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

  A mathematician is a device for turning coffee into theorems. - Paul 
  Erdos

  Quoting Taylor Singletary taylorsinglet...@twitter.com:

   While it's in Scala, not Java, I've heard good things about
   @alejandrocrosa's Scala-TwitterStreamer :
  http://github.com/acrosa/Scala-TwitterStreamer--you should be able
   to make use of it fairly easily in a Java environment.

   We'd love to start collecting libraries built around the Streaming API.

   Regardless of language, does anyone have libraries to share with 
   everyone?

   Taylor

   On Thu, Sep 30, 2010 at 8:25 AM, D. Smith emai...@sharedlog.com wrote:
   Hello there!
   I am pretty experienced with using PHP for Twitter, but now I want to
   use firehose and Java seems to be a much better fit because of
   'Threads', so I can listen to Firehose the pass a job to a thread and
   return right away. PHP cannot do that, well, maybe to some crazy hacks
   that I am not too impressed with.

   Anyway, can someone recommend a good Java client that does that,
   ideally where I can just extend the class to write my own runnable
   classes.

   thanks a lot.

   --
   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] Re: New Tweet button, counturl, and searches

2010-10-01 Thread Matt Harris
Hey,

Just wanted toclarify what is and isn't supported at the moment - and
to explain the problem Adam is seeing.

The Search API still supports searching by domain and matching
shortened links. Remember that Search doesn't contain a complete index
of Tweets but is instead based around relevance. This means not all
Tweets are represented. If a Tweet contains a shortened URL - and we
were able to expand that URL before indexing - it will be found. Also
remember the search index is only ~5 days and so Tweets made before
them will not be found.
The 'expand URL' feature you are referring to in Search is a visual
element and doesn't reflect if a URL has been expanded or not.

For the Streaming API our engineers are working on support for
entities, which will allow t.co URLs to match to their expanded URLs.

In the Tweet Button, the counturl is still a supported and useful parameter.

Adam: in the example you give the URL and counturl are the same -
which is wrong. Instead you want users to Tweet the short URL, but
Twitter to count the expanded form. This means the
http://sbn.to/dB76xp URL should be the data-url parameter and the
data-counturl should be:
http://www.sbnation.com/ncaa-football/2010/9/26/1712470/arizona-california-final-pac-10-crazy

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



On Thu, Sep 30, 2010 at 7:37 AM, Adam Trilling adam.sbnat...@gmail.com wrote:
 Interesting...that explains why it used to work and then it stopped.  Is
 there any sort of official statement as to whether this is a bug, a
 temporary issue, or whether counturl is now useless?  Or is there just
 speculation?  I wasn't able to find much at all about this before I posted
 in the group.
 We've had enough users complaining that we had to revert to the BackType
 button...
 adam

 On Wed, Sep 29, 2010 at 6:22 PM, snydeq sny...@gmail.com wrote:

 Apologies for the double post, but the above URL is incorrect and
 should be:


 http://groups.google.com/group/twitter-development-talk/browse_thread/thread/d6c3996bc451c0a6#

 --
 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] Ultimately send my twitter followers direct messages from my application

2010-10-01 Thread Dialflow
Hi:

I was wondering if any one could suggest an elegant approach to
ultimately sending direct messages to my Twitter followers from my
application.

I'd like people that join web site to do the following:

From their member page on my site, I'd like for them to click a
Twitter follow button, go to Twitter, follow me, then return to their
member page on my site.

After they do this, I want capture their twitter ID and associate it
with their user account on my site so I can send them direct messages
from my application.

I'd really appreciate an elegant approach to solving this.

I guess I'm looking for an answer like: Use oAuth to have the user
authorize your app on Twitter, then redirect redirect back to your
app, click a twittter follow button, and extract their Twitter ID from
x_file and then

My days of programming are way behind me so I hope that makes some
sense.

Thanks so much.
Curtis

-- 
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