[twitter-dev] Unable to retweet using statuses/retweet

2011-04-20 Thread Adam Green
I'm trying to build some retweeting code and am unable to get /
statuses/retweet to work. I keep getting an error of:
{"request":"\/1\/statuses\/retweet.json","error":"Not found"}

I thought I may have been doing something incorrect, even though I
used exactly the same code format that I use for other OAuth REST
calls that worked correctly, such as statuses/destroy.

I then tried the API console example in the API docs, and got the same
error, and this was with the canned arguments, so it couldn't be my
code.

So I'm wondering if there is some documentation error and this API
call has changed. The fact that the doc page incorrectly says
authentication isn't needed doesn't give me a lot of confidence as
well.

Can someone tell me what API call they use to do a retweet?

-- 
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] Streaming API statuses/fileter method, "follow" parameter

2011-04-20 Thread Arnaud Meunier
With the "follow" parameter, you should only get "real" replies & retweets.
If you need to track all mentions, try the "track" parameter (i.e.
track=@user)

Arnaud / @rno 



On Tue, Apr 19, 2011 at 9:35 PM, Kumar  wrote:

> Hi All,
>
> The streaming api documentation says that mentions, implicit retweets
> and implicit replies will NOT be returned. However, it looks like they
> are being returned. For our application we do need to keep track of
> mentions and the streaming api seems to work fine. Can we rely on it
> being present always? Is the documentation dated and need to be
> updated?
>
> Thanks,
> Kumar.
>
> -
> http://dev.twitter.com/pages/streaming_api_methods#follow
>
> References unmatched are statuses that were:
> Mentions (“Hello @user!”)
> Implicit retweets (“RT @user Says Helloes” without pressing a retweet
> button)
> Implicit replies (“@user Hello!”, created without pressing a reply
> “swoosh” button to set the in_reply_to field)
>
> ---
>
> --
> 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] Prepackaged Twitter App in Handsets

2011-04-20 Thread Taylor Singletary
While you'll find most applications on handsets communicate with
api.twitter.com, search.twitter.com, and twitter.com directly -- there are
likely a handful of applications that communicate with a proxy server of
some kind as an intermediary between the device and Twitter.

If they're talking directly to Twitter though, they'll be doing so through
HTTP.

@episod  - Taylor Singletary


On Wed, Apr 20, 2011 at 12:35 PM, sunderjs  wrote:

> Hello,
>
> I'm working on implementing mobile data plans for social networking
> sites including Twitter. Requirement is to identify Twitter traffic
> from mobile devices and charge distinctively from other data packets.
> Since there are different ways that Twitter can be accessed from a
> mobile device (browser, client app, embedded links etc), i would like
> to know the possible patterns that i should identify. Clients using
> standard Twitter APIs would be RESTful and generating HTTP traffic
> eventually. Question is does the prepackaged client apps (such as HTC
> Sense, SE Timescape, Moto Blur, Samsung Social Hub etc ) also use
> public Twitter APIs ? Or is it a different arrangement altogether.
>
> thanks
> Sunderjeet
>
> --
> 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] Prepackaged Twitter App in Handsets

2011-04-20 Thread sunderjs
Hello,

I'm working on implementing mobile data plans for social networking
sites including Twitter. Requirement is to identify Twitter traffic
from mobile devices and charge distinctively from other data packets.
Since there are different ways that Twitter can be accessed from a
mobile device (browser, client app, embedded links etc), i would like
to know the possible patterns that i should identify. Clients using
standard Twitter APIs would be RESTful and generating HTTP traffic
eventually. Question is does the prepackaged client apps (such as HTC
Sense, SE Timescape, Moto Blur, Samsung Social Hub etc ) also use
public Twitter APIs ? Or is it a different arrangement altogether.

thanks
Sunderjeet

-- 
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: error 401 failed oauth_signature and token / javascript - qml

2011-04-20 Thread Matt Harris
Hey,

Looking at your example basestring it looks like you have your OAuth steps 
confused. In your example you are sending an oauth_token with your request to 
/oauth/request_token when you shouldn't be.

You can read more on the OAuth flow on our developer site:
http://dev.twitter.com/pages/auth

The specific section about request_token is here:
http://dev.twitter.com/pages/auth#request-token

Best
@themattharris

On Apr 20, 2011, at 9:10, galeyte  wrote:

> Is it possible to have any help ?
> here is the base string i'm generating :
> 
> POST&https%3A%2F%2Fapi.twitter.com%2Foauth
> %2Frequest_token&oauth_callback%3Dhttp%253A%252F%252Flocalhost
> %253A3005%252Fthe_dance%252Fprocess_callback%253Fservice_provider_id
> %253D11%26oauth_consumer_key%3DVqqupffO63SXe1pt70gqDA%26oauth_nonce
> %3DbIMeZu%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
> %3D1303315938%26oauth_token%3D278460982-
> BLIgYJ81sbHYUYg9JYodKM75fxCM1v1NrG9GuzIJ%26oauth_version%3D1.0
> 
> the signature :
> 2sxwv2R1Q+taksgof+QGFlUwqmw=
> 
> and the "AUTHORIZATION" header field i'm transmiting to
> https://api.twitter.com/oauth/request_token :
> 
> OAuth oauth_nonce="bIMeZu",oauth_callback="http%3A%2F%2Flocalhost
> %3A3005%2Fthe_dance%2Fprocess_callback%3Fservice_provider_id
> %3D11",oauth_signature_method="HMAC-
> SHA1",oauth_timestamp="1303315938",oauth_consumer_key="VqqupffO63SXe1pt70gqDA",oauth_signature="2sxwv2R1Q
> %2Btaksgof%2BQGFlUwqmw%3D",oauth_version="1.0"
> 
> I'm still getting the same response whereas the tools i check my work
> with say my basestring and signature are ok.
> 
> Thanks.
> 
> On 19 avr, 18:01, galeyte  wrote:
>> Hi again,
>> 
>> So i've deleted my previous code, and started again to respect
>> twitter's doc and oauth thing i've seen before.
>> Here is my new code, header-based, calling the good endpoint url :
>> 
>> function getSignature() {
>> var nonce = OAuth.nonce(31);
>> var time = OAuth.timestamp();
>> var parameters = ["oauth_token="+oauth_token,
>> "oauth_consumer_key="+consumer_key, "oauth_nonce="+nonce,
>> "oauth_signature_method=HMAC-SHA1",
>> "oauth_timestamp="+time,"oauth_version=1.0"];
>> parameters = parameters.sort();
>> var join = parameters.join("&");
>> var joindparameters = encodeURIComponent(join);
>> var baseString = "POST&"+encodeURIComponent(request_token_url)+
>> "&" + joindparameters;
>> var signature = b64_hmac_sha1(consumer_secret + "&" +
>> oauth_token_secret, baseString);
>> console.log(signature);
>> request_maker = new XMLHttpRequest();
>> request_maker.open("POST", request_token_url);
>> request_maker.setRequestHeader("Content-Type", "application/x-www-
>> form-urlencoded");
>> request_maker.onreadystatechange = oth_func;
>> var data = "OAuth oauth_nonce=\""+nonce+"\",
>> oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\""+time+"\",
>> oauth_consumer_key=\""+consumer_key+"\", oauth_signature=
>> \""+encodeURIComponent(signature)+"\", oauth_version=\"1.0\"";
>> console.log(data);
>> request_maker.setRequestHeader("Authorization", data);
>> request_maker.send();
>> 
>> }
>> 
>> I'm totally sure about my basestring and my signature (checked 
>> withhttp://oauth.googlecode.com/svn/code/javascript/example/signature.html)
>> I've tried with 2 composite signing key :
>> first : consumer_secret + "&" + oauth_token_secret
>> second: consumer_secret + "&"
>> but it did not change anything.
>> 
>> On Apr 19, 3:47 pm, galeyte  wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> And i stop using OAuth javascript library, and i'm getting the same
>>> basestring and signature as oauth library examples
>> 
>>> Here is the authorization header i send :
>>> OAuth realm='', oauth_nonce=1W3hagbtydTy8GBfkqxS3imJUDUfINi,
>>> oauth_timestamp=1303220837, oauth_consumer_key=[CONSUMER_KEY],
>>> oauth_signature_method=HMAC-SHA1, oauth_version=1.0,
>>> oauth_signature=ik0d0OV6JzLxQ/yeddowfSQCQgg=
>> 
>>> On 19 avr, 14:44, galeyte  wrote:
>> 
 Ok so i've stopped using OAuth javascript library
>> 
 Here is my new code :
 function getSignature() {
 var nonce = OAuth.nonce(31);
 var time = OAuth.timestamp();
 var parameters = [encodeURIComponent("oauth_token="+oauth_token),
 encodeURIComponent("oauth_consumer_key="+consumer_key),
 encodeURIComponent("oauth_nonce="+nonce),
 encodeURIComponent("oauth_signature_method=HMAC-
 SHA1"),encodeURIComponent("oauth_timestamp="+time),
 encodeURIComponent("oauth_version=1.0")];
 parameters = parameters.sort();
 var join = parameters.join("&");
 var joindparameters = encodeURIComponent(join);
 var baseString = "POST&"+encodeURIComponent(request_token_url)+
 "&" + joindparameters;
 console.log("baseString = " + baseString);
 var signature = b64_hmac_sha1(consumer_secret +
 "&"+oauth_token_secret, baseString);
 console.log(signature);
 request_maker = new XMLHttpRequest(

Re: [twitter-dev] 3 questions (include_entities=false; states; most recent status)

2011-04-20 Thread Arnaud Meunier
Hey Jovan,

1) "include_entities" controls Tweet Entities output (in the status object).
For some User accounts, we're also testing & outputting User Entities (for
the description attribute). The "include_entities" parameter doesn't affect
the output of these User Entities.

2) The Status object included in users/show is the user's last tweet. Now if
you really need to get a user's last tweet (caching issues can happen) use
the "statuses/user_timeline" method.

3) We're working on this one, thanks for reporting.

Arnaud / @rno 



On Wed, Apr 20, 2011 at 2:14 AM, jovandoj  wrote:

> Hi everybody,
>
> I started developing a twitter application and I bumped into 3 issues:
> 1. When I send a request like the following:
>
> http://api.twitter.com/1/users/show.json?screen_name=someScreenName&include_entities=false
> ,if one of hashtags, usermentions or urls are not empty in the most
> recent status message, I get the "entities" JSON object although I
> specifically say "include_entities=false"
> Is this a bug, or am I doing something wrong?
> 2. How long lasts the "...most recent status..." (http://
> dev.twitter.com/doc/get/users/show) ?
> 3. Sometimes twitter sends back "states" when doing a users/show.
> Where can I read about this property (nothing available on docs)?
> In this "states" JSON object we get:
> bouncing_email
> detached_email
> needs_employee_email_update
> suspended
> pending_email
>
> Cheers,
> Jovan
>
> --
> 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] statuses/retweets_of_me does not work properly

2011-04-20 Thread Arnaud Meunier
Hey Ozgur,

This is not specific to the retweets_of_me method. We do have an issue with
the retweet_count, and we're looking into it. You can follow the issue
here: http://code.google.com/p/twitter-api/issues/detail?id=2141

Arnaud / @rno 



On Wed, Apr 20, 2011 at 5:05 AM, Ozgur  wrote:

> Hi everyone,
>
> I'm coding an app that users will see their own retweets that other
> users have retweeted. I call
> http://api.twitter.com/1/statuses/retweets_of_me.json
> url for this operation but when i look at the response i always see
> retweet_count field as 0, i also use trim_user parameter but again the
> response does not include any extra information about the users that
> retweeted.
>
> Is there problem with this method? could you know another solution for
> learning retweet count of tweet.
>
> Thanks.
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

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


[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml

2011-04-20 Thread galeyte
Is it possible to have any help ?
here is the base string i'm generating :

POST&https%3A%2F%2Fapi.twitter.com%2Foauth
%2Frequest_token&oauth_callback%3Dhttp%253A%252F%252Flocalhost
%253A3005%252Fthe_dance%252Fprocess_callback%253Fservice_provider_id
%253D11%26oauth_consumer_key%3DVqqupffO63SXe1pt70gqDA%26oauth_nonce
%3DbIMeZu%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1303315938%26oauth_token%3D278460982-
BLIgYJ81sbHYUYg9JYodKM75fxCM1v1NrG9GuzIJ%26oauth_version%3D1.0

the signature :
2sxwv2R1Q+taksgof+QGFlUwqmw=

and the "AUTHORIZATION" header field i'm transmiting to
https://api.twitter.com/oauth/request_token :

OAuth oauth_nonce="bIMeZu",oauth_callback="http%3A%2F%2Flocalhost
%3A3005%2Fthe_dance%2Fprocess_callback%3Fservice_provider_id
%3D11",oauth_signature_method="HMAC-
SHA1",oauth_timestamp="1303315938",oauth_consumer_key="VqqupffO63SXe1pt70gqDA",oauth_signature="2sxwv2R1Q
%2Btaksgof%2BQGFlUwqmw%3D",oauth_version="1.0"

I'm still getting the same response whereas the tools i check my work
with say my basestring and signature are ok.

Thanks.

On 19 avr, 18:01, galeyte  wrote:
> Hi again,
>
> So i've deleted my previous code, and started again to respect
> twitter's doc and oauth thing i've seen before.
> Here is my new code, header-based, calling the good endpoint url :
>
> function getSignature() {
>     var nonce = OAuth.nonce(31);
>     var time = OAuth.timestamp();
>     var parameters = ["oauth_token="+oauth_token,
> "oauth_consumer_key="+consumer_key, "oauth_nonce="+nonce,
> "oauth_signature_method=HMAC-SHA1",
> "oauth_timestamp="+time,"oauth_version=1.0"];
>     parameters = parameters.sort();
>     var join = parameters.join("&");
>     var joindparameters = encodeURIComponent(join);
>     var baseString = "POST&"+encodeURIComponent(request_token_url)+
> "&" + joindparameters;
>     var signature = b64_hmac_sha1(consumer_secret + "&" +
> oauth_token_secret, baseString);
>     console.log(signature);
>     request_maker = new XMLHttpRequest();
>     request_maker.open("POST", request_token_url);
>     request_maker.setRequestHeader("Content-Type", "application/x-www-
> form-urlencoded");
>     request_maker.onreadystatechange = oth_func;
>     var data = "OAuth oauth_nonce=\""+nonce+"\",
> oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\""+time+"\",
> oauth_consumer_key=\""+consumer_key+"\", oauth_signature=
> \""+encodeURIComponent(signature)+"\", oauth_version=\"1.0\"";
>     console.log(data);
>     request_maker.setRequestHeader("Authorization", data);
>     request_maker.send();
>
> }
>
> I'm totally sure about my basestring and my signature (checked 
> withhttp://oauth.googlecode.com/svn/code/javascript/example/signature.html)
> I've tried with 2 composite signing key :
> first : consumer_secret + "&" + oauth_token_secret
> second: consumer_secret + "&"
> but it did not change anything.
>
> On Apr 19, 3:47 pm, galeyte  wrote:
>
>
>
>
>
>
>
> > And i stop using OAuth javascript library, and i'm getting the same
> > basestring and signature as oauth library examples
>
> > Here is the authorization header i send :
> > OAuth realm='', oauth_nonce=1W3hagbtydTy8GBfkqxS3imJUDUfINi,
> > oauth_timestamp=1303220837, oauth_consumer_key=[CONSUMER_KEY],
> > oauth_signature_method=HMAC-SHA1, oauth_version=1.0,
> > oauth_signature=ik0d0OV6JzLxQ/yeddowfSQCQgg=
>
> > On 19 avr, 14:44, galeyte  wrote:
>
> > > Ok so i've stopped using OAuth javascript library
>
> > > Here is my new code :
> > > function getSignature() {
> > >     var nonce = OAuth.nonce(31);
> > >     var time = OAuth.timestamp();
> > >     var parameters = [encodeURIComponent("oauth_token="+oauth_token),
> > > encodeURIComponent("oauth_consumer_key="+consumer_key),
> > > encodeURIComponent("oauth_nonce="+nonce),
> > >         encodeURIComponent("oauth_signature_method=HMAC-
> > > SHA1"),encodeURIComponent("oauth_timestamp="+time),
> > > encodeURIComponent("oauth_version=1.0")];
> > >     parameters = parameters.sort();
> > >     var join = parameters.join("&");
> > >     var joindparameters = encodeURIComponent(join);
> > >     var baseString = "POST&"+encodeURIComponent(request_token_url)+
> > > "&" + joindparameters;
> > >     console.log("baseString = " + baseString);
> > >     var signature = b64_hmac_sha1(consumer_secret +
> > > "&"+oauth_token_secret, baseString);
> > >     console.log(signature);
> > >     request_maker = new XMLHttpRequest();
> > >     request_maker.open("POST", request_token_url);
> > >     var data = "OAuth realm='', oauth_nonce="+nonce+",
> > > oauth_timestamp="+time+", oauth_consumer_key="+consumer_key+",
> > > oauth_signature_method=HMAC-SHA1, oauth_version=1.0,
> > > oauth_signature="+signature;
> > >     console.log(data);
> > >     request_maker.setRequestHeader("Authorization", data);
> > >     request_maker.onreadystatechange = oth_func;
> > >     request_maker.send();
>
> > > }
>
> > > and here is the BaseString it generates :
> > > POST&https%3A%2F%2Fapi.twitter.com%2Foauth
> > >

Re: [twitter-dev] result popular

2011-04-20 Thread Taylor Singletary
If there are popular results to include in the query and you've specified
result_type=mixed or result_type=popular you should get popular results in
the API response.

For example:
curl "
http://search.twitter.com/search.json?q=twitter&count=4&result_type=mixed";
{
  "max_id": 60718586028752896,
  "results": [
{
  "created_at": "Tue, 19 Apr 2011 02:52:32 +",
  "profile_image_url": "
http://a0.twimg.com/profile_images/1298541872/tracy-morgan_normal.jpg";,
  "from_user_id_str": "222949271",
  "id_str": "60173910607536129",
  "from_user": "ImTracyMorgan",
  "text": "Facebook asks what I’m thinking. Twitter asks what I’m doing.
Foursquare asks where I am. The internet has turned into a crazy
girlfriend.",
  "to_user_id": null,
  "metadata": {
"recent_retweets": 3000,
"result_type": "popular"
  },
  "id": 60173910607536129,
  "geo": null,
  "from_user_id": 222949271,
  "iso_language_code": "en",
  "source": "web
;",
  "to_user_id_str": null
},
{
  "created_at": "Mon, 18 Apr 2011 20:15:24 +",
  "profile_image_url": "
http://a3.twimg.com/profile_images/1256175877/176406_1555413735274_1533120144_31155785_3673904_o_normal.jpg
",
  "from_user_id_str": "110265478",
  "id_str": "60073966752116736",
  "from_user": "WizardKellyYall",
  "text": "If it was a such thing called Black Twitter it would be
called "Twidda"",
  "to_user_id": null,
  "metadata": {
"recent_retweets": 600,
"result_type": "popular"
  },
  "id": 60073966752116736,
  "geo": null,
  "from_user_id": 110265478,
  "iso_language_code": "en",
  "source": "web
;",
  "to_user_id_str": null
},
{
  "created_at": "Mon, 18 Apr 2011 22:53:25 +",
  "profile_image_url": "
http://a3.twimg.com/profile_images/1258281289/300px-Lordvoldemort_normal.jpg
",
  "from_user_id_str": "129340600",
  "id_str": "60113731371278336",
  "from_user": "Lord_Voldemort7",
  "text": "#relationshiptip101: If you need relationship tips from
twitter then you are doomed to be alone forever.",
  "to_user_id": null,
  "metadata": {
"recent_retweets": 1000,
"result_type": "popular"
  },
  "id": 60113731371278336,
  "geo": null,
  "from_user_id": 129340600,
  "iso_language_code": "en",
  "source": "web
;",
  "to_user_id_str": null
},
{
  "created_at": "Wed, 20 Apr 2011 14:56:53 +",
  "profile_image_url": "
http://a1.twimg.com/profile_images/1316870276/IMG02260-20110418-2211_normal.jpg
",
  "from_user_id_str": "193768125",
  "id_str": "60718586028752896",
  "from_user": "vaaaneeey",
  "text": "sip, tp gw bisanya greja ytg malem gbisa sore, gw les hehe RT
@feliciaivon: Gua tak ada pulsa @vaaaneeey , gu… (cont)
http://deck.ly/~9Pqcs";,
  "to_user_id": null,
  "metadata": {
"result_type": "recent"
  },
  "id": 60718586028752896,
  "geo": null,
  "from_user_id": 193768125,
  "iso_language_code": "es",
  "source": "TweetDeck",
  "to_user_id_str": null
},
{
  "created_at": "Wed, 20 Apr 2011 14:56:53 +",
  "profile_image_url": "
http://a2.twimg.com/profile_images/1200995180/Avatar_normal.jpg";,
  "from_user_id_str": "102169568",
  "id_str": "60718585974239233",
  "from_user": "ArnoMendoza",
  "text": "@anniieepolianni Bueno pero se entiende jeje... no sabia que
tenias twitter hahaha me hubieras dicho desde antes :P",
  "to_user_id": 240811959,
  "metadata": {
"result_type": "recent"
  },
  "id": 60718585974239233,
  "geo": null,
  "to_user": "anniieePolianni",
  "from_user_id": 102169568,
  "iso_language_code": "es",
  "source": "TweetDeck",
  "to_user_id_str": "240811959"
},
{
  "created_at": "Wed, 20 Apr 2011 14:56:53 +",
  "profile_image_url": "
http://a2.twimg.com/profile_images/1308101599/aaa_murri_normal.png";,
  "from_user_id_str": "272560507",
  "id_str": "60718585928093696",
  "from_user": "LanzaMyMaionese",
  "text": "GRRR ORKUT VAI SE ARROMBA PORRA. ~alok~ recebi um
e-mail do twitter .",
  "to_user_id": null,
  "metadata": {
"result_type": "recent"
  },
  "id": 60718585928093696,
  "geo": null,
  "from_user_id": 272560507,
  "iso_language_code": "es",
  "source": "web
;",
  "to_user_id_str": null
},
{
  "created_at": "Wed, 20 Apr 2011 14:56:53 +",
  "profile_image_url": "
http://a3.twimg.com/profile_images/1229827367/35436_139400446070109_10004646845_428367_187519_n_normal.jpg
",
  "from_user_id_str": "223079715",

[twitter-dev] Twitter API - How can my application follow 100,000 people??

2011-04-20 Thread QamarZ
Hi All,

Is there any API I can use in my application to follow (get tweets) of
almost all the people twittering over twitter?? Say, I wanted to get
tweets of 100,000 people, then what is the best way to do it in my
application??

I'm new to twitter development, please help..

Thanks,
QamarZ

-- 
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] 3 questions (include_entities=false; states; most recent status)

2011-04-20 Thread jovandoj
Hi everybody,

I started developing a twitter application and I bumped into 3 issues:
1. When I send a request like the following:
http://api.twitter.com/1/users/show.json?screen_name=someScreenName&include_entities=false
,if one of hashtags, usermentions or urls are not empty in the most
recent status message, I get the "entities" JSON object although I
specifically say "include_entities=false"
Is this a bug, or am I doing something wrong?
2. How long lasts the "...most recent status..." (http://
dev.twitter.com/doc/get/users/show) ?
3. Sometimes twitter sends back "states" when doing a users/show.
Where can I read about this property (nothing available on docs)?
In this "states" JSON object we get:
bouncing_email
detached_email
needs_employee_email_update
suspended
pending_email

Cheers,
Jovan

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

2011-04-20 Thread testprojectsnow
Can You Tell me about how can i get the user information.

-- 
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/retweets_of_me does not work properly

2011-04-20 Thread Ozgur
Hi everyone,

I'm coding an app that users will see their own retweets that other
users have retweeted. I call 
http://api.twitter.com/1/statuses/retweets_of_me.json
url for this operation but when i look at the response i always see
retweet_count field as 0, i also use trim_user parameter but again the
response does not include any extra information about the users that
retweeted.

Is there problem with this method? could you know another solution for
learning retweet count of tweet.

Thanks.

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


Re: [twitter-dev] Re: What does tweet id means?

2011-04-20 Thread Damon Clinkscales
On Wed, Apr 20, 2011 at 6:24 AM, Tim Meadowcroft  wrote:

>
> I think you can only really rely on IDs having different values.
>
> In general, at the moment with Twitter, you could assume they increase over
> time, but (and I don't work for Twitter) typically ID allocation on large
> multihost systems don't work by allocating strictly sequential IDs without
> gaps - it's too hard to sequence and not really necessary.
>

Yes, this is how they do it.

https://github.com/twitter/snowflake

/damon

-- 
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: What does tweet id means?

2011-04-20 Thread Tim Meadowcroft

I think you can only really rely on IDs having different values.

In general, at the moment with Twitter, you could assume they increase over 
time, but (and I don't work for Twitter) typically ID allocation on large 
multihost systems don't work by allocating strictly sequential IDs without 
gaps - it's too hard to sequence and not really necessary.

So, for example, one way is that you build a system that gives different 
ID-assigning-hosts small blocks of IDs that they can use so they can 
allocate a series of IDs knowing they're unique without having to take out 
any kind of global lock (they only take the lock to ask for a new block 
every now and then). Another approach might be to have clocks synchronised 
to some known accuracy and have IDs calculated as "period-since-epoch * 
some-suitable-multiplier + unique-offset-per-host + 
incrementing-counter-for-this-host". 

I'm sure people can come up with other schemes as quick as we could type 
them up, but in general you make your ID space many orders of magnitude 
bigger than you strictly need, and in return you gain some flexibility in 
the criteria needed for quick and cheap unique allocation in a distributed 
system. But I wouldn't assume that every possible ID value is necessarily 
allocated.

-- 
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] HTC Sense Twitter Application

2011-04-20 Thread santy
Hi

My name is santosh singh and i am from india, i had just purchased a
brand new htc desire phone last month i had tried to connect to
inbuild htc sense twitter application but whenever i login in to my
twitter account it shows me wrong username and password or its take a
ages to connect to the twitter ac has i had download the twitter
application for the market and its work fine but some how i can't
unable to connect through the htc sense twitter account is there any
protection or authentication from twitter for htc sense.

Please provided some help

Thanks
Santosh Singh

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


Re: [twitter-dev] Twitter API - Logout

2011-04-20 Thread Hola
sadly this is badly needed but not available
see 
https://groups.google.com/d/msg/twitter-development-talk/PH5HfT7SJqw/rtEzx-jrDQIJ

-- 
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 i can logout using oauth or rest api of twitter?

2011-04-20 Thread Hola
sadly this is badly needed but not available
see 
https://groups.google.com/d/msg/twitter-development-talk/PH5HfT7SJqw/rtEzx-jrDQIJ

-- 
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] Streaming API statuses/fileter method, "follow" parameter

2011-04-20 Thread Kumar
Hi All,

The streaming api documentation says that mentions, implicit retweets
and implicit replies will NOT be returned. However, it looks like they
are being returned. For our application we do need to keep track of
mentions and the streaming api seems to work fine. Can we rely on it
being present always? Is the documentation dated and need to be
updated?

Thanks,
Kumar.

-
http://dev.twitter.com/pages/streaming_api_methods#follow

References unmatched are statuses that were:
Mentions (“Hello @user!”)
Implicit retweets (“RT @user Says Helloes” without pressing a retweet
button)
Implicit replies (“@user Hello!”, created without pressing a reply
“swoosh” button to set the in_reply_to field)

---

-- 
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] What does tweet id means?

2011-04-20 Thread 亮亮 王
For example, I have one tweet created at  2011-02-24 09:08:30 , its id
is  40775075934244864
and another tweet created at 2011-02-24 09:08:31, its id is
40775079306604544

Does this mean that in just 1 second, there have been 3372359680
tweets sent? It seems very impossible.(3.3billion one second?)

   40775079306604544
-  40775075934244864

= 3372359680

If not, can somebody explain what the twitter id means?

-- 
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] result popular

2011-04-20 Thread mar heck
search on api not return result:popular ?

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