[twitter-dev] Re: Tweet Button Display Issue

2011-04-12 Thread Sam Hughes
Hey Matt,

Thanks for getting back to me, I have attached the HTML that was
generated from the Twitter resources page:

a href=http://twitter.com/share; class=twitter-share-button data-
url=http://www.mycleveragency.com; data-text=I just found the first
hidden easter egg! data-count=none data-via=sammyhTweet/
ascript type=text/javascript src=http://platform.twitter.com/
widgets.js/script

I did find a work around but it isn't ideal as it directs users to a
new Twitter window, It'd be so much better if I could get it to work
with the actual tweet button.

Cheers,

Sam

On Apr 11, 8:37 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey Sam,

 Can you share the HTML you are using to markup the Tweet Button so we can
 see what the issue could be.

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

 On Mon, Apr 11, 2011 at 3:37 AM, Sam Hughes samvhug...@googlemail.comwrote:







  Hey guys,

  I am trying to customize some tweet buttons so that when clicked on
  the pop-up opens and the tweet text is something I have wrote. I know
  that the tweet button has this functionality, but when I try to embed
  the code onto any site the text reverts so that it tweets the page
  title that the Tweet button sits on. Anyone know why this isn't
  working? or know any good work arounds?

  Cheers,

  Sam

  --
  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] Direct Message to more than one person

2011-04-12 Thread Battan Amit
Hi


I want to send direct message to more than one person with a single call

I am using MGTwitterEngine

and calling function like this
[requestDict setObject:@direct_message forKey:[twitterObj
sendDirectMessage:@this is test from iphone app to:@user_id]];

this is sending ok

but am not able to send it to multiple people , how can I do this
I tried it with comma separated user_ids but not works


Thanks
Amit Battan

-- 
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] Direct Message to more than one person

2011-04-12 Thread Scott Wilcox
You can only send a direct message to one user at a time.

On 12 Apr 2011, at 09:17, Battan Amit wrote:

 Hi 
 
 
 I want to send direct message to more than one person with a single call 
 
 I am using MGTwitterEngine
 
 and calling function like this
 [requestDict setObject:@direct_message forKey:[twitterObj 
 sendDirectMessage:@this is test from iphone app to:@user_id]];
 
 this is sending ok
 
 but am not able to send it to multiple people , how can I do this
 I tried it with comma separated user_ids but not works
 
 
 Thanks
 Amit Battan
 
 -- 
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580



-- 
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: Auto updates to twitter page

2011-04-12 Thread L. Mohan Arun
 I am working on WWTS application of pwc client. Here we have countries
 info and we can edit the info of each country as well. Now, if I edit
 info, update and click on twitter icon available on this page, it
 should redirect and post the same to http://twitter.com/pwc_WWTS;.

 Please help me which APIs I can use to acheive it. Also, the steps I
 have to proceed here.

Its not clear what you want to do when you say 'post the same to
http://twitter.com;.
are you tryin' to post a status update to twitter? If so then your
application
needs to get oAuth for the user 'pwc_WWTS'. Then you can post status
update
as the user.

- Mohan
http://twitter.com/437341

-- 
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: Get user email from twitter

2011-04-12 Thread L. Mohan Arun
On Apr 11, 12:10 pm, Akhil neeraj.shukla2...@gmail.com wrote:
 Is it possible to get user email after logged by oauth? if possible
 then then how can i do this?

Allowin' users of twitter api to get user's email address will expose
those users to receive spam emails. So it will not be possible to
expose it.

- Mohan
http://twitter.com/437341

-- 
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: Direct Message to more than one person

2011-04-12 Thread Battan Ror
means we have to use loop ..
its not good ... twitter developer should given that option

On Apr 12, 1:36 pm, Scott Wilcox sc...@dor.ky wrote:
 You can only send a direct message to one user at a time.

 On 12 Apr 2011, at 09:17, Battan Amit wrote:



  Hi

  I want to send direct message to more than one person with a single call

  I am using MGTwitterEngine

  and calling function like this
  [requestDict setObject:@direct_message forKey:[twitterObj 
  sendDirectMessage:@this is test from iphone app to:@user_id]];

  this is sending ok

  but am not able to send it to multiple people , how can I do this
  I tried it with comma separated user_ids but not works

  Thanks
  Amit Battan

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

 --
 Scott Wilcox

 @dordotky | sc...@dor.ky |http://dor.ky
 +44 (0) 7538 842418 | +1 (646) 827-0580

-- 
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] how do i know that a tweet i posted in twitter from my rails application?

2011-04-12 Thread anu
Hi all,

I am sharing the posts made in my rails application in twitter. Here
is the code I am using:

div id=custom-tweet-button
a href=http://twitter.com/share?url=[url_value in this
palce]text=This is a test target=_blank
   %=image_tag(../images/share_icons/
share_this_on_twitter.png, :id=twitshare, :border = 0) %
/a
/div

When the user clicks on the twitter sharing image, another window will
open in which it asks the user to login to twitter if he is not
already logged in. Then after that tweet box will appear there with
text populated in it. The user can click the tweet button there and
the tweet will be posted in the logged in twitter account and a
confirmation message will be displayed in this window and the window
will be closed in few seconds. But my problem is this: How does my
application know that the tweet is posted in twitter? the application
needs to give some rewards to the user upon successful tweets in
twitter.

Any help?

Thanks,

Anu

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


[twitter-dev] Authorization, 401 Not authorized error

2011-04-12 Thread Han
Hello
I have searched this group for this error for some time without
success. My base-string is,

POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
%2Frequest_tokenoauth_callback%3Dhttp%253A%252F%252Flocalhost
%253A3005%252Fthe_dance%252Fprocess_callback%253Fservice_provider_id
%253D11%26oauth_consumer_key%3DBQdOVY4TyFCEtNxNVwwFJw%26oauth_nonce
%3DQP70eNmVz8jvdPevU3oJD2AfF7R7odC2XJcn4XlZJqk%26oauth_signature_method
%3DHMAC-SHA1%26oauth_timestamp%3D1299953987%26oauth_version%3D1.0

To now I have had no problem getting same oauth_signature as the
official document, http://dev.twitter.com/pages/auth .
I changed some of the base-string into my own, such as
oauth_consumer_key and oauth_timestamp, and using my own
consumer_secret, tried to get oauth_token without success. I think the
oauth_callback value is not related with the error 401, which I didn't
touched. Either with oauth_nounce.
What should I check first? Where can I find more kind example? I am
using Asp.net + Javascript for this authentication.

Any input is appreciated.

-- 
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] Logout : Twitter Iphone MGTwitterEngine

2011-04-12 Thread Battan Ror
Hi All



How we logout the user from iphone twitter applicatio
I am using MGTwitterEngine with code
[twitterObj endUserSession];


But user is not logout
How we do that

-- 
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] statuses/mentions versus statuses/user_timeline

2011-04-12 Thread Randomness
I wrote some code that retrieves tweets sent by an authenticated user
which works fine. As the resource I use:

http://api.twitter.com/1/statuses/user_timeline.xml

which is used for te base string. For the CURLOPT_URL I added paramers
to the URL like:

?count=200page=1include_rts=true

From the documentation I figured that retrieving mentions works
exactly the same, only the resource needs to be changed to:

http://api.twitter.com/1/statuses/mentions.xml

This is the only change I made to the code, all else remains exactly
the same. Instead of retrieving my mentions I get the message
Incorrect signature.

I have been staring at my code for a while now, and don't see what is
wrong.

Anyone any suggestions or an explanation?


-- 
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] Logout : Twitter Iphone MGTwitterEngine

2011-04-12 Thread Rinku SadhwaniLove is like war: Easy to begin but hard to end. - Anonymous
On Tue, Apr 12, 2011 at 5:26 PM, Battan Ror batta...@gmail.com wrote:

 Hi All



 How we logout the user from iphone twitter applicatio
 I am using MGTwitterEngine with code
 [twitterObj endUserSession];


 But user is not logout
 How we do that


u can do like that
-(void)logout
{
[_engine clearAccessToken];
NSlog(@logout press);

}

rinku

-- 
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: statuses/mentions versus statuses/user_timeline

2011-04-12 Thread Randomness
See below what I use for the user_timeline which works fine. For the
mentions I only changed the second line to reflect that now menions
should be returned which gives me th e Incorrect signature
message...

$method=GET;
$resource='http://api.twitter.com/1/statuses/user_timeline.xml';
$oauth_signature_method=HMAC-SHA1;
$oauth_version=1.0;
$oauth_consumer_key=consumerkey;
$oauth_consumer_secret=consumersecret;
$oauth_token=oauthtoken;
$oauth_token_secret=oauthtokensecret;
$oauth_nonce=get_nonce();
$oauth_timestamp=time();

$base=oauth_consumer_key.=.$oauth_consumer_key;
$base .=.oauth_nonce.=.$oauth_nonce;
$base .=.oauth_signature_method.=.$oauth_signature_method;
$base .=.oauth_timestamp.=.$oauth_timestamp;
$base .=.oauth_token.=.$oauth_token;
$base .=.oauth_version.=.$oauth_version;
$base=$method..rawurlencode($resource)..rawurlencode($base);

$key=$oauth_consumer_secret..$oauth_token_secret;
$oauth_signature=get_oauth_signature($base,$key);

$header='Authorization: OAuth realm='.$resource.'';
$header .=', oauth_nonce='.$oauth_nonce.'';
$header .=', oauth_signature_method='.$oauth_signature_method.'';
$header .=', oauth_timestamp='.$oauth_timestamp.'';
$header .=', oauth_consumer_key='.$oauth_consumer_key.'';
$header .=', oauth_token='.$oauth_token.'';
$header .=', oauth_signature='.$oauth_signature.'';
$header .=', oauth_version='.$oauth_version.'';

$_h = array('Expect:');
$_h[] = substr($header, 0);
$resource .='?count=200page='.$page.'include_rts=true';

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $resource);
curl_setopt($curl, CURLOPT_POST, false);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, $_h);
$result = curl_exec($curl);
curl_close($curl);

On Apr 12, 3:48 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Can you give an example of the HTTP headers or OAuth query parameters you're
 sending along with both variations of the request? While it's not required,
 I recommend explicitly specifying a user_id or screen_name for these
 methods, instead of relying on the magic implicit user that auth brings you.
 I also recommend sticking to HTTP header-based auth, as it dramatically
 separates concerns.

 Your resource-specific query parameters should be added to the URL before
 you compute your signature -- in your signature base string, the query
 parameters should be sorted.

 Thanks,
 Taylor

 @episod http://twitter.com/episod - Taylor Singletary

 On Tue, Apr 12, 2011 at 5:13 AM, Randomness randomness.bl...@gmail.comwrote:



  I wrote some code that retrieves tweets sent by an authenticated user
  which works fine. As the resource I use:

 http://api.twitter.com/1/statuses/user_timeline.xml

  which is used for te base string. For the CURLOPT_URL I added paramers
  to the URL like:

  ?count=200page=1include_rts=true

  From the documentation I figured that retrieving mentions works
  exactly the same, only the resource needs to be changed to:

 http://api.twitter.com/1/statuses/mentions.xml

  This is the only change I made to the code, all else remains exactly
  the same. Instead of retrieving my mentions I get the message
  Incorrect signature.

  I have been staring at my code for a while now, and don't see what is
  wrong.

  Anyone any suggestions or an explanation?

  --
  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- Hide quoted text -

 - Show quoted text -

-- 
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: Confused about rate limits

2011-04-12 Thread impeto
:) Ok, authenticated means what it means in the context of the API
calls. I am a developer, I make the difference. Perhaps I wasn't too
clear: first I used cURL to call http://api.twitter.com/account/
rate_limit_status.json anonymously, no oauth tokens, nothing, and I
got 150. Then I used a CodeIgniter Twitter library from here
https://github.com/elliothaughin/codeigniter-twitter to authenticate
and make the call to account/verify_credentials and to account/
rate_limit_status. I got my account info ok, which means that the
request was authenticated, but the rate limit was still 150 but with
less remaining request (2 to be exact).

There is no question about whether or not I am authenticated, because
I call other API resources that require authentication and I always
get the data with a 200 http status header, but the maximum hourly
requests stay at 150 and the remaining requests go down after each
call. I'm guessing that it may not stop at 150 on authenticated
requests but I'd hate to have to sit here and click through my app 150
times to find out.

Alin

PS Why would you think I was talking about signing in on twitter.com
when I was talking about verifying credential?

On Apr 11, 10:11 pm, Arnaud Meunier arn...@twitter.com wrote:
 Hey Alin,

 What do you mean by *I authenticated, verified the credentials and **
 queried*? In this context (API call) authenticating means signing your
 request using OAuth. Signing-in with your account on twitter.com is a
 completely different thing and has no effect on your API requests.

 Arnaud / @rno http://twitter.com/rno







 On Mon, Apr 11, 2011 at 12:48 PM, impeto impet...@gmail.com wrote:
  Hey guys,

  maybe this question has been asked before, but I just joined the
  group. I just ran into a little problem that threw me off. I'm
  developing a website that uses the REST API extensively. The
  documentation says that anonymous requests get limited to 150 requests/
  hour/IP and authenticated requests get limited to 350 requests/hour/
  user. I did the anonymous request to account/rate_limit_status and I
  got 150; and then I authenticated, verified the credentials and
  queried account/rate_limit_status again. Got the same result. Why is
  that? When you are authenticated, aren't you supposed to get 350 back
  from account/rate_limit_status?

  Thanks in advance.

  Alin

  --
  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: Confused about rate limits

2011-04-12 Thread Arnaud Meunier
Hey Alin,

The sentence you used confused me, sorry. Now I guess you were talking about
the account/verify_credentials endpoint :)

Question for you: what is your X-RateLimit-Limit header value (for both
account/verify_credentials and other endpoints you're using that require
authentication)?

Arnaud / @rno http://twitter.com/rno



On Tue, Apr 12, 2011 at 8:06 AM, impeto impet...@gmail.com wrote:

 :) Ok, authenticated means what it means in the context of the API
 calls. I am a developer, I make the difference. Perhaps I wasn't too
 clear: first I used cURL to call http://api.twitter.com/account/
 rate_limit_status.json anonymously, no oauth tokens, nothing, and I
 got 150. Then I used a CodeIgniter Twitter library from here
 https://github.com/elliothaughin/codeigniter-twitter to authenticate
 and make the call to account/verify_credentials and to account/
 rate_limit_status. I got my account info ok, which means that the
 request was authenticated, but the rate limit was still 150 but with
 less remaining request (2 to be exact).

 There is no question about whether or not I am authenticated, because
 I call other API resources that require authentication and I always
 get the data with a 200 http status header, but the maximum hourly
 requests stay at 150 and the remaining requests go down after each
 call. I'm guessing that it may not stop at 150 on authenticated
 requests but I'd hate to have to sit here and click through my app 150
 times to find out.

 Alin

 PS Why would you think I was talking about signing in on twitter.com
 when I was talking about verifying credential?

 On Apr 11, 10:11 pm, Arnaud Meunier arn...@twitter.com wrote:
  Hey Alin,
 
  What do you mean by *I authenticated, verified the credentials and **
  queried*? In this context (API call) authenticating means signing your
  request using OAuth. Signing-in with your account on twitter.com is a
  completely different thing and has no effect on your API requests.
 
  Arnaud / @rno http://twitter.com/rno
 
 
 
 
 
 
 
  On Mon, Apr 11, 2011 at 12:48 PM, impeto impet...@gmail.com wrote:
   Hey guys,
 
   maybe this question has been asked before, but I just joined the
   group. I just ran into a little problem that threw me off. I'm
   developing a website that uses the REST API extensively. The
   documentation says that anonymous requests get limited to 150 requests/
   hour/IP and authenticated requests get limited to 350 requests/hour/
   user. I did the anonymous request to account/rate_limit_status and I
   got 150; and then I authenticated, verified the credentials and
   queried account/rate_limit_status again. Got the same result. Why is
   that? When you are authenticated, aren't you supposed to get 350 back
   from account/rate_limit_status?
 
   Thanks in advance.
 
   Alin
 
   --
   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: Confused about rate limits

2011-04-12 Thread hax0rsteve


You appear to be using the wrong URLs. Specify a version number and this will 
go away.

Rather than http://api.twitter.com/account/rate_limit_status.json;

use

http://api.twitter.com/account/1/rate_limit_status.json;





On 12 Apr 2011, at 16:06, impeto wrote:

 :) Ok, authenticated means what it means in the context of the API
 calls. I am a developer, I make the difference. Perhaps I wasn't too
 clear: first I used cURL to call http://api.twitter.com/account/
 rate_limit_status.json anonymously, no oauth tokens, nothing, and I
 got 150. Then I used a CodeIgniter Twitter library from here
 https://github.com/elliothaughin/codeigniter-twitter to authenticate
 and make the call to account/verify_credentials and to account/
 rate_limit_status. I got my account info ok, which means that the
 request was authenticated, but the rate limit was still 150 but with
 less remaining request (2 to be exact).
 
 There is no question about whether or not I am authenticated, because
 I call other API resources that require authentication and I always
 get the data with a 200 http status header, but the maximum hourly
 requests stay at 150 and the remaining requests go down after each
 call. I'm guessing that it may not stop at 150 on authenticated
 requests but I'd hate to have to sit here and click through my app 150
 times to find out.
 
 Alin
 
 PS Why would you think I was talking about signing in on twitter.com
 when I was talking about verifying credential?
 
 On Apr 11, 10:11 pm, Arnaud Meunier arn...@twitter.com wrote:
 Hey Alin,
 
 What do you mean by *I authenticated, verified the credentials and **
 queried*? In this context (API call) authenticating means signing your
 request using OAuth. Signing-in with your account on twitter.com is a
 completely different thing and has no effect on your API requests.
 
 Arnaud / @rno http://twitter.com/rno
 
 
 
 
 
 
 
 On Mon, Apr 11, 2011 at 12:48 PM, impeto impet...@gmail.com wrote:
 Hey guys,
 
 maybe this question has been asked before, but I just joined the
 group. I just ran into a little problem that threw me off. I'm
 developing a website that uses the REST API extensively. The
 documentation says that anonymous requests get limited to 150 requests/
 hour/IP and authenticated requests get limited to 350 requests/hour/
 user. I did the anonymous request to account/rate_limit_status and I
 got 150; and then I authenticated, verified the credentials and
 queried account/rate_limit_status again. Got the same result. Why is
 that? When you are authenticated, aren't you supposed to get 350 back
 from account/rate_limit_status?
 
 Thanks in advance.
 
 Alin
 
 --
 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: Confused about rate limits

2011-04-12 Thread Digga
This is something I am experiencing as well. There is clearly 150 that
is awarded to the accounts per hour. I signed out and signed in, ad
every time there is 150 requests, not 350.

Is there suppose to be 350 or 150 coming from this call?

http://twitter.com/account/rate_limit_status.json

because I get 150 for my accounts. It will reset on another account,
but still only to 150 not 350.




On Apr 11, 10:11 pm, Arnaud Meunier arn...@twitter.com wrote:
 Hey Alin,

 What do you mean by *I authenticated, verified the credentials and **
 queried*? In this context (API call) authenticating means signing your
 request using OAuth. Signing-in with your account on twitter.com is a
 completely different thing and has no effect on your API requests.

 Arnaud / @rno http://twitter.com/rnoOn Mon, Apr 11, 2011 at 12:48 PM, 
 impeto impet...@gmail.com wrote:
  Hey guys,

  maybe this question has been asked before, but I just joined the
  group. I just ran into a little problem that threw me off. I'm
  developing a website that uses the REST API extensively. The
  documentation says that anonymous requests get limited to 150 requests/
  hour/IP and authenticated requests get limited to 350 requests/hour/
  user. I did the anonymous request to account/rate_limit_status and I
  got 150; and then I authenticated, verified the credentials and
  queried account/rate_limit_status again. Got the same result. Why is
  that? When you are authenticated, aren't you supposed to get 350 back
  from account/rate_limit_status?

  Thanks in advance.

  Alin

  --
  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: Confused about rate limits

2011-04-12 Thread hax0rsteve


Sorry, my bad, that should indeed be http://api.twitter.com/1/...


On 12 Apr 2011, at 17:17, impeto wrote:

 You actually have to put the 1 before account: 
 http://api.twitter.com/1/{end
 point}.json I just now realized that the CodeIgniter library that I
 use does not add the version number. I guess I'll have to send the
 developer a note on that.
 
 Hey! It works fine now. Thank you. I would have never thought to look
 at what URL the library was sending requests to.
 
 Thanks to all who replied.
 
 Alin
 
 On Apr 12, 11:45 am, hax0rsteve hax0rc...@btinternet.com wrote:
 You appear to be using the wrong URLs. Specify a version number and this 
 will go away.
 
 Rather than http://api.twitter.com/account/rate_limit_status.json;
 
 use
 
 http://api.twitter.com/account/1/rate_limit_status.json;
 
 On 12 Apr 2011, at 16:06, impeto wrote:
 
 
 
 
 
 
 
 :) Ok, authenticated means what it means in the context of the API
 calls. I am a developer, I make the difference. Perhaps I wasn't too
 clear: first I used cURL to call http://api.twitter.com/account/
 rate_limit_status.json anonymously, no oauth tokens, nothing, and I
 got 150. Then I used a CodeIgniter Twitter library from here
 https://github.com/elliothaughin/codeigniter-twitterto authenticate
 and make the call to account/verify_credentials and to account/
 rate_limit_status. I got my account info ok, which means that the
 request was authenticated, but the rate limit was still 150 but with
 less remaining request (2 to be exact).
 
 There is no question about whether or not I am authenticated, because
 I call other API resources that require authentication and I always
 get the data with a 200 http status header, but the maximum hourly
 requests stay at 150 and the remaining requests go down after each
 call. I'm guessing that it may not stop at 150 on authenticated
 requests but I'd hate to have to sit here and click through my app 150
 times to find out.
 
 Alin
 
 PS Why would you think I was talking about signing in on twitter.com
 when I was talking about verifying credential?
 
 On Apr 11, 10:11 pm, Arnaud Meunier arn...@twitter.com wrote:
 Hey Alin,
 
 What do you mean by *I authenticated, verified the credentials and **
 queried*? In this context (API call) authenticating means signing your
 request using OAuth. Signing-in with your account on twitter.com is a
 completely different thing and has no effect on your API requests.
 
 Arnaud / @rno http://twitter.com/rno
 
 On Mon, Apr 11, 2011 at 12:48 PM, impeto impet...@gmail.com wrote:
 Hey guys,
 
 maybe this question has been asked before, but I just joined the
 group. I just ran into a little problem that threw me off. I'm
 developing a website that uses the REST API extensively. The
 documentation says that anonymous requests get limited to 150 requests/
 hour/IP and authenticated requests get limited to 350 requests/hour/
 user. I did the anonymous request to account/rate_limit_status and I
 got 150; and then I authenticated, verified the credentials and
 queried account/rate_limit_status again. Got the same result. Why is
 that? When you are authenticated, aren't you supposed to get 350 back
 from account/rate_limit_status?
 
 Thanks in advance.
 
 Alin
 
 --
 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: Confused about rate limits

2011-04-12 Thread impeto
You actually have to put the 1 before account: http://api.twitter.com/1/{end
point}.json I just now realized that the CodeIgniter library that I
use does not add the version number. I guess I'll have to send the
developer a note on that.

Hey! It works fine now. Thank you. I would have never thought to look
at what URL the library was sending requests to.

Thanks to all who replied.

Alin

On Apr 12, 11:45 am, hax0rsteve hax0rc...@btinternet.com wrote:
 You appear to be using the wrong URLs. Specify a version number and this will 
 go away.

 Rather than http://api.twitter.com/account/rate_limit_status.json;

 use

 http://api.twitter.com/account/1/rate_limit_status.json;

 On 12 Apr 2011, at 16:06, impeto wrote:







  :) Ok, authenticated means what it means in the context of the API
  calls. I am a developer, I make the difference. Perhaps I wasn't too
  clear: first I used cURL to call http://api.twitter.com/account/
  rate_limit_status.json anonymously, no oauth tokens, nothing, and I
  got 150. Then I used a CodeIgniter Twitter library from here
 https://github.com/elliothaughin/codeigniter-twitterto authenticate
  and make the call to account/verify_credentials and to account/
  rate_limit_status. I got my account info ok, which means that the
  request was authenticated, but the rate limit was still 150 but with
  less remaining request (2 to be exact).

  There is no question about whether or not I am authenticated, because
  I call other API resources that require authentication and I always
  get the data with a 200 http status header, but the maximum hourly
  requests stay at 150 and the remaining requests go down after each
  call. I'm guessing that it may not stop at 150 on authenticated
  requests but I'd hate to have to sit here and click through my app 150
  times to find out.

  Alin

  PS Why would you think I was talking about signing in on twitter.com
  when I was talking about verifying credential?

  On Apr 11, 10:11 pm, Arnaud Meunier arn...@twitter.com wrote:
  Hey Alin,

  What do you mean by *I authenticated, verified the credentials and **
  queried*? In this context (API call) authenticating means signing your
  request using OAuth. Signing-in with your account on twitter.com is a
  completely different thing and has no effect on your API requests.

  Arnaud / @rno http://twitter.com/rno

  On Mon, Apr 11, 2011 at 12:48 PM, impeto impet...@gmail.com wrote:
  Hey guys,

  maybe this question has been asked before, but I just joined the
  group. I just ran into a little problem that threw me off. I'm
  developing a website that uses the REST API extensively. The
  documentation says that anonymous requests get limited to 150 requests/
  hour/IP and authenticated requests get limited to 350 requests/hour/
  user. I did the anonymous request to account/rate_limit_status and I
  got 150; and then I authenticated, verified the credentials and
  queried account/rate_limit_status again. Got the same result. Why is
  that? When you are authenticated, aren't you supposed to get 350 back
  from account/rate_limit_status?

  Thanks in advance.

  Alin

  --
  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: Auto updates to twitter page

2011-04-12 Thread Pavan
Thanks for the info Mohan.
Hers is my requirement..
As I said earlier, there'll be a twitter icon on my application(WWTS
Application). If content editor of my application edits this info, saves it
and clicks on it, it should redirect to http://www.twitter.com/pwc_WWTS and
should auto post the update here.

Pla let me know if this can be achievable.  Thanks..

Warm Regards,
Pavan.
Ph: 91-9731077222
On 12 Apr 2011 15:14, L. Mohan Arun mar...@gmail.com wrote:

-- 
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] Users/Lookup

2011-04-12 Thread Gabe
Hi,
I have read all the users/lookup related posts and also scoured the
internet looking for an appropriate example.I posted a question as a
reply on one but don't see it so I am hoping someone can help a
twitter api newbie.

I just want to get results from users/lookup. I am using Abraham's
Oauth library, which I have been able to get to work in other
instances with no problems. I'm hoping it's my lack of understanding
of how the syntax should be. Here is the code:

  // all values populated correctly
  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$OAuthKey, $OAuthSecret);
  // saw this example as correction of the following line; neither
seems to work
  $userDeets = $connection-get('/users/lookup.json',
array('screen_name' = 'biz,twitterapi'));
 // $userDeets = $connection-get('/users/lookup.json?
screen_name=biz,twitterapi');

  foreach ($userDeets as $item)
{
  echo $item-followers_count;
  echo br;
}

Thanks in advance for any insight.

-Gabe

-- 
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: users/lookup.json

2011-04-12 Thread Gabe
If anyone can help me I would SO appreciate. I have successfully used
Abraham's Twitter Oauth in the past, yet I am relatively new to
Twitter API programming. I am trying to use users/lookup and
understand that it has to be authenticated. I am not getting results
and I have searched for clear examples but haven't found any,

I think it is partly because I don't understand how to use the syntax.
(That's why I like examples.) Anyway the code is here:

 $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$OAuthKey, $OAuthSecret);
  // saw this example somewhere
  $userDeets = $connection-get('/users/lookup.json',
array('screen_name' = 'biz,twitterapi'));
  // neither method seems to work. Advice on which one to use would
also be nice.
 // $userDeets = $connection-get('/users/lookup.json?
screen_name=biz,twitterapi');

  foreach ($userDeets as $item)
{
  echo $item-followers_count;
  echo br;
}

Again I'm hoping it's just something stupid syntactically that I'm
doing. -Gabe


On Mar 6, 1:13 pm, Randolph Estebat raeste...@gmail.com wrote:
 Naresh -- users/lookup requires authentication. You would need to OAuth with
 Twitter for you to get this API working.









 On Sat, Mar 5, 2011 at 11:04 AM, Naresh naresh.jonn...@gmail.com wrote:
  hi!
  i am very new to twitter API.
  my question is:
 http://api.twitter.com/1/users/lookup.json?user_id=1401881,1401882
  this is example url of twitter, it never works.
  and it returns

  {

     * request: /1/users/lookup.json?user_id=1401881,1401882
     * error: Could not authenticate you.

  }

  could you tell me, how to get friends info, like name, thum,...etc

  thanx

  -
  naresh jonnala.

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

 --
 Randolph Estebat

-- 
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] Users/Lookup

2011-04-12 Thread Abraham Williams
Try:

$userDeets = $connection-get('users/lookup' array('screen_name' =
'biz,twitterapi'));

That should work.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
http://abrah.amJust launched from Answerly http://answerly.com:
InboxQhttp://inboxq.comfor Chrome
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Tue, Apr 12, 2011 at 12:15, Gabe oneill.g...@gmail.com wrote:

 Hi,
 I have read all the users/lookup related posts and also scoured the
 internet looking for an appropriate example.I posted a question as a
 reply on one but don't see it so I am hoping someone can help a
 twitter api newbie.

 I just want to get results from users/lookup. I am using Abraham's
 Oauth library, which I have been able to get to work in other
 instances with no problems. I'm hoping it's my lack of understanding
 of how the syntax should be. Here is the code:

  // all values populated correctly
  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
 $OAuthKey, $OAuthSecret);
  // saw this example as correction of the following line; neither
 seems to work
  $userDeets = $connection-get('/users/lookup.json',
 array('screen_name' = 'biz,twitterapi'));
  // $userDeets = $connection-get('/users/lookup.json?
 screen_name=biz,twitterapi');

  foreach ($userDeets as $item)
{
  echo $item-followers_count;
  echo br;
}

 Thanks in advance for any insight.

 -Gabe

 --
 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: Users/Lookup

2011-04-12 Thread Gabe
Neither works. Am I processing the results correctly?

On Apr 12, 3:25 pm, Abraham Williams 4bra...@gmail.com wrote:
 Try:

 $userDeets = $connection-get('users/lookup' array('screen_name' =
 'biz,twitterapi'));

 That should work.

 Abraham
 -
 Abraham Williams | Hacker Advocate | abrah.am
 http://abrah.amJust launched from Answerly http://answerly.com:
 InboxQhttp://inboxq.comfor Chrome
 @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.







 On Tue, Apr 12, 2011 at 12:15, Gabe oneill.g...@gmail.com wrote:
  Hi,
  I have read all the users/lookup related posts and also scoured the
  internet looking for an appropriate example.I posted a question as a
  reply on one but don't see it so I am hoping someone can help a
  twitter api newbie.

  I just want to get results from users/lookup. I am using Abraham's
  Oauth library, which I have been able to get to work in other
  instances with no problems. I'm hoping it's my lack of understanding
  of how the syntax should be. Here is the code:

   // all values populated correctly
   $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
  $OAuthKey, $OAuthSecret);
   // saw this example as correction of the following line; neither
  seems to work
   $userDeets = $connection-get('/users/lookup.json',
  array('screen_name' = 'biz,twitterapi'));
   // $userDeets = $connection-get('/users/lookup.json?
  screen_name=biz,twitterapi');

   foreach ($userDeets as $item)
     {
       echo $item-followers_count;
       echo br;
     }

  Thanks in advance for any insight.

  -Gabe

  --
  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] Problem with twitter API

2011-04-12 Thread Marco
Hi
I'm writing some SW who interact with twitter and some other social
network.I've to request some information(with the autentication) to
twitter profiles.Specifically i'd like to recover the email address of
the user and also the email address of his friend.I've seen how i can
autenticate with OAUTH and how recover some user profile
inormation,but i haven't found nothing about the email address.
Can you help me??
Thanks
Marco

-- 
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: Get user email from twitter

2011-04-12 Thread Marco
But with an autorization is possible???

On 12 Apr, 11:51, L. Mohan Arun mar...@gmail.com wrote:
 On Apr 11, 12:10 pm, Akhil neeraj.shukla2...@gmail.com wrote:

  Is it possible to get user email after logged by oauth? if possible
  then then how can i do this?

 Allowin' users of twitter api to get user's email address will expose
 those users to receive spam emails. So it will not be possible to
 expose it.

 - Mohanhttp://twitter.com/437341

-- 
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: Users/Lookup

2011-04-12 Thread Gabe
Thanks to Abraham for reminding me about var_dump which showed the
results as NULL.

At risk of outing myself as stupid I will do so anyway in case there
might be someone out there who has also been searching for how to do
this, from start to finish.

This code works. The stupid part was not putting the entire URL in the
get statement. I was errantly going by a different example. Assuming
you are familiar with Abraham's Oauth library,

  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$OAuthKey, $OAuthSecret);
  $userDeets = $connection-get('http://api.twitter.com/1/users/
lookup.json', array('screen_name' = 'biz, twitterapi'));

  //var_dump($userDeets);

  foreach ($userDeets as $item)
{
  echo $item-screen_name . : ;
  echo $item-followers_count;
  echo br;
}


On Apr 12, 3:31 pm, Gabe oneill.g...@gmail.com wrote:
 Neither works. Am I processing the results correctly?

 On Apr 12, 3:25 pm, Abraham Williams 4bra...@gmail.com wrote:







  Try:

  $userDeets = $connection-get('users/lookup' array('screen_name' =
  'biz,twitterapi'));

  That should work.

  Abraham
  -
  Abraham Williams | Hacker Advocate | abrah.am
  http://abrah.amJust launched from Answerly http://answerly.com:
  InboxQhttp://inboxq.comfor Chrome
  @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.

  On Tue, Apr 12, 2011 at 12:15, Gabe oneill.g...@gmail.com wrote:
   Hi,
   I have read all the users/lookup related posts and also scoured the
   internet looking for an appropriate example.I posted a question as a
   reply on one but don't see it so I am hoping someone can help a
   twitter api newbie.

   I just want to get results from users/lookup. I am using Abraham's
   Oauth library, which I have been able to get to work in other
   instances with no problems. I'm hoping it's my lack of understanding
   of how the syntax should be. Here is the code:

    // all values populated correctly
    $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
   $OAuthKey, $OAuthSecret);
    // saw this example as correction of the following line; neither
   seems to work
    $userDeets = $connection-get('/users/lookup.json',
   array('screen_name' = 'biz,twitterapi'));
    // $userDeets = $connection-get('/users/lookup.json?
   screen_name=biz,twitterapi');

    foreach ($userDeets as $item)
      {
        echo $item-followers_count;
        echo br;
      }

   Thanks in advance for any insight.

   -Gabe

   --
   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: Get user email from twitter

2011-04-12 Thread Taylor Singletary
Email address will not returned to your from the Twitter API, whether you've
authenticated a user or not -- it's not part of the package.

If you'd like the user's email address, kindly ask for it in your
application -- but I'd recommending having a related privacy policy in
place.

@episod http://twitter.com/episod - Taylor Singletary


On Tue, Apr 12, 2011 at 12:58 PM, Marco marco.ciab...@gmail.com wrote:

 But with an autorization is possible???

 On 12 Apr, 11:51, L. Mohan Arun mar...@gmail.com wrote:
  On Apr 11, 12:10 pm, Akhil neeraj.shukla2...@gmail.com wrote:
 
   Is it possible to get user email after logged by oauth? if possible
   then then how can i do this?
 
  Allowin' users of twitter api to get user's email address will expose
  those users to receive spam emails. So it will not be possible to
  expose it.
 
  - Mohanhttp://twitter.com/437341

 --
 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: The thinking behind not drawing attention to Unfollows?

2011-04-12 Thread Brian Sutorius
For a little clarification, this policy item was added to our API
Terms of Service with the release of our User Streams and Site Streams
products. Both streams deliver negative events such as unfollows and
unfavorites as distinct objects in the streams, so apps can adjust in
real-time. This policy is intended to prevent the broadcast of these
events to the end-user as notifications that the event happened.

In general, reporting who has unfollowed User A back to User A through
derivative methods (such as comparing their current follower list to a
cached version) is discouraged, but not prohibited. That same user
could come to the same conclusions through a similar method. Following
the spirit of this policy item, though, you may not broadcast these
kinds of events to other users (i.e. you may not show User C that User
B unfollowed User A).

As always, if you have any questions about our policies, you can email
a...@twitter.com.
Brian Sutorius
Twitter API Policy


On Apr 11, 4:47 pm, Whonew haag.j...@gmail.com wrote:
 I just wanted to make clear that I was in no way questioning the rule.

 I was just curious about the reasoning behind it, from Twitter's POV.

 I, of course, came to the same logical conclusion that you did, Nick.
 That it was simply to maintain a positive atmosphere and avoid
 contention.

 Thanks for your thoughtful replies.

  - John

 On Apr 9, 8:51 pm, nickmilon nickmi...@gmail.com wrote:



  The intentions behind the rule is good, but what about the following
  list of applications (and many more) that do not respect the TOS ?

 http://mashable.com/2010/08/09/track-twitter-unfollowers/

  happy coding :-)
  Nick

  On Apr 9, 5:05 am, Nicholas Chase nch...@earthlink.net wrote:

    From a user perspective, I think it's good to know that you can
   unfollow someone without them noticing, so you don't hurt their
   feelings.  The last thing that Twitter wants is to be linked to hard
   feelings between people.

   But that's just my opinion.  YMMV, but I wouldn't be surprised if that
   were the reason.

     Nick

   On 4/8/2011 9:57 PM, Whonew wrote:

Could someone from the Twitter staff go into some detail about why the
Terms of Service stress not drawing attention to user's Unfollows?

I have no particular interest in doing so; but I have been struggling
to figure out why as I'm certain that many users would like to know
without jumping through hoops.

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


Re: [twitter-dev] how do i know that a tweet i posted in twitter from my rails application?

2011-04-12 Thread Arnaud Meunier
Hey Anu,

The tweet button currently doesn't support callbacks. However, there's this
Enhancement ticket you can vote for:
http://code.google.com/p/twitter-api/issues/detail?id=1835

Arnaud / @rno http://twitter.com/rno



On Mon, Apr 11, 2011 at 10:39 PM, anu anu...@gmail.com wrote:

 Hi all,

 I am sharing the posts made in my rails application in twitter. Here
 is the code I am using:

 div id=custom-tweet-button
a href=http://twitter.com/share?url=[url_value in this
 palce]text=This is a test target=_blank
   %=image_tag(../images/share_icons/
 share_this_on_twitter.png, :id=twitshare, :border = 0) %
/a
 /div

 When the user clicks on the twitter sharing image, another window will
 open in which it asks the user to login to twitter if he is not
 already logged in. Then after that tweet box will appear there with
 text populated in it. The user can click the tweet button there and
 the tweet will be posted in the logged in twitter account and a
 confirmation message will be displayed in this window and the window
 will be closed in few seconds. But my problem is this: How does my
 application know that the tweet is posted in twitter? the application
 needs to give some rewards to the user upon successful tweets in
 twitter.

 Any help?

 Thanks,

 Anu

 --
 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: Get friends who registered on my website?

2011-04-12 Thread Ig0r
Anyone have any thoughts on this?
Please guys...


Thanks once again!


On Apr 10, 5:33 pm, Ig0r ryzhkov.i...@gmail.com wrote:
 Hello I'm coding one website which need a Find your Twitter friends
 here functionality.
 What is the best way to do it?

 At first I've decided to get user friends list. Then get 'name' of
 friends. And check that field in my website database. If names are the
 same - It's a possible users friend.

 There are 2 major problems with this approach:
 1) not all users fill their correct names and surnames in twitter and
 other websites + If users name is too common - we will grab too many
 false results.
 2) I can't get all of users friends:
 First I recursively get friends/ids 5000 ids at once.
 after that I make a call to users/lookup - 100 ids at once.
 My servers fail somewhere at users/lookup iterations. And I'm testing
 on user with ~5000 friends.

 Is there any way to get user friends bulk information? Or maybe check
 from a list of users who already use my twitter app? Is that possible?

 Thank you very much!

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


Re: [twitter-dev] Re: Get friends who registered on my website?

2011-04-12 Thread Nicholas Chase
I would store the Twitter username and id for all of your users.  Then 
you should be able to correlate them from within your own system rather 
than constantly doing lookups.


  Nick

On 4/12/2011 7:20 PM, Ig0r wrote:

Anyone have any thoughts on this?
Please guys...


Thanks once again!


On Apr 10, 5:33 pm, Ig0rryzhkov.i...@gmail.com  wrote:

Hello I'm coding one website which need a Find your Twitter friends
here functionality.
What is the best way to do it?

At first I've decided to get user friends list. Then get 'name' of
friends. And check that field in my website database. If names are the
same - It's a possible users friend.

There are 2 major problems with this approach:
1) not all users fill their correct names and surnames in twitter and
other websites + If users name is too common - we will grab too many
false results.
2) I can't get all of users friends:
First I recursively get friends/ids 5000 ids at once.
after that I make a call to users/lookup - 100 ids at once.
My servers fail somewhere at users/lookup iterations. And I'm testing
on user with ~5000 friends.

Is there any way to get user friends bulk information? Or maybe check
from a list of users who already use my twitter app? Is that possible?

Thank you very much!


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