Re: [twitter-dev] Re: oAuth and applications that run in the background

2010-09-09 Thread Abraham Williams
You can use a consumer pair in multiple scripts. If they are posting tweets
keep in mind that it won't make sense to have Bob's Apple Stand posting
tweets for Pete's Orange Cart.

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


On Wed, Sep 8, 2010 at 21:52, marvMcK marvinmcklow...@gmail.com wrote:

 Abraham, thanks for the link. Just to be clear: I am assuming that
 CONSUMER_KEY, CONSUMER_SECRET are specific to one application, but I
 can use them with ANY application, or do I have to register each
 application (in this case PHP script), and use the keys specific to
 it?

 On Sep 8, 8:40 pm, Abraham Williams 4bra...@gmail.com wrote:
  Here is some more info about using an access token for a single account:
 http://dev.twitter.com/pages/oauth_single_token
 
  Abraham
  -
  Abraham Williams | Hacker Advocate |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.
 
  On Wed, Sep 8, 2010 at 20:34, Cameron Kaiser spec...@floodgap.com
 wrote:
I have an application (PHP script), that runs as a CRON job on a
 Linux
server. It uses cURL and basic authentication to retrieve users
profiles and statuses.
 
Now that basic authentication is no longer supported, I need to
 switch
to oAuth, but with oAuth, there's a level of interactivity with
Twitter, to login. This is not an option for this script, since it
 has
no user interface.
 
Any ideas how to proceed?
 
   You need to get your own app key and token from dev.twitter.com. With
   that,
   you can plug it into any number of OAuth tools. Since you are using
 PHP,
   Abraham's Twitteroauth would be the best bet (see
 
  http://github.com/abraham/twitteroauth
 
   ).
 
   --
    personal:
  http://www.cameronkaiser.com/--
Cameron Kaiser * Floodgap Systems *www.floodgap.com*
   ckai...@floodgap.com
   -- FORTUNE: You will feel gypped by this fortune.
   -
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

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


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


Fwd: [twitter-dev] Twitter share button fails to parse url with +

2010-09-09 Thread Eugene Poponin
-- Forwarded message --
From: Eugene Poponin mail.black...@gmail.com
Date: 2010/9/6
Subject: [twitter-dev] Twitter share button fails to parse url with +
To: Twitter Development Talk twitter-development-talk@googlegroups.com


For example the button wont work on page like this
http://example.com/twitter+share+button+fails
Tried to do urlencode - doesn't help. Tried on different
configurations of button from http://dev.twitter.com/pages/tweet_button
I have investigated and found the reason - twitter's JS replaces first
+ or %2B (html code) by white space and url becomes invalid.
Can somebody help?

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

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


[twitter-dev] Re: help with accessing the streaming api

2010-09-09 Thread omri
hi,
now it returns the 401 error.
It seems like I don't know what is the username and password i should
insert.

is this ths oauth token?
what is the title of this fields?

API key, Consumer key, Consumer secret?

thanks

On 7 ספטמבר, 17:16, John Kalucki j...@twitter.com wrote:
 The Streaming API will print a short text message along with errors that is
 often a very explicit indication of the problem. I don't think it throws 500
 errors (see:http://dev.twitter.com/pages/streaming_api_response_codes) so
 something odd is going on. If anything, it is throwing a 406, as you haven't
 provided parameters to track.

 -John Kaluckihttp://twitter.com/jkalucki
 Twitter, Inc.



 On Tue, Sep 7, 2010 at 4:38 AM, omri omridek...@gmail.com wrote:
  def run (self):
     status_url = http://stream.twitter.com/1/statuses/filter.json;
     request = urllib2.Request(status_url)
     print request
     auth = base64.encodestring('Consumer key:Consumer secret')[:-1]
     request.add_header('Authorization', 'basic %s' % auth)
     firehose = urllib2.urlopen(request)
     for tweet in firehose:
         print tweet

     firehose.close

  when printing the request i have  500 error, it is not reachable.

  do you have an idea why?

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

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


[twitter-dev] Twitter API intermittent Connection reset by peer

2010-09-09 Thread James Peter
I'm getting some very strange intermittent errors when connecting to
the API. It's completely take down our app. It looks like connections
are getting reset intermittently. See a transcript below - the first
attempt it works fine, then second two the connection resets.
Sometimes it just hangs for minutes.


james:~# wget http://twitter.com/oauth/authorize
--2010-09-09 05:30:30--  http://twitter.com/oauth/authorize
Resolving twitter.com... 128.242.240.148, 128.121.146.228,
128.242.245.212
Connecting to twitter.com|128.242.240.148|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2010-09-09 05:30:30 ERROR 403: Forbidden.

james:~# wget http://twitter.com/oauth/authorize
--2010-09-09 05:30:33--  http://twitter.com/oauth/authorize
Resolving twitter.com... 168.143.171.84, 128.121.243.228,
168.143.162.52
Connecting to twitter.com|168.143.171.84|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset
by peer) in   headers.
Retrying.

--2010-09-09 05:30:35--  (try: 2)  http://twitter.com/oauth/authorize
Connecting to twitter.com|168.143.171.84|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset
by peer) in   headers.
Retrying.


Anyone else getting these problems? Doesn't happen on all the
locations I test from, so I'm not sure if our IP has been blocked or
go some kind of access restrictions? Our IP is 173.203.207.179

Pulling my hair out trying to figure this out since it's intermittent.

James

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


Re: [twitter-dev] Re: help with accessing the streaming api

2010-09-09 Thread John Kalucki
What text message does it return with the 401 error?

You can still use basic auth with streaming. Does that work for you? You
should use your screenname and password for basic auth.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.





On Thu, Sep 9, 2010 at 2:48 AM, omri omridek...@gmail.com wrote:

 hi,
 now it returns the 401 error.
 It seems like I don't know what is the username and password i should
 insert.

 is this ths oauth token?
 what is the title of this fields?

 API key, Consumer key, Consumer secret?

 thanks

 On 7 ספטמבר, 17:16, John Kalucki j...@twitter.com wrote:
  The Streaming API will print a short text message along with errors that
 is
  often a very explicit indication of the problem. I don't think it throws
 500
  errors (see:http://dev.twitter.com/pages/streaming_api_response_codes)
 so
  something odd is going on. If anything, it is throwing a 406, as you
 haven't
  provided parameters to track.
 
  -John Kaluckihttp://twitter.com/jkalucki
  Twitter, Inc.
 
 
 
  On Tue, Sep 7, 2010 at 4:38 AM, omri omridek...@gmail.com wrote:
   def run (self):
  status_url = http://stream.twitter.com/1/statuses/filter.json;
  request = urllib2.Request(status_url)
  print request
  auth = base64.encodestring('Consumer key:Consumer secret')[:-1]
  request.add_header('Authorization', 'basic %s' % auth)
  firehose = urllib2.urlopen(request)
  for tweet in firehose:
  print tweet
 
  firehose.close
 
   when printing the request i have  500 error, it is not reachable.
 
   do you have an idea why?
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

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


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


[twitter-dev] how to apply Birddog role

2010-09-09 Thread takahiro shoji
Hi, twitter staff.

Our company is making real-time module which is based on tweet data.
I have applied garden-hose role but I could not find the entrance to
ally birddog.

If I apply for gardenhose, does birddog role permission include on my
account?

please, confirm it.
Thank you.

Shoji

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


[twitter-dev] Twitter oAuth file not return token

2010-09-09 Thread Choonu
Hello sir

i am authenticate to twitter with my website .first this file was
hosted at my old server and better running and return token id but i
have shifted to my new server these file now it is not returning token
id ,I dont know what is difference in my php.ini and which is
disabled .Please help me how to resolve this problem.

Thanks
Aasim Afridi

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


[twitter-dev] since_date or max_date or until or since for user_timeline

2010-09-09 Thread Grant
Searching through the group, there have been a few requests for this
functionality, with the only 'official' reply coming from al3x in a
thread back in 2007 that he'd certainly hope to have it in by the end
of the year.

Would it be possible to get someone from the team to say yes, we
really want to add this too, or a keep dreaming, pal?

Primarily, this would save from having to page until I've got all the
statuses for a given timespan. It's fine if the official answer is
that you're just supposed to keep on paging, I guess I'd just like to
know.

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


[twitter-dev] Re: Simple status update

2010-09-09 Thread Gerard M
Any Perl equivalent for three lines ?  I can convert to PHP if
needed, but it is a bit of a hassle...

G.



On Sep 3, 11:42 pm, Abraham Williams 4bra...@gmail.com wrote:
 On Fri, Sep 3, 2010 at 18:29, Gerard M g...@rivershark.com wrote:
  I can (well, used to) update using three lines:

 Here are three lines to tweet with OAuth:

 http://gist.github.com/564882

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

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


Re: [twitter-dev] how to apply Birddog role

2010-09-09 Thread John Kalucki
Without more details about your product, it's hard to direct you to the
right Twitter product. Please detail your organization and use case to an
email to a...@twitter.com. Note that we aren't granting many whitelist
requests at this point, so you may have to wait for a response.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.


On Thu, Sep 9, 2010 at 1:55 AM, takahiro shoji tsh...@gmail.com wrote:

 Hi, twitter staff.

 Our company is making real-time module which is based on tweet data.
 I have applied garden-hose role but I could not find the entrance to
 ally birddog.

 If I apply for gardenhose, does birddog role permission include on my
 account?

 please, confirm it.
 Thank you.

 Shoji

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


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


Re: [twitter-dev] Twitter API intermittent Connection reset by peer

2010-09-09 Thread Tom van der Woerdt
Those are not the correct endpoints.

You should use
https://api.twitter.com/oauth/authorize
etc

Tom


On 9/9/10 7:34 AM, James Peter wrote:
 I'm getting some very strange intermittent errors when connecting to
 the API. It's completely take down our app. It looks like connections
 are getting reset intermittently. See a transcript below - the first
 attempt it works fine, then second two the connection resets.
 Sometimes it just hangs for minutes.
 
 
 james:~# wget http://twitter.com/oauth/authorize
 --2010-09-09 05:30:30--  http://twitter.com/oauth/authorize
 Resolving twitter.com... 128.242.240.148, 128.121.146.228,
 128.242.245.212
 Connecting to twitter.com|128.242.240.148|:80... connected.
 HTTP request sent, awaiting response... 403 Forbidden
 2010-09-09 05:30:30 ERROR 403: Forbidden.
 
 james:~# wget http://twitter.com/oauth/authorize
 --2010-09-09 05:30:33--  http://twitter.com/oauth/authorize
 Resolving twitter.com... 168.143.171.84, 128.121.243.228,
 168.143.162.52
 Connecting to twitter.com|168.143.171.84|:80... connected.
 HTTP request sent, awaiting response... Read error (Connection reset
 by peer) in   headers.
 Retrying.
 
 --2010-09-09 05:30:35--  (try: 2)  http://twitter.com/oauth/authorize
 Connecting to twitter.com|168.143.171.84|:80... connected.
 HTTP request sent, awaiting response... Read error (Connection reset
 by peer) in   headers.
 Retrying.
 
 
 Anyone else getting these problems? Doesn't happen on all the
 locations I test from, so I'm not sure if our IP has been blocked or
 go some kind of access restrictions? Our IP is 173.203.207.179
 
 Pulling my hair out trying to figure this out since it's intermittent.
 
 James
 

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


[twitter-dev] from:me in search

2010-09-09 Thread Mark Krieger
If I search for me by doing 'from:markskrieger' in either twitter
directly, or from a twitter saved search of from:markskrieger, or from
the equivalent in the api, I do not get recent results. In fact, I am
not sure I am getting all results at all, it seems I am getting one or
two tweets, others are just missing.

Is this a known problem?

Mark

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


[twitter-dev] Re: help with accessing the streaming api

2010-09-09 Thread omri
this is the message i get :

 File quot;C:\Python26\lib\urllib2.pyquot;, line 516, in
http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized

i think i dont know which username and password to type in the header
- 'Authorization' 'basic (username:password)
the twitter's username?
the twitter api oauth?

thanks


On 9 ספטמבר, 15:42, John Kalucki j...@twitter.com wrote:
 What text message does it return with the 401 error?

 You can still use basic auth with streaming. Does that work for you? You
 should use your screenname and password for basic auth.

 -John Kaluckihttp://twitter.com/jkalucki
 Twitter, Inc.



 On Thu, Sep 9, 2010 at 2:48 AM, omri omridek...@gmail.com wrote:
  hi,
  now it returns the 401 error.
  It seems like I don't know what is the username and password i should
  insert.

  is this ths oauth token?
  what is the title of this fields?

  API key, Consumer key, Consumer secret?

  thanks

  On 7 ספטמבר, 17:16, John Kalucki j...@twitter.com wrote:
   The Streaming API will print a short text message along with errors that
  is
   often a very explicit indication of the problem. I don't think it throws
  500
   errors (see:http://dev.twitter.com/pages/streaming_api_response_codes)
  so
   something odd is going on. If anything, it is throwing a 406, as you
  haven't
   provided parameters to track.

   -John Kaluckihttp://twitter.com/jkalucki
   Twitter, Inc.

   On Tue, Sep 7, 2010 at 4:38 AM, omri omridek...@gmail.com wrote:
def run (self):
   status_url = http://stream.twitter.com/1/statuses/filter.json;
   request = urllib2.Request(status_url)
   print request
   auth = base64.encodestring('Consumer key:Consumer secret')[:-1]
   request.add_header('Authorization', 'basic %s' % auth)
   firehose = urllib2.urlopen(request)
   for tweet in firehose:
       print tweet

   firehose.close

when printing the request i have  500 error, it is not reachable.

do you have an idea why?

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

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

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


Re: [twitter-dev] Re: help with accessing the streaming api

2010-09-09 Thread Taylor Singletary
Hi Omri,

With basic auth, you don't use your consumer key or secret at all. Consumer
key and secret are used when authorizing through OAuth, and the
implementation is a bit more detailed than putting them in a header.

In your case, you want to use basic authorization, which should be easier
for your initial implementation.

Here are some pointers in the right direction for using basic auth with
Python's urllib2: http://docs.python.org/library/urllib2.html#examples

Taylor

On Thu, Sep 9, 2010 at 6:56 AM, omri omridek...@gmail.com wrote:

 this is the message i get :

  File quot;C:\Python26\lib\urllib2.pyquot;, line 516, in
 http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
 HTTPError: HTTP Error 401: Unauthorized

 i think i dont know which username and password to type in the header
 - 'Authorization' 'basic (username:password)
 the twitter's username?
 the twitter api oauth?

 thanks


 On 9 ספטמבר, 15:42, John Kalucki j...@twitter.com wrote:
  What text message does it return with the 401 error?
 
  You can still use basic auth with streaming. Does that work for you? You
  should use your screenname and password for basic auth.
 
  -John Kaluckihttp://twitter.com/jkalucki
  Twitter, Inc.
 
 
 
  On Thu, Sep 9, 2010 at 2:48 AM, omri omridek...@gmail.com wrote:
   hi,
   now it returns the 401 error.
   It seems like I don't know what is the username and password i should
   insert.
 
   is this ths oauth token?
   what is the title of this fields?
 
   API key, Consumer key, Consumer secret?
 
   thanks
 
   On 7 ספטמבר, 17:16, John Kalucki j...@twitter.com wrote:
The Streaming API will print a short text message along with errors
 that
   is
often a very explicit indication of the problem. I don't think it
 throws
   500
errors (see:
 http://dev.twitter.com/pages/streaming_api_response_codes)
   so
something odd is going on. If anything, it is throwing a 406, as you
   haven't
provided parameters to track.
 
-John Kaluckihttp://twitter.com/jkalucki
Twitter, Inc.
 
On Tue, Sep 7, 2010 at 4:38 AM, omri omridek...@gmail.com wrote:
 def run (self):
status_url = http://stream.twitter.com/1/statuses/filter.json;
request = urllib2.Request(status_url)
print request
auth = base64.encodestring('Consumer key:Consumer secret')[:-1]
request.add_header('Authorization', 'basic %s' % auth)
firehose = urllib2.urlopen(request)
for tweet in firehose:
print tweet
 
firehose.close
 
 when printing the request i have  500 error, it is not reachable.
 
 do you have an idea why?
 
 --
 Twitter developer documentation and resources:
  http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
http://groups.google.com/group/twitter-development-talk?hl=en
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

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


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


[twitter-dev] Re: List Widget code upgraded yet?

2010-09-09 Thread Mike
Hi Matt, this is the code.



script src=http://widgets.twimg.com/j/2/widget.js;/script
script
new TWTR.Widget({
  version: 2,
  type: 'list',
  rpp: 16,
  interval: 8000,
  title: 'Foo whatever',
  subject: '',
  width: 'auto',
  height: 300,
  theme: {
shell: {
  background: '#FF',
  color: '#FF'
},
tweets: {
  background: '#FF',
  color: '#313131',
  links: '#2CA4E3'
}
  },
  features: {
scrollbar: false,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'default'
  }
 }).render().setList('cnn', 'cnnnews').start();
/script



Thanks, Mike













On Sep 8, 11:38 pm, Matt Harris thematthar...@twitter.com wrote:
 Hi Mike,

 Can you share the widget code you are using. The API for lists hasn't
 been changed, and neither has the lists widget, so I need to see what
 code you are using and the list you are following.

 Thanks,
 Matt



 On Wed, Sep 8, 2010 at 1:03 PM, Mike rotti...@gmail.com wrote:
  Hi, we have a list widget implemented, and recently started seeing the
  issue:http://www.wired.com/epicenter/2010/08/twitter-login-errors/

  Has the widget code been updated, and if I use the generator here:
 http://twitter.com/goodies/widget_list

  ...will I get the correct code?

  Thanks, Mike

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

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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


Re: [twitter-dev] from:me in search

2010-09-09 Thread Taylor Singletary
All tweets don't appear in search, unfortunately. This article explains a
bit about it:
http://support.twitter.com/articles/66018-my-tweets-or-hashtags-are-missing-from-search

Taylor

On Thu, Sep 9, 2010 at 6:42 AM, Mark Krieger markskrie...@gmail.com wrote:

 If I search for me by doing 'from:markskrieger' in either twitter
 directly, or from a twitter saved search of from:markskrieger, or from
 the equivalent in the api, I do not get recent results. In fact, I am
 not sure I am getting all results at all, it seems I am getting one or
 two tweets, others are just missing.

 Is this a known problem?

 Mark

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


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


[twitter-dev] Re: OAuth 2.0 status?

2010-09-09 Thread mukgup
I also have the same question. What is the status for OAuth 2.0 in
twitter.
What I can see in the documentation is oAuth protocol only not oAuth
2.0

I am missing some thing here.

Thanks in advance for your replies.

Mukgup

On Jul 30, 7:00 am, mcm michele.comit...@gmail.com wrote:
 Hello all,

 What is the status ofOAuth2.0implementation on twitter?
 Is there any service to begin/learn how to use it to build client
 applications for twitter?

 Thanks!

 mic

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


[twitter-dev] Friends and Followers Resources for Protected Accounts

2010-09-09 Thread Vega
Going through the website. I was able to jump from a list to a users
page. Even though the user is protected I can see their followers and
who they are following. If I use the api against that user to get the
users follower ids I get:
The remote server returned an error: (401) Unauthorized. Here is the
documentation for the endpoint I am using, 
http://dev.twitter.com/doc/get/followers/ids.

Seems like an inconsistency between the website and the api. I just
want to verify that is excepted result from the api.

Thanks for any help ahead of time.

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


[twitter-dev] Latitudes and Longitudes in the Location Field

2010-09-09 Thread brentos
Hi Folks,

Does anyone know from where these come?  I'm speaking of the lat/lons
in the actual Location field of the user, not the new per-tweet
location stuff.  It appears to be fixed for the vast majority of users
to a single latitude and longitude.  Do certain clients insert this
once and then leave it?

Thanks in advance for your answers!

- Brent

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


[twitter-dev] Re: User_Timeline - include_rts not working

2010-09-09 Thread timrnicholson
I'm properly calling api.twitter.com/1/statuses/user_timeline with
include_rts as true and retweets are not being included. The only
stream that I can get to return retweets (because it doesn't even
require the include_rts parameter) is the home_timeline.

For example, the following doesn't work:
http://api.twitter.com/1/statuses/user_timeline/RWW.xml?count=20page=1include_rts=true

The worst part about this is not just that the include_rts parameter
doesn't work for including retweets, the returned timeline doesn't
even have 20 records in it when there are retweets. In other words,
the API is not only ignoring the include_rts parameter but its not
even returning the right number of requested records when it thinks
include_rts is false.

This totally screws up my pagination methods because I'm getting less
than the expected number of records back, so my app thinks there's no
more timeline to be retrieved. I certainly don't want to just always
include a next page link when there really aren't any more records
left.

Also, the count parameter is being ignored in all of this as well, but
I've latched on to another thread about that.

On Aug 30, 12:50 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Timmerk,

 Make sure you're using api.twitter.com as the host for all of your API
 requests. The proper API is not at twitter.com -- it's at api.twitter.com.
 Include_rts will not work against twitter.com (and one day you'll find all
 of your requests rejected.)

 Also, please note that proper API routes include a version component. The
 call you're making should 
 be:http://api.twitter.com/1/statuses/user_timeline.json?screen_name=NuWa...

 Taylor



 On Mon, Aug 30, 2010 at 10:43 AM, timmerk timm...@gmail.com wrote:
  I'm having the same issue - you can see an example here:

 http://twitter.com/statuses/user_timeline.json?screen_name=NuWaveGOV;...

  As you can see, there are no retweets included in the JSON.

  Thanks!

  On Aug 25, 2:30 pm, Matt Harris thematthar...@twitter.com wrote:
   Hey Hen,

   Are you still finding retweets are not showing up for you?

   Matt

   On Sat, Aug 21, 2010 at 7:19 AM, henasraf doku...@gmail.com wrote:
Matt,
Any user I show in my app would not show retweets, even if they surely
exist. You can see for yourself athttp://wosaic.net/twitguin(still
early stages, don't mind it being a bit lame), see any user such as
myself athttp://wosaic.net/twitguin/user/henasraf;you may go
through pages and see that no retweets ever show; they should be color
coded in orange. You can compare tohttp://twitter.com/henasraftosee
retweets that should show.

Thanks,
Hen

On Aug 19, 11:34 pm, Matt Harris thematthar...@twitter.com wrote:
Hey,

Retweets should be included if they exist in the users timeline when
  you
request them. For example if you request 20 Tweets of the timeline and
  one
of those last 20 was a retweet - it will be included. If one of the
  last 20
Tweets wasn't a retweet it won't be included, even if include_rts is
  true.

Does this explain what is happening in your app?
If not could you give an example of a username which shows this
  problem.

Best,
Matt

On Thu, Aug 19, 2010 at 1:24 PM, henasraf doku...@gmail.com wrote:
 Hey all, I'm using user_timeline to fetch the timeline of a user in
  my
 app. Problem is, it doesn't include native Retweets, even though
  I've
 set include_rts to true. The docs clearly say it should work, but it
 doesn't. What could be the problem? Thanks in advance :)

--

Matt Harris
Developer Advocate, Twitterhttp://twitter.com/themattharris

   --

   Matt Harris
   Developer Advocate, Twitterhttp://twitter.com/themattharris-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?hl=en- 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?hl=en


Re: [twitter-dev] Latitudes and Longitudes in the Location Field

2010-09-09 Thread Taylor Singletary
These are generally saved once by mobile-based Twitter clients, as you've
surmised!

Taylor

On Thu, Sep 9, 2010 at 7:17 AM, brentos brent.he...@gmail.com wrote:

 Hi Folks,

 Does anyone know from where these come?  I'm speaking of the lat/lons
 in the actual Location field of the user, not the new per-tweet
 location stuff.  It appears to be fixed for the vast majority of users
 to a single latitude and longitude.  Do certain clients insert this
 once and then leave it?

 Thanks in advance for your answers!

 - Brent

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


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


[twitter-dev] Re: help with accessing the streaming api

2010-09-09 Thread omri
so..
succeded with the username and password but now i have :
HTTPError: HTTP Error 403: Forbidden

I need something special to have access to the streaming resources?

On 9 ספטמבר, 17:03, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Omri,

 With basic auth, you don't use your consumer key or secret at all. Consumer
 key and secret are used when authorizing through OAuth, and the
 implementation is a bit more detailed than putting them in a header.

 In your case, you want to use basic authorization, which should be easier
 for your initial implementation.

 Here are some pointers in the right direction for using basic auth with
 Python's urllib2:http://docs.python.org/library/urllib2.html#examples

 Taylor



 On Thu, Sep 9, 2010 at 6:56 AM, omri omridek...@gmail.com wrote:
  this is the message i get :

   File quot;C:\Python26\lib\urllib2.pyquot;, line 516, in
  http_error_default
     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  HTTPError: HTTP Error 401: Unauthorized

  i think i dont know which username and password to type in the header
  - 'Authorization' 'basic (username:password)
  the twitter's username?
  the twitter api oauth?

  thanks

  On 9 ספטמבר, 15:42, John Kalucki j...@twitter.com wrote:
   What text message does it return with the 401 error?

   You can still use basic auth with streaming. Does that work for you? You
   should use your screenname and password for basic auth.

   -John Kaluckihttp://twitter.com/jkalucki
   Twitter, Inc.

   On Thu, Sep 9, 2010 at 2:48 AM, omri omridek...@gmail.com wrote:
hi,
now it returns the 401 error.
It seems like I don't know what is the username and password i should
insert.

is this ths oauth token?
what is the title of this fields?

API key, Consumer key, Consumer secret?

thanks

On 7 ספטמבר, 17:16, John Kalucki j...@twitter.com wrote:
 The Streaming API will print a short text message along with errors
  that
is
 often a very explicit indication of the problem. I don't think it
  throws
500
 errors (see:
 http://dev.twitter.com/pages/streaming_api_response_codes)
so
 something odd is going on. If anything, it is throwing a 406, as you
haven't
 provided parameters to track.

 -John Kaluckihttp://twitter.com/jkalucki
 Twitter, Inc.

 On Tue, Sep 7, 2010 at 4:38 AM, omri omridek...@gmail.com wrote:
  def run (self):
     status_url = http://stream.twitter.com/1/statuses/filter.json;
     request = urllib2.Request(status_url)
     print request
     auth = base64.encodestring('Consumer key:Consumer secret')[:-1]
     request.add_header('Authorization', 'basic %s' % auth)
     firehose = urllib2.urlopen(request)
     for tweet in firehose:
         print tweet

     firehose.close

  when printing the request i have  500 error, it is not reachable.

  do you have an idea why?

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

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

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

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


Re: [twitter-dev] Re: help with accessing the streaming api

2010-09-09 Thread Taylor Singletary
Hi Omri,

The Streaming API has various levels of access. The most basic doesn't
require any kind of permission, and that's utilizing the sampling resource,
documentation for which can be found here:
http://dev.twitter.com/pages/streaming_api_methods#statuses-sample and
http://dev.twitter.com/pages/streaming_api_concepts#sampling

For additional permissions, you'll want to fill out this form:
http://twitter.com/help/request_streaming as well as send a note to
a...@twitter.com (from the same email address associated with the account you
used the form) specifically asking for the role that makes sense for your
implementation.

It's best to get started with the sampling stream, as it lets you begin
coding against the streaming API from a stream that isn't too aggressive in
the amount of data it will be throwing at you.

What are you interested in building?

Taylor

On Thu, Sep 9, 2010 at 7:45 AM, omri omridek...@gmail.com wrote:

 so..
 succeded with the username and password but now i have :
 HTTPError: HTTP Error 403: Forbidden

 I need something special to have access to the streaming resources?

 On 9 ספטמבר, 17:03, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  Hi Omri,
 
  With basic auth, you don't use your consumer key or secret at all.
 Consumer
  key and secret are used when authorizing through OAuth, and the
  implementation is a bit more detailed than putting them in a header.
 
  In your case, you want to use basic authorization, which should be easier
  for your initial implementation.
 
  Here are some pointers in the right direction for using basic auth with
  Python's urllib2:http://docs.python.org/library/urllib2.html#examples
 
  Taylor
 
 
 
  On Thu, Sep 9, 2010 at 6:56 AM, omri omridek...@gmail.com wrote:
   this is the message i get :
 
File quot;C:\Python26\lib\urllib2.pyquot;, line 516, in
   http_error_default
  raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
   HTTPError: HTTP Error 401: Unauthorized
 
   i think i dont know which username and password to type in the header
   - 'Authorization' 'basic (username:password)
   the twitter's username?
   the twitter api oauth?
 
   thanks
 
   On 9 ספטמבר, 15:42, John Kalucki j...@twitter.com wrote:
What text message does it return with the 401 error?
 
You can still use basic auth with streaming. Does that work for you?
 You
should use your screenname and password for basic auth.
 
-John Kaluckihttp://twitter.com/jkalucki
Twitter, Inc.
 
On Thu, Sep 9, 2010 at 2:48 AM, omri omridek...@gmail.com wrote:
 hi,
 now it returns the 401 error.
 It seems like I don't know what is the username and password i
 should
 insert.
 
 is this ths oauth token?
 what is the title of this fields?
 
 API key, Consumer key, Consumer secret?
 
 thanks
 
 On 7 ספטמבר, 17:16, John Kalucki j...@twitter.com wrote:
  The Streaming API will print a short text message along with
 errors
   that
 is
  often a very explicit indication of the problem. I don't think it
   throws
 500
  errors (see:
  http://dev.twitter.com/pages/streaming_api_response_codes)
 so
  something odd is going on. If anything, it is throwing a 406, as
 you
 haven't
  provided parameters to track.
 
  -John Kaluckihttp://twitter.com/jkalucki
  Twitter, Inc.
 
  On Tue, Sep 7, 2010 at 4:38 AM, omri omridek...@gmail.com
 wrote:
   def run (self):
  status_url = 
 http://stream.twitter.com/1/statuses/filter.json;
  request = urllib2.Request(status_url)
  print request
  auth = base64.encodestring('Consumer key:Consumer
 secret')[:-1]
  request.add_header('Authorization', 'basic %s' % auth)
  firehose = urllib2.urlopen(request)
  for tweet in firehose:
  print tweet
 
  firehose.close
 
   when printing the request i have  500 error, it is not
 reachable.
 
   do you have an idea why?
 
   --
   Twitter developer documentation and resources:
http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en
 
 --
 Twitter developer documentation and resources:
  http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
http://groups.google.com/group/twitter-development-talk?hl=en
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  

Re: [twitter-dev] Re: help with accessing the streaming api

2010-09-09 Thread John Kalucki
Which URL are you requesting? What is the text message returned? Does this
doc help? http://dev.twitter.com/pages/streaming_api_response_codes

-John


On Thu, Sep 9, 2010 at 7:45 AM, omri omridek...@gmail.com wrote:

 so..
 succeded with the username and password but now i have :
 HTTPError: HTTP Error 403: Forbidden

 I need something special to have access to the streaming resources?

 On 9 ספטמבר, 17:03, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  Hi Omri,
 
  With basic auth, you don't use your consumer key or secret at all.
 Consumer
  key and secret are used when authorizing through OAuth, and the
  implementation is a bit more detailed than putting them in a header.
 
  In your case, you want to use basic authorization, which should be easier
  for your initial implementation.
 
  Here are some pointers in the right direction for using basic auth with
  Python's urllib2:http://docs.python.org/library/urllib2.html#examples
 
  Taylor
 
 
 
  On Thu, Sep 9, 2010 at 6:56 AM, omri omridek...@gmail.com wrote:
   this is the message i get :
 
File quot;C:\Python26\lib\urllib2.pyquot;, line 516, in
   http_error_default
  raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
   HTTPError: HTTP Error 401: Unauthorized
 
   i think i dont know which username and password to type in the header
   - 'Authorization' 'basic (username:password)
   the twitter's username?
   the twitter api oauth?
 
   thanks
 
   On 9 ספטמבר, 15:42, John Kalucki j...@twitter.com wrote:
What text message does it return with the 401 error?
 
You can still use basic auth with streaming. Does that work for you?
 You
should use your screenname and password for basic auth.
 
-John Kaluckihttp://twitter.com/jkalucki
Twitter, Inc.
 
On Thu, Sep 9, 2010 at 2:48 AM, omri omridek...@gmail.com wrote:
 hi,
 now it returns the 401 error.
 It seems like I don't know what is the username and password i
 should
 insert.
 
 is this ths oauth token?
 what is the title of this fields?
 
 API key, Consumer key, Consumer secret?
 
 thanks
 
 On 7 ספטמבר, 17:16, John Kalucki j...@twitter.com wrote:
  The Streaming API will print a short text message along with
 errors
   that
 is
  often a very explicit indication of the problem. I don't think it
   throws
 500
  errors (see:
  http://dev.twitter.com/pages/streaming_api_response_codes)
 so
  something odd is going on. If anything, it is throwing a 406, as
 you
 haven't
  provided parameters to track.
 
  -John Kaluckihttp://twitter.com/jkalucki
  Twitter, Inc.
 
  On Tue, Sep 7, 2010 at 4:38 AM, omri omridek...@gmail.com
 wrote:
   def run (self):
  status_url = 
 http://stream.twitter.com/1/statuses/filter.json;
  request = urllib2.Request(status_url)
  print request
  auth = base64.encodestring('Consumer key:Consumer
 secret')[:-1]
  request.add_header('Authorization', 'basic %s' % auth)
  firehose = urllib2.urlopen(request)
  for tweet in firehose:
  print tweet
 
  firehose.close
 
   when printing the request i have  500 error, it is not
 reachable.
 
   do you have an idea why?
 
   --
   Twitter developer documentation and resources:
http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en
 
 --
 Twitter developer documentation and resources:
  http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
http://groups.google.com/group/twitter-development-talk?hl=en
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

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


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


Re: [twitter-dev] Re: User_Timeline - include_rts not working

2010-09-09 Thread Matt Harris
Hey Tim,

When I run:
curl 
http://api.twitter.com/1/statuses/user_timeline/RWW.xml?count=20page=1include_rts=true;

I get the expected result of 20 statuses one retweet (from
@ConanOBrien). When you make the request are you running it like I am
or are you using a library?

To answer your query about the count parameter. The behavior is this:
we will try and return up to 'count' statuses in one request, where
count is equal to all statuses in the timeline before any filtering of
retweets. So, if you request 20 statuses without retweets, and 1 of
the statuses is a retweet, you will get 19 statuses back.

Hope that helps explain what is going on,
Matt

On Thu, Sep 9, 2010 at 7:30 AM, timrnicholson timrnichol...@gmail.com wrote:
 I'm properly calling api.twitter.com/1/statuses/user_timeline with
 include_rts as true and retweets are not being included. The only
 stream that I can get to return retweets (because it doesn't even
 require the include_rts parameter) is the home_timeline.

 For example, the following doesn't work:
 http://api.twitter.com/1/statuses/user_timeline/RWW.xml?count=20page=1include_rts=true

 The worst part about this is not just that the include_rts parameter
 doesn't work for including retweets, the returned timeline doesn't
 even have 20 records in it when there are retweets. In other words,
 the API is not only ignoring the include_rts parameter but its not
 even returning the right number of requested records when it thinks
 include_rts is false.

 This totally screws up my pagination methods because I'm getting less
 than the expected number of records back, so my app thinks there's no
 more timeline to be retrieved. I certainly don't want to just always
 include a next page link when there really aren't any more records
 left.

 Also, the count parameter is being ignored in all of this as well, but
 I've latched on to another thread about that.

 On Aug 30, 12:50 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 Hi Timmerk,

 Make sure you're using api.twitter.com as the host for all of your API
 requests. The proper API is not at twitter.com -- it's at api.twitter.com.
 Include_rts will not work against twitter.com (and one day you'll find all
 of your requests rejected.)

 Also, please note that proper API routes include a version component. The
 call you're making should 
 be:http://api.twitter.com/1/statuses/user_timeline.json?screen_name=NuWa...

 Taylor



 On Mon, Aug 30, 2010 at 10:43 AM, timmerk timm...@gmail.com wrote:
  I'm having the same issue - you can see an example here:

 http://twitter.com/statuses/user_timeline.json?screen_name=NuWaveGOV;...

  As you can see, there are no retweets included in the JSON.

  Thanks!

  On Aug 25, 2:30 pm, Matt Harris thematthar...@twitter.com wrote:
   Hey Hen,

   Are you still finding retweets are not showing up for you?

   Matt

   On Sat, Aug 21, 2010 at 7:19 AM, henasraf doku...@gmail.com wrote:
Matt,
Any user I show in my app would not show retweets, even if they surely
exist. You can see for yourself athttp://wosaic.net/twitguin(still
early stages, don't mind it being a bit lame), see any user such as
myself athttp://wosaic.net/twitguin/user/henasraf;you may go
through pages and see that no retweets ever show; they should be color
coded in orange. You can compare tohttp://twitter.com/henasraftosee
retweets that should show.

Thanks,
Hen

On Aug 19, 11:34 pm, Matt Harris thematthar...@twitter.com wrote:
Hey,

Retweets should be included if they exist in the users timeline when
  you
request them. For example if you request 20 Tweets of the timeline and
  one
of those last 20 was a retweet - it will be included. If one of the
  last 20
Tweets wasn't a retweet it won't be included, even if include_rts is
  true.

Does this explain what is happening in your app?
If not could you give an example of a username which shows this
  problem.

Best,
Matt

On Thu, Aug 19, 2010 at 1:24 PM, henasraf doku...@gmail.com wrote:
 Hey all, I'm using user_timeline to fetch the timeline of a user in
  my
 app. Problem is, it doesn't include native Retweets, even though
  I've
 set include_rts to true. The docs clearly say it should work, but it
 doesn't. What could be the problem? Thanks in advance :)

--

Matt Harris
Developer Advocate, Twitterhttp://twitter.com/themattharris

   --

   Matt Harris
   Developer Advocate, Twitterhttp://twitter.com/themattharris-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?hl=en- Hide quoted 
 text -

 - Show quoted text -

 --
 Twitter developer documentation and resources: 

Re: [twitter-dev] Re: OAuth 2.0 status?

2010-09-09 Thread Matt Harris
Hey Mukgup,

OAuth 2 isn't supported on the API at the moment which is why there is
no documentation for it. Our Javascript API uses something similar but
this is handled by it's internal code and may change at anytime.

If OAuth 2 support is developed on the APIs we will announce it to the
developer community through the dev.twitter.com website, mailing lists
and @twitterapi.

I hope that answers your question.

Matt

On Thu, Sep 9, 2010 at 7:26 AM, mukgup mukesh.gu...@gmail.com wrote:
 I also have the same question. What is the status for OAuth 2.0 in
 twitter.
 What I can see in the documentation is oAuth protocol only not oAuth
 2.0

 I am missing some thing here.

 Thanks in advance for your replies.

 Mukgup

 On Jul 30, 7:00 am, mcm michele.comit...@gmail.com wrote:
 Hello all,

 What is the status ofOAuth2.0implementation on twitter?
 Is there any service to begin/learn how to use it to build client
 applications for twitter?

 Thanks!

 mic

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




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

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


Re: [twitter-dev] Twitter oAuth file not return token

2010-09-09 Thread Taylor Singletary
Are you saying that on your old server you were able to negotiate for a
request token on the api.twitter.com/oauth/request_token step but now on
your new server you cannot?

I would check the server time on your new server, to determine if it is in
sync with an NTP time server, or otherwise adjust the clock on demand when
generating an oauth_timestamp to +/- 5 minutes of Twitter's server time. Our
server time is returned in the Date HTTP header of every request.

Thanks,
Taylor

On Thu, Sep 9, 2010 at 2:37 AM, Choonu aasim.afridi107...@gmail.com wrote:

 Hello sir

 i am authenticate to twitter with my website .first this file was
 hosted at my old server and better running and return token id but i
 have shifted to my new server these file now it is not returning token
 id ,I dont know what is difference in my php.ini and which is
 disabled .Please help me how to resolve this problem.

 Thanks
 Aasim Afridi

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


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


Re: [twitter-dev] since_date or max_date or until or since for user_timeline

2010-09-09 Thread Taylor Singletary
Hi Grant,

Paging is still the best way to accomplish this, as we've yet to implement
any date-or-time-specific filtering options to any REST timeline methods.

Thanks,
Taylor

On Thu, Sep 9, 2010 at 2:40 AM, Grant gfguth...@gmail.com wrote:

 Searching through the group, there have been a few requests for this
 functionality, with the only 'official' reply coming from al3x in a
 thread back in 2007 that he'd certainly hope to have it in by the end
 of the year.

 Would it be possible to get someone from the team to say yes, we
 really want to add this too, or a keep dreaming, pal?

 Primarily, this would save from having to page until I've got all the
 statuses for a given timespan. It's fine if the official answer is
 that you're just supposed to keep on paging, I guess I'd just like to
 know.

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


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


[twitter-dev] Error when accessing some of the methods from Twitter4j

2010-09-09 Thread Ennio
I keep getting this error when I access some of the methods.

401:Authentication credentials were missing or incorrect. {request:/
1/account/verify_credentials.json,error:Invalid / expired Token}
null

If I call the test() method I get the result YES, but when I try
verifyCredentials() I get this error... also I can get the Twitter
trends and some other ones... but when I try the StatusUpdate() I get
the same error.

any help on this... I do have my StoredAccessToken, StoredAccessSecret

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?hl=en


[twitter-dev] how to get the followers of a given user?

2010-09-09 Thread Victor Fang
i'm working on a research project and wanna build the twitter follower
graph. Please help! 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?hl=en


[twitter-dev] search api - since date format

2010-09-09 Thread arian
hi guys, I have a question about search api
about 'until' parameter to be more exactly

according to documentation until is Optional. Returns tweets
generated before the given date. Date should be formatted as -MM-
DD.
example: http://search.twitter.com/search.json?until=2010-03-28;

I need to know if its possible to set datetime, for example
http://search.twitter.com/search.json?until=2010-09-08-19:00; or
something like this.

according to doc date should be formatted as -MM-DD, but I need
inform time, if its possible what would be the string format in this
case?

is it possible? or how could I get a similar result?

Arian

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


Re: [twitter-dev] search api - since date format

2010-09-09 Thread Taylor Singletary
Hi Arian,

A date string really is the only valid format for this function. If you want
to cut the search off by certain times of day, you're best off
post-processing your results for that kind of resolution.

Thanks,
Taylor

On Thu, Sep 9, 2010 at 8:15 AM, arian arianpasqu...@gmail.com wrote:

 hi guys, I have a question about search api
 about 'until' parameter to be more exactly

 according to documentation until is Optional. Returns tweets
 generated before the given date. Date should be formatted as -MM-
 DD.
 example: http://search.twitter.com/search.json?until=2010-03-28;

 I need to know if its possible to set datetime, for example
 http://search.twitter.com/search.json?until=2010-09-08-19:00; or
 something like this.

 according to doc date should be formatted as -MM-DD, but I need
 inform time, if its possible what would be the string format in this
 case?

 is it possible? or how could I get a similar result?

 Arian

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


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


Re: [twitter-dev] how to get the followers of a given user?

2010-09-09 Thread Taylor Singletary
In addition to the more basic instructions on accessing the REST API and
authorization you'll find on http://dev.twitter.com (be sure and register an
application if you haven't already), you'll specifically want to read these
documents on followings:

http://dev.twitter.com/doc/get/followers/ids
http://dev.twitter.com/doc/get/friends/ids
http://dev.twitter.com/doc/get/users/lookup

Taylor

On Thu, Sep 9, 2010 at 8:15 AM, Victor Fang vic...@gmail.com wrote:

 i'm working on a research project and wanna build the twitter follower
 graph. Please help! 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?hl=en


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


Re: [twitter-dev] When did user x follow me?

2010-09-09 Thread Matt Harris
Hi Dan,

We don't have the information about when someone started following you
available on the API. We do allow you to opt-in to new follower
notification emails though, so you could receive those going forward
to keep a record of when different users followed you.

What does happen is the friends and followers lists return users in
the order they followed you (followers), or you followed them
(friends), with the most recent being first. Whilst you cannot obtain
the time the connection was created, you can get the order.

I hope that answers your question,
Matt

On Thu, Sep 9, 2010 at 4:25 AM, Dan dani...@btopenworld.com wrote:
 Hi,

 I've been looking back at the previous discussions to find out about
 this, but haven't found anything of too much use (inside of this year
 anyway) - is there a way to find out at what date a user began
 following you? I've been looking in the API to no avail, and from
 previous discussions I read it was something being talked about. Is
 this a possibility at all?

 Thanks,

 Dan

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




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

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


[twitter-dev] Get All Followers Using twitteroauth

2010-09-09 Thread Paulo Fernandes
Hi

I'm beggining in this API and in this group.

I downloaded 0.2.0-beta3 from http://github.com/abraham/twitteroauth

I tryed to get all followers, but only retrieved 100 followers.

How can I get all followers? I saw something about cursor, but I don't
know how can I use it.

Please some help will be useful

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?hl=en


[twitter-dev] Re: Latitudes and Longitudes in the Location Field

2010-09-09 Thread brentos
Hi Taylor,

Thanks for the quick answer!  Do you happen to know any further
detail?  In particular, we're curious which clients do this and what
their exact process is.  Do they ask the user to use their location?
Why don't they continually update it?

Thanks very much!

- Brent

On Sep 9, 9:34 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 These are generally saved once by mobile-based Twitter clients, as you've
 surmised!

 Taylor



 On Thu, Sep 9, 2010 at 7:17 AM, brentos brent.he...@gmail.com wrote:
  Hi Folks,

  Does anyone know from where these come?  I'm speaking of the lat/lons
  in the actual Location field of the user, not the new per-tweet
  location stuff.  It appears to be fixed for the vast majority of users
  to a single latitude and longitude.  Do certain clients insert this
  once and then leave it?

  Thanks in advance for your answers!

  - Brent

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

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


Re: [twitter-dev] Re: Simple status update

2010-09-09 Thread Marc Mims
* Gerard M g...@rivershark.com [100909 05:47]:
 Any Perl equivalent for three lines ?  I can convert to PHP if
 needed, but it is a bit of a hassle...

Yes.

See the example code here:
http://github.com/semifor/Net-Twitter/wiki/Net::Twitter-and-the-death-of-Basic-Authentication

-Marc

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


[twitter-dev] Re: search api - since date format

2010-09-09 Thread arian

here is my problem
I need to catch some tweets since yesterday 20pm until this morning
8am.
the problem is that there is more than 1500 tweets that I need, and
according to search api docs, I can get a max  of roughly 1500 tweets
per search query.

[...]
rpp
The number of tweets to return per page, up to a max of 100.
http://search.twitter.com/search.json?rpp=100
page
The page number (starting at 1) to return, up to a max of roughly 1500
results (based on rpp * page).
http://search.twitter.com/search.json?page=10
[...]

from http://dev.twitter.com/doc/get/search

i'm struggling to build a query where I can get my tweets since
yesterday night.

any idea?

Arian

On 9 set, 12:23, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Arian,

 A date string really is the only valid format for this function. If you want
 to cut the search off by certain times of day, you're best off
 post-processing your results for that kind of resolution.

 Thanks,
 Taylor



 On Thu, Sep 9, 2010 at 8:15 AM, arian arianpasqu...@gmail.com wrote:
  hi guys, I have a question about search api
  about 'until' parameter to be more exactly

  according to documentation until is Optional. Returns tweets
  generated before the given date. Date should be formatted as -MM-
  DD.
  example:http://search.twitter.com/search.json?until=2010-03-28;

  I need to know if its possible to set datetime, for example
 http://search.twitter.com/search.json?until=2010-09-08-19:00; or
  something like this.

  according to doc date should be formatted as -MM-DD, but I need
  inform time, if its possible what would be the string format in this
  case?

  is it possible? or how could I get a similar result?

  Arian

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

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


Re: [twitter-dev] Re: search api - since date format

2010-09-09 Thread Taylor Singletary
This sort of scenario is better served with advance preparation, rather than
relying on the Search API to excavate the tweets after the fact, it would be
more advantageous to utilize the Streaming API, tracking and storing all
relevant tweets during your period of interest. Is this a one-off task
you're trying to accomplish or something more general you're looking to
accomplish?

Taylor

On Thu, Sep 9, 2010 at 9:32 AM, arian arianpasqu...@gmail.com wrote:


 here is my problem
 I need to catch some tweets since yesterday 20pm until this morning
 8am.
 the problem is that there is more than 1500 tweets that I need, and
 according to search api docs, I can get a max  of roughly 1500 tweets
 per search query.

 [...]
 rpp
 The number of tweets to return per page, up to a max of 100.
 http://search.twitter.com/search.json?rpp=100
 page
 The page number (starting at 1) to return, up to a max of roughly 1500
 results (based on rpp * page).
 http://search.twitter.com/search.json?page=10
 [...]

 from http://dev.twitter.com/doc/get/search

 i'm struggling to build a query where I can get my tweets since
 yesterday night.

 any idea?

 Arian

 On 9 set, 12:23, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  Hi Arian,
 
  A date string really is the only valid format for this function. If you
 want
  to cut the search off by certain times of day, you're best off
  post-processing your results for that kind of resolution.
 
  Thanks,
  Taylor
 
 
 
  On Thu, Sep 9, 2010 at 8:15 AM, arian arianpasqu...@gmail.com wrote:
   hi guys, I have a question about search api
   about 'until' parameter to be more exactly
 
   according to documentation until is Optional. Returns tweets
   generated before the given date. Date should be formatted as -MM-
   DD.
   example:http://search.twitter.com/search.json?until=2010-03-28;
 
   I need to know if its possible to set datetime, for example
  http://search.twitter.com/search.json?until=2010-09-08-19:00; or
   something like this.
 
   according to doc date should be formatted as -MM-DD, but I need
   inform time, if its possible what would be the string format in this
   case?
 
   is it possible? or how could I get a similar result?
 
   Arian
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

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


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


Re: [twitter-dev] Get All Followers Using twitteroauth

2010-09-09 Thread Abraham Williams
$connection = new TwitterOAuth('consumer_key', 'consumer_secret',
'access_token', 'access_token_secret');
$result100 = $connection-get('statuses/followers', array('cursor' = -1));
$result200 = $connection-get('statuses/followers', array('cursor' =
$result100-next_cursor));

You will be best off writing a loop instead of manually specifying how many
blocks of 100 it pulls in. $result100-users will be an array of users.

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


On Thu, Sep 9, 2010 at 08:59, Paulo Fernandes paulofernande...@gmail.comwrote:

 Hi

 I'm beggining in this API and in this group.

 I downloaded 0.2.0-beta3 from http://github.com/abraham/twitteroauth

 I tryed to get all followers, but only retrieved 100 followers.

 How can I get all followers? I saw something about cursor, but I don't
 know how can I use it.

 Please some help will be useful

 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?hl=en


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


Re: [twitter-dev] Re: OAuth 2.0 status?

2010-09-09 Thread Abraham Williams
Here is the breakdown of what @anywhere does for authentication:
http://blog.abrah.am/2010/09/hacking-twitter-anywheres.html

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


On Thu, Sep 9, 2010 at 08:09, Matt Harris thematthar...@twitter.com wrote:

 Hey Mukgup,

 OAuth 2 isn't supported on the API at the moment which is why there is
 no documentation for it. Our Javascript API uses something similar but
 this is handled by it's internal code and may change at anytime.

 If OAuth 2 support is developed on the APIs we will announce it to the
 developer community through the dev.twitter.com website, mailing lists
 and @twitterapi.

 I hope that answers your question.

 Matt

 On Thu, Sep 9, 2010 at 7:26 AM, mukgup mukesh.gu...@gmail.com wrote:
  I also have the same question. What is the status for OAuth 2.0 in
  twitter.
  What I can see in the documentation is oAuth protocol only not oAuth
  2.0
 
  I am missing some thing here.
 
  Thanks in advance for your replies.
 
  Mukgup
 
  On Jul 30, 7:00 am, mcm michele.comit...@gmail.com wrote:
  Hello all,
 
  What is the status ofOAuth2.0implementation on twitter?
  Is there any service to begin/learn how to use it to build client
  applications for twitter?
 
  Thanks!
 
  mic
 
  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en
 



 --


 Matt Harris
 Developer Advocate, Twitter
 http://twitter.com/themattharris

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


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


Re: [twitter-dev] Status format stream API vs. REST API

2010-09-09 Thread yaemog Dodigo

 You can obtain entities from most API methods that return tweets by
 appending an ?include_entities=true parameter to the request. Eventually,
 entities should be part of the default response.

 You can read more about entities here:
 http://dev.twitter.com/pages/tweet_entities

 Methods that should support this query parameter generally indicate
 compatibility on the documentation page corresponding to the resource.

 Including entities on the REST API can sometimes increase total processing
 time, so if you're asking for a large amount of data, you might want to
 lower the total count you ask for at a time so that your request doesn't
 time out.

 Thanks,
 Taylor

 On Wed, Sep 8, 2010 at 3:17 PM, yaemog Dodigo yae...@gmail.com wrote:

 Hello,

 I'm wondering why the format of status messages that get delivered via the
 stream API differs from status elements that are retrieved via the REST API
 (e.g., public_timeline or user_timeline).
 More precisely, status elements from the stream API contain an 'entities'
 object with user_mentions, hashtags, and urls properties. This information
 is missing from status messages that are retrieved from the REST API. Are
 there plans to unify these formats?


Hi,

as of this morning I don't see entities anymore in the spritzer stream (
http://stream.twitter.com/1/statuses/sample.json). Is this expected
behavior? Appending include_entities=true does not help either.

thx

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


Re: [twitter-dev] Status format stream API vs. REST API

2010-09-09 Thread Taylor Singletary
Entities will be back soon -- temporary glitch.

Thanks,
Taylor


On Thu, Sep 9, 2010 at 10:07 AM, yaemog Dodigo yae...@gmail.com wrote:

 You can obtain entities from most API methods that return tweets by
 appending an ?include_entities=true parameter to the request. Eventually,
 entities should be part of the default response.

 You can read more about entities here:
 http://dev.twitter.com/pages/tweet_entities

 Methods that should support this query parameter generally indicate
 compatibility on the documentation page corresponding to the resource.

 Including entities on the REST API can sometimes increase total processing
 time, so if you're asking for a large amount of data, you might want to
 lower the total count you ask for at a time so that your request doesn't
 time out.

 Thanks,
 Taylor

 On Wed, Sep 8, 2010 at 3:17 PM, yaemog Dodigo yae...@gmail.com wrote:

 Hello,

 I'm wondering why the format of status messages that get delivered via
 the stream API differs from status elements that are retrieved via the REST
 API (e.g., public_timeline or user_timeline).
 More precisely, status elements from the stream API contain an 'entities'
 object with user_mentions, hashtags, and urls properties. This information
 is missing from status messages that are retrieved from the REST API. Are
 there plans to unify these formats?


 Hi,

 as of this morning I don't see entities anymore in the spritzer stream (
 http://stream.twitter.com/1/statuses/sample.json). Is this expected
 behavior? Appending include_entities=true does not help either.

 thx

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


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


[twitter-dev] Problems with 2-legged access to Twitter using OAuth gem (ruby)

2010-09-09 Thread EranD
Hi,

I'm trying to get a server app to tweet messages to one specific
account I own. I'm following Twitter's instructions on Twitter's wiki:
http://developer.twitter.com/pages/oauth_single_token#ruby

I can read information from twitter (e.g. get last 20 tweets), but
when I try to update my status I get the error Could not authenticate
with OAuth in the body of the 401 response.

The simplified code I'm using is below. Key , secret, access token and
secret are all copied from my twitter application page on
developer.twitter.com. OAuth gem version 0.4.3.

Any thoughts or suggestions?

--
consumer = OAuth::Consumer.new(MY KEY, MY SECRET, { :site =
http://api.twitter.com;, :scheme = :header })

token_hash = { :oath_token = MY ACCESS TOKEN, :oauth_token_secret
= MY ACCESS SECRET}
access_token = OAuth::AccessToken.from_hash(consumer, token_hash)

res = access_token.get(/statuses/update.xml, {status = Hello
tweet})
-


Response:
Net::HTTPUnauthorized 401 Unauthorized readbody=true


thanks,

Eran

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


[twitter-dev] List of all users who tweeted in the last 30 seconds

2010-09-09 Thread Jim Goodling
I'm trying to get a list of all the users who tweeted in the last 30
seconds. Currently I'm using the seach api with since= today and
result_type=recent subsetting on result on my server and then calling
the users api. Is there any way I can specify a datetime on the
since=?  Is there a better way to get a list of all the users who
tweeted in the last 30 seconds?

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


Re: [twitter-dev] Problems with 2-legged access to Twitter using OAuth gem (ruby)

2010-09-09 Thread Taylor Singletary
Hi Eran,

First, just a clarification of terms: this isn't technically 2-legged
OAuth, this is still three-legged.

The code you've pasted here has a mis-spelled key name for :oauth_token
(you've provided oath_token -- is this true of the code you are executing
as well?

I haven't personally tested the 0.4.3 version of the Ruby gem, but have had
ongoing affection for version 0.3.6 for some time.

Finally, the error message you are getting back from Twitter is actually
more detailed than what you see in the default exception raising of the
OAuth gem. You'll need to take a look at the raw body response we send you
for more information on why this error might be occurring.

Thanks,
Taylor

On Thu, Sep 9, 2010 at 10:19 AM, EranD eran.davi...@gmail.com wrote:

 Hi,

 I'm trying to get a server app to tweet messages to one specific
 account I own. I'm following Twitter's instructions on Twitter's wiki:
 http://developer.twitter.com/pages/oauth_single_token#ruby

 I can read information from twitter (e.g. get last 20 tweets), but
 when I try to update my status I get the error Could not authenticate
 with OAuth in the body of the 401 response.

 The simplified code I'm using is below. Key , secret, access token and
 secret are all copied from my twitter application page on
 developer.twitter.com. OAuth gem version 0.4.3.

 Any thoughts or suggestions?

 --
 consumer = OAuth::Consumer.new(MY KEY, MY SECRET, { :site =
 http://api.twitter.com;, :scheme = :header })

 token_hash = { :oath_token = MY ACCESS TOKEN, :oauth_token_secret
 = MY ACCESS SECRET}
 access_token = OAuth::AccessToken.from_hash(consumer, token_hash)

 res = access_token.get(/statuses/update.xml, {status = Hello
 tweet})
 -


 Response:
 Net::HTTPUnauthorized 401 Unauthorized readbody=true


 thanks,

 Eran

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


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


Re: [twitter-dev] Latitudes and Longitudes in the Location Field

2010-09-09 Thread M. Edward (Ed) Borasky
I'm not sure what Twitter's mobile client does on the Android - I've  
stopped using it. But Seesmic appears to do a GPS call each time I  
post a tweet. I haven't cycled through all three of the location  
options available with Froyo, but I do see the little GPS icon flash  
every time I post a tweet in Seesmic.


On a desktop / laptop, or on the Android using mobile.twitter.com,  
it's more complicated, and Twitter's interactions with the browser  
sometimes don't work at all. I can do a search for place and  
sometimes it works, and sometimes it doesn't. I'm sure the location  
folks inside Twitter have log files they can use to diagnose these  
issues.


The net effect from my point of view is that Twitter's location  
offering is not solid, stable and end-user-friendly as yet. Yes, some  
of the clients are broken too, but Twitter's servers aren't *always*  
responding *correctly* to legitimate requests.


--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

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


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


These are generally saved once by mobile-based Twitter clients, as you've
surmised!

Taylor

On Thu, Sep 9, 2010 at 7:17 AM, brentos brent.he...@gmail.com wrote:


Hi Folks,

Does anyone know from where these come?  I'm speaking of the lat/lons
in the actual Location field of the user, not the new per-tweet
location stuff.  It appears to be fixed for the vast majority of users
to a single latitude and longitude.  Do certain clients insert this
once and then leave it?

Thanks in advance for your answers!

- Brent

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



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






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


Re: [twitter-dev] Re: Latitudes and Longitudes in the Location Field

2010-09-09 Thread M. Edward (Ed) Borasky

--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

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


Quoting brentos brent.he...@gmail.com:


Hi Taylor,

Thanks for the quick answer!  Do you happen to know any further
detail?  In particular, we're curious which clients do this and what
their exact process is.  Do they ask the user to use their location?
Why don't they continually update it?


I used to run all the free Twitter clients on my Android (Verizon  
Droid Incredible). Most of them appeared to be grabbing the location  
each time I posted a tweet, and most of them have an option to grab  
the location on demand.


After a few weeks of experimentation, I settled on the Seesmic client  
as the best available on the basis of functionality and usability.  
Twidroyd, Touiteur, Twitter's own client and the HTC Peep client  
built into the Incredible were mostly equivalent in functionality, but  
Seesmic did what I wanted better and was much easier to use.


One other note: Google and Verizon are very cautious when a Droid  
Incredible user turns on location capabilities. There are numerous  
points where you need to opt-in to get location-based services to  
work. These are big companies with lots of lawyers, and they want to  
make sure their behinds are covered. The default appears to be that  
location is enabled only for emergency (911) calls. ;-)


Thanks very much!

- Brent

On Sep 9, 9:34 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:

These are generally saved once by mobile-based Twitter clients, as you've
surmised!

Taylor



On Thu, Sep 9, 2010 at 7:17 AM, brentos brent.he...@gmail.com wrote:
 Hi Folks,

 Does anyone know from where these come?  I'm speaking of the lat/lons
 in the actual Location field of the user, not the new per-tweet
 location stuff.  It appears to be fixed for the vast majority of users
 to a single latitude and longitude.  Do certain clients insert this
 once and then leave it?

 Thanks in advance for your answers!

 - Brent

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


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






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


[twitter-dev] Re: Problems with 2-legged access to Twitter using OAuth gem (ruby)

2010-09-09 Thread EranD
Hi Taylor,

Thanks for the quick response. I stand corrected on the three-legged
authentication. Skipping a few steps doesn't make it 2 :)

You're right about the typo - the code I was using was incorrect.
Having fixed it, however, didn't seem to help. Here's the response I'm
getting (after the fix):
- HTTP/1.1 401 Unauthorized\r\n
- Date: Thu, 09 Sep 2010 19:25:23 GMT\r\n
- Server: hi\r\n
- Status: 401 Unauthorized\r\n
- WWW-Authenticate: Basic realm=\Twitter API\\r\n
- Content-Type: application/xml; charset=utf-8\r\n
- Content-Length: 137\r\n
- Cache-Control: no-cache, max-age=1800\r\n
- Set-Cookie: k=71.183.40.72.1284060323860138; path=/; expires=Thu,
16-Sep-10 19:25:23 GMT; domain=.twitter.com\r\n
- Set-Cookie: guest_id=128406032386923588; path=/; expires=Sat, 09
Oct 2010 19:25:23 GMT\r\n
- Set-Cookie:
_twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
%250ASGFzaHsABjoKQHVzZWR7AA%253D
%253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
path=/\r\n
- Expires: Thu, 09 Sep 2010 19:55:23 GMT\r\n
- Vary: Accept-Encoding\r\n
- Connection: close\r\n
- \r\n


The new code is now:
consumer = OAuth::Consumer.new(KEY, SECRET, { :site = http://
api.twitter.com, :scheme = :header })

token_hash = { :oauth_token = OTHER KEY, :oauth_token_secret =
OTHER SECRET}

access_token = OAuth::AccessToken.from_hash(consumer, token_hash)

res = access_token.get(/statuses/update.xml, {status = Hello
tweet})

Any thoughts?

thanks,

Eran

On Sep 9, 1:37 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Eran,

 First, just a clarification of terms: this isn't technically 2-legged
 OAuth, this is still three-legged.

 The code you've pasted here has a mis-spelled key name for :oauth_token
 (you've provided oath_token -- is this true of the code you are executing
 as well?

 I haven't personally tested the 0.4.3 version of the Ruby gem, but have had
 ongoing affection for version 0.3.6 for some time.

 Finally, the error message you are getting back from Twitter is actually
 more detailed than what you see in the default exception raising of the
 OAuth gem. You'll need to take a look at the raw body response we send you
 for more information on why this error might be occurring.

 Thanks,
 Taylor



 On Thu, Sep 9, 2010 at 10:19 AM, EranD eran.davi...@gmail.com wrote:
  Hi,

  I'm trying to get a server app to tweet messages to one specific
  account I own. I'm following Twitter's instructions on Twitter's wiki:
 http://developer.twitter.com/pages/oauth_single_token#ruby

  I can read information from twitter (e.g. get last 20 tweets), but
  when I try to update my status I get the error Could not authenticate
  with OAuth in the body of the 401 response.

  The simplified code I'm using is below. Key , secret, access token and
  secret are all copied from my twitter application page on
  developer.twitter.com. OAuth gem version 0.4.3.

  Any thoughts or suggestions?

  --
  consumer = OAuth::Consumer.new(MY KEY, MY SECRET, { :site =
  http://api.twitter.com;, :scheme = :header })

  token_hash = { :oath_token = MY ACCESS TOKEN, :oauth_token_secret
  = MY ACCESS SECRET}
  access_token = OAuth::AccessToken.from_hash(consumer, token_hash)

  res = access_token.get(/statuses/update.xml, {status = Hello
  tweet})
  -

  Response:
  Net::HTTPUnauthorized 401 Unauthorized readbody=true

  thanks,

  Eran

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

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


Re: [twitter-dev] Digest for twitter-development-talk@googlegroups.com - 25 Messages in 13 Topics

2010-09-09 Thread Mark Krieger
Taylor,

thanks. I will implement seeing from:me by getting the timeline once an hour
and looking for my own tweets.

Mark

On Thu, Sep 9, 2010 at 11:41 AM, 
twitter-development-talk+nore...@googlegroups.comtwitter-development-talk%2bnore...@googlegroups.com
 wrote:

   Today's Topic Summary

 Group: http://groups.google.com/group/twitter-development-talk/topics

- When did user x follow me? #12af728c13d2126a_group_thread_0 [1
Update]
- how to get the followers of a given 
 user?#12af728c13d2126a_group_thread_1[2 Updates]
- search api - since date format #12af728c13d2126a_group_thread_2 [2
Updates]
- Error when accessing some of the methods from 
 Twitter4j#12af728c13d2126a_group_thread_3[1 Update]
- since_date or max_date or until or since for 
 user_timeline#12af728c13d2126a_group_thread_4[1 Update]
- Twitter oAuth file not return token#12af728c13d2126a_group_thread_5[1 
 Update]
- OAuth 2.0 status? #12af728c13d2126a_group_thread_6 [2 Updates]
- User_Timeline - include_rts not 
 working#12af728c13d2126a_group_thread_7[2 Updates]
- help with accessing the streaming 
 api#12af728c13d2126a_group_thread_8[7 Updates]
- Latitudes and Longitudes in the Location 
 Field#12af728c13d2126a_group_thread_9[2 Updates]
- Friends and Followers Resources for Protected 
 Accounts#12af728c13d2126a_group_thread_10[1 Update]
- List Widget code upgraded yet? #12af728c13d2126a_group_thread_11 [1
Update]
- from:me in search #12af728c13d2126a_group_thread_12 [2 Updates]

   Topic: When did user x follow 
 me?http://groups.google.com/group/twitter-development-talk/t/9f649e382e93c32d

Matt Harris thematthar...@twitter.com Sep 09 08:29AM -0700 
 ^#12af728c13d2126a_digest_top

Hi Dan,

We don't have the information about when someone started following you
available on the API. We do allow you to opt-in to new follower
notification emails though, so you could receive those going forward
to keep a record of when different users followed you.

What does happen is the friends and followers lists return users in
the order they followed you (followers), or you followed them
(friends), with the most recent being first. Whilst you cannot obtain
the time the connection was created, you can get the order.

I hope that answers your question,
Matt


--


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris



   Topic: how to get the followers of a given 
 user?http://groups.google.com/group/twitter-development-talk/t/c104ccce88e1e35c

Victor Fang vic...@gmail.com Sep 09 08:15AM -0700 
 ^#12af728c13d2126a_digest_top

i'm working on a research project and wanna build the twitter follower
graph. Please help! Thanks! :)




Taylor Singletary taylorsinglet...@twitter.com Sep 09 08:27AM -0700 
 ^#12af728c13d2126a_digest_top

In addition to the more basic instructions on accessing the REST API
and
authorization you'll find on http://dev.twitter.com (be sure and
register an
application if you haven't already), you'll specifically want to read
these
documents on followings:

http://dev.twitter.com/doc/get/followers/ids
http://dev.twitter.com/doc/get/friends/ids
http://dev.twitter.com/doc/get/users/lookup

Taylor




   Topic: search api - since date 
 formathttp://groups.google.com/group/twitter-development-talk/t/649c6a6902463a7c

arian arianpasqu...@gmail.com Sep 09 08:15AM -0700 
 ^#12af728c13d2126a_digest_top

hi guys, I have a question about search api
about 'until' parameter to be more exactly

according to documentation until is Optional. Returns tweets
generated before the given date. Date should be formatted as -MM-
DD.
example: http://search.twitter.com/search.json?until=2010-03-28;

I need to know if its possible to set datetime, for example
http://search.twitter.com/search.json?until=2010-09-08-19:00; or
something like this.

according to doc date should be formatted as -MM-DD, but I need
inform time, if its possible what would be the string format in this
case?

is it possible? or how could I get a similar result?

Arian




Taylor Singletary taylorsinglet...@twitter.com Sep 09 08:23AM -0700 
 ^#12af728c13d2126a_digest_top

Hi Arian,

A date string really is the only valid format for this function. If you
want
to cut the search off by certain times of day, you're best off
post-processing your results for that kind of resolution.

Thanks,
Taylor




   Topic: Error when accessing some of the methods from 
 Twitter4jhttp://groups.google.com/group/twitter-development-talk/t/3a9f919409056691

Ennio enniobozze...@gmail.com Sep 09 08:13AM -0700 
 ^#12af728c13d2126a_digest_top

I keep getting this error when I access some of the methods.

401:Authentication credentials were missing or incorrect. {request:/

Re: [twitter-dev] Re: Problems with 2-legged access to Twitter using OAuth gem (ruby)

2010-09-09 Thread Tom van der Woerdt
Invalid/Expired token says it all..

Tom


On 9/9/10 11:00 PM, EranD wrote:
 Thanks for the help.
 
 Unfortunately I've already tried all of those :(
 
 res = access_token.post(/1/statuses/update.xml, {status = Hello
 tweet})
 
 response is the same:
 HTTP/1.1 401 Unauthorized\r\n
 - Date: Thu, 09 Sep 2010 20:58:01 GMT\r\n
 - Server: hi\r\n
 - Status: 401 Unauthorized\r\n
 - WWW-Authenticate: Basic realm=\Twitter API\\r\n
 - Content-Type: application/xml; charset=utf-8\r\n
 - Content-Length: 139\r\n
 - Cache-Control: no-cache, max-age=1800\r\n
 - Set-Cookie: k=71.183.40.72.1284065880883182; path=/; expires=Thu,
 16-Sep-10 20:58:00 GMT; domain=.twitter.com\r\n
 - Set-Cookie: guest_id=128406588098859508; path=/; expires=Sat, 09
 Oct 2010 20:58:00 GMT\r\n
 - Set-Cookie:
 _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
 %250ASGFzaHsABjoKQHVzZWR7AA%253D
 %253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
 path=/\r\n
 - Expires: Thu, 09 Sep 2010 21:28:00 GMT\r\n
 - Vary: Accept-Encoding\r\n
 - Connection: close\r\n
 - \r\n
 reading 139 bytes...
 - ?xml version=\1.0\ encoding=\UTF-8\?\nhash\n  request/1/
 statuses/update.xml/request\n  errorInvalid / expired Token/error
 \n/hash\n
 
 Any other thoughts?
 
 
 On Sep 9, 3:37 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 Happy to help further:

 The line access_token.get(/statuses/update.xml has two problems...

 1. should have the version slug added in.. /1/statuses/update.xml
 2. creating a status update requires the POST HTTP method (as opposed to
 GET)

 You're very close, provided everything else is working correctly.

 Taylor



 On Thu, Sep 9, 2010 at 12:30 PM, EranD eran.davi...@gmail.com wrote:
 Hi Taylor,

 Thanks for the quick response. I stand corrected on the three-legged
 authentication. Skipping a few steps doesn't make it 2 :)

 You're right about the typo - the code I was using was incorrect.
 Having fixed it, however, didn't seem to help. Here's the response I'm
 getting (after the fix):
 - HTTP/1.1 401 Unauthorized\r\n
 - Date: Thu, 09 Sep 2010 19:25:23 GMT\r\n
 - Server: hi\r\n
 - Status: 401 Unauthorized\r\n
 - WWW-Authenticate: Basic realm=\Twitter API\\r\n
 - Content-Type: application/xml; charset=utf-8\r\n
 - Content-Length: 137\r\n
 - Cache-Control: no-cache, max-age=1800\r\n
 - Set-Cookie: k=71.183.40.72.1284060323860138; path=/; expires=Thu,
 16-Sep-10 19:25:23 GMT; domain=.twitter.com\r\n
 - Set-Cookie: guest_id=128406032386923588; path=/; expires=Sat, 09
 Oct 2010 19:25:23 GMT\r\n
 - Set-Cookie:
 _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
 %250ASGFzaHsABjoKQHVzZWR7AA%253D
 %253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
 path=/\r\n
 - Expires: Thu, 09 Sep 2010 19:55:23 GMT\r\n
 - Vary: Accept-Encoding\r\n
 - Connection: close\r\n
 - \r\n

 The new code is now:
 consumer = OAuth::Consumer.new(KEY, SECRET, { :site = http://
 api.twitter.com, :scheme = :header })

 token_hash = { :oauth_token = OTHER KEY, :oauth_token_secret =
 OTHER SECRET}

 access_token = OAuth::AccessToken.from_hash(consumer, token_hash)

 res = access_token.get(/statuses/update.xml, {status = Hello
 tweet})

 Any thoughts?

 thanks,

 Eran

 On Sep 9, 1:37 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 Hi Eran,

 First, just a clarification of terms: this isn't technically 2-legged
 OAuth, this is still three-legged.

 The code you've pasted here has a mis-spelled key name for :oauth_token
 (you've provided oath_token -- is this true of the code you are
 executing
 as well?

 I haven't personally tested the 0.4.3 version of the Ruby gem, but have
 had
 ongoing affection for version 0.3.6 for some time.

 Finally, the error message you are getting back from Twitter is actually
 more detailed than what you see in the default exception raising of the
 OAuth gem. You'll need to take a look at the raw body response we send
 you
 for more information on why this error might be occurring.

 Thanks,
 Taylor

 On Thu, Sep 9, 2010 at 10:19 AM, EranD eran.davi...@gmail.com wrote:
 Hi,

 I'm trying to get a server app to tweet messages to one specific
 account I own. I'm following Twitter's instructions on Twitter's wiki:
 http://developer.twitter.com/pages/oauth_single_token#ruby

 I can read information from twitter (e.g. get last 20 tweets), but
 when I try to update my status I get the error Could not authenticate
 with OAuth in the body of the 401 response.

 The simplified code I'm using is below. Key , secret, access token and
 secret are all copied from my twitter application page on
 developer.twitter.com. OAuth gem version 0.4.3.

 Any thoughts or suggestions?

 --
 consumer = OAuth::Consumer.new(MY KEY, MY SECRET, { :site =
 http://api.twitter.com;, :scheme = :header })

 token_hash = { :oath_token = MY ACCESS TOKEN, :oauth_token_secret
 = MY ACCESS SECRET}
 access_token = OAuth::AccessToken.from_hash(consumer, token_hash)

 res = 

[twitter-dev] Re: User_Timeline - include_rts not working

2010-09-09 Thread Mike Francisco


timrnicholson wrote:
 I'm properly calling api.twitter.com/1/statuses/user_timeline with
 include_rts as true and retweets are not being included. The only
 stream that I can get to return retweets (because it doesn't even
 require the include_rts parameter) is the home_timeline.

 For example, the following doesn't work:
 http://api.twitter.com/1/statuses/user_timeline/RWW.xml?count=20page=1include_rts=true

 The worst part about this is not just that the include_rts parameter
 doesn't work for including retweets, the returned timeline doesn't
 even have 20 records in it when there are retweets. In other words,
 the API is not only ignoring the include_rts parameter but its not
 even returning the right number of requested records when it thinks
 include_rts is false.

 This totally screws up my pagination methods because I'm getting less
 than the expected number of records back, so my app thinks there's no
 more timeline to be retrieved. I certainly don't want to just always
 include a next page link when there really aren't any more records
 left.

 Also, the count parameter is being ignored in all of this as well, but
 I've latched on to another thread about that.

 On Aug 30, 12:50 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  Hi Timmerk,
 
  Make sure you're using api.twitter.com as the host for all of your API
  requests. The proper API is not at twitter.com -- it's at api.twitter.com.
  Include_rts will not work against twitter.com (and one day you'll find all
  of your requests rejected.)
 
  Also, please note that proper API routes include a version component. The
  call you're making should 
  be:http://api.twitter.com/1/statuses/user_timeline.json?screen_name=NuWa...
 
  Taylor
 
 
 
  On Mon, Aug 30, 2010 at 10:43 AM, timmerk timm...@gmail.com wrote:
   I'm having the same issue - you can see an example here:
 
  http://twitter.com/statuses/user_timeline.json?screen_name=NuWaveGOV;...
 
   As you can see, there are no retweets included in the JSON.
 
   Thanks!
 
   On Aug 25, 2:30 pm, Matt Harris thematthar...@twitter.com wrote:
Hey Hen,
 
Are you still finding retweets are not showing up for you?
 
Matt
 
On Sat, Aug 21, 2010 at 7:19 AM, henasraf doku...@gmail.com wrote:
 Matt,
 Any user I show in my app would not show retweets, even if they surely
 exist. You can see for yourself athttp://wosaic.net/twitguin(still
 early stages, don't mind it being a bit lame), see any user such as
 myself athttp://wosaic.net/twitguin/user/henasraf;you may go
 through pages and see that no retweets ever show; they should be color
 coded in orange. You can compare tohttp://twitter.com/henasraftosee
 retweets that should show.
 
 Thanks,
 Hen
 
 On Aug 19, 11:34 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey,
 
 Retweets should be included if they exist in the users timeline when
   you
 request them. For example if you request 20 Tweets of the timeline 
 and
   one
 of those last 20 was a retweet - it will be included. If one of the
   last 20
 Tweets wasn't a retweet it won't be included, even if include_rts is
   true.
 
 Does this explain what is happening in your app?
 If not could you give an example of a username which shows this
   problem.
 
 Best,
 Matt
 
 On Thu, Aug 19, 2010 at 1:24 PM, henasraf doku...@gmail.com wrote:
  Hey all, I'm using user_timeline to fetch the timeline of a user in
   my
  app. Problem is, it doesn't include native Retweets, even though
   I've
  set include_rts to true. The docs clearly say it should work, but 
  it
  doesn't. What could be the problem? Thanks in advance :)
 
 --
 
 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris
 
--
 
Matt Harris
Developer Advocate, Twitterhttp://twitter.com/themattharris-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?hl=en- 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?hl=en


[twitter-dev] Re: Problems with 2-legged access to Twitter using OAuth gem (ruby)

2010-09-09 Thread EranD
Very strange. The token and access keys were all created yesterday by
twitter. Swithcing to gem 0.3.6 didn't help either.


On Sep 9, 5:08 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 Invalid/Expired token says it all..

 Tom

 On 9/9/10 11:00 PM, EranD wrote:



  Thanks for the help.

  Unfortunately I've already tried all of those :(

  res = access_token.post(/1/statuses/update.xml, {status = Hello
  tweet})

  response is the same:
  HTTP/1.1 401 Unauthorized\r\n
  - Date: Thu, 09 Sep 2010 20:58:01 GMT\r\n
  - Server: hi\r\n
  - Status: 401 Unauthorized\r\n
  - WWW-Authenticate: Basic realm=\Twitter API\\r\n
  - Content-Type: application/xml; charset=utf-8\r\n
  - Content-Length: 139\r\n
  - Cache-Control: no-cache, max-age=1800\r\n
  - Set-Cookie: k=71.183.40.72.1284065880883182; path=/; expires=Thu,
  16-Sep-10 20:58:00 GMT; domain=.twitter.com\r\n
  - Set-Cookie: guest_id=128406588098859508; path=/; expires=Sat, 09
  Oct 2010 20:58:00 GMT\r\n
  - Set-Cookie:
  _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
  %250ASGFzaHsABjoKQHVzZWR7AA%253D
  %253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
  path=/\r\n
  - Expires: Thu, 09 Sep 2010 21:28:00 GMT\r\n
  - Vary: Accept-Encoding\r\n
  - Connection: close\r\n
  - \r\n
  reading 139 bytes...
  - ?xml version=\1.0\ encoding=\UTF-8\?\nhash\n  request/1/
  statuses/update.xml/request\n  errorInvalid / expired Token/error
  \n/hash\n

  Any other thoughts?

  On Sep 9, 3:37 pm, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
  Happy to help further:

  The line access_token.get(/statuses/update.xml has two problems...

  1. should have the version slug added in.. /1/statuses/update.xml
  2. creating a status update requires the POST HTTP method (as opposed to
  GET)

  You're very close, provided everything else is working correctly.

  Taylor

  On Thu, Sep 9, 2010 at 12:30 PM, EranD eran.davi...@gmail.com wrote:
  Hi Taylor,

  Thanks for the quick response. I stand corrected on the three-legged
  authentication. Skipping a few steps doesn't make it 2 :)

  You're right about the typo - the code I was using was incorrect.
  Having fixed it, however, didn't seem to help. Here's the response I'm
  getting (after the fix):
  - HTTP/1.1 401 Unauthorized\r\n
  - Date: Thu, 09 Sep 2010 19:25:23 GMT\r\n
  - Server: hi\r\n
  - Status: 401 Unauthorized\r\n
  - WWW-Authenticate: Basic realm=\Twitter API\\r\n
  - Content-Type: application/xml; charset=utf-8\r\n
  - Content-Length: 137\r\n
  - Cache-Control: no-cache, max-age=1800\r\n
  - Set-Cookie: k=71.183.40.72.1284060323860138; path=/; expires=Thu,
  16-Sep-10 19:25:23 GMT; domain=.twitter.com\r\n
  - Set-Cookie: guest_id=128406032386923588; path=/; expires=Sat, 09
  Oct 2010 19:25:23 GMT\r\n
  - Set-Cookie:
  _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
  %250ASGFzaHsABjoKQHVzZWR7AA%253D
  %253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
  path=/\r\n
  - Expires: Thu, 09 Sep 2010 19:55:23 GMT\r\n
  - Vary: Accept-Encoding\r\n
  - Connection: close\r\n
  - \r\n

  The new code is now:
  consumer = OAuth::Consumer.new(KEY, SECRET, { :site = http://
  api.twitter.com, :scheme = :header })

  token_hash = { :oauth_token = OTHER KEY, :oauth_token_secret =
  OTHER SECRET}

  access_token = OAuth::AccessToken.from_hash(consumer, token_hash)

  res = access_token.get(/statuses/update.xml, {status = Hello
  tweet})

  Any thoughts?

  thanks,

  Eran

  On Sep 9, 1:37 pm, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
  Hi Eran,

  First, just a clarification of terms: this isn't technically 2-legged
  OAuth, this is still three-legged.

  The code you've pasted here has a mis-spelled key name for :oauth_token
  (you've provided oath_token -- is this true of the code you are
  executing
  as well?

  I haven't personally tested the 0.4.3 version of the Ruby gem, but have
  had
  ongoing affection for version 0.3.6 for some time.

  Finally, the error message you are getting back from Twitter is actually
  more detailed than what you see in the default exception raising of the
  OAuth gem. You'll need to take a look at the raw body response we send
  you
  for more information on why this error might be occurring.

  Thanks,
  Taylor

  On Thu, Sep 9, 2010 at 10:19 AM, EranD eran.davi...@gmail.com wrote:
  Hi,

  I'm trying to get a server app to tweet messages to one specific
  account I own. I'm following Twitter's instructions on Twitter's wiki:
 http://developer.twitter.com/pages/oauth_single_token#ruby

  I can read information from twitter (e.g. get last 20 tweets), but
  when I try to update my status I get the error Could not authenticate
  with OAuth in the body of the 401 response.

  The simplified code I'm using is below. Key , secret, access token and
  secret are all copied from my twitter application page on
  developer.twitter.com. OAuth gem version 0.4.3.

  Any thoughts or suggestions?

  

[twitter-dev] Re: Problems with 2-legged access to Twitter using OAuth gem (ruby)

2010-09-09 Thread EranD
Very strange. The tokens and keys were generated by Twitter yesterday
and still seem to be valid in the app interface. Switching to gem
v0.3.6 did not help.

On Sep 9, 5:08 pm, Tom van der Woerdt i...@tvdw.eu wrote:
 Invalid/Expired token says it all..

 Tom

 On 9/9/10 11:00 PM, EranD wrote:



  Thanks for the help.

  Unfortunately I've already tried all of those :(

  res = access_token.post(/1/statuses/update.xml, {status = Hello
  tweet})

  response is the same:
  HTTP/1.1 401 Unauthorized\r\n
  - Date: Thu, 09 Sep 2010 20:58:01 GMT\r\n
  - Server: hi\r\n
  - Status: 401 Unauthorized\r\n
  - WWW-Authenticate: Basic realm=\Twitter API\\r\n
  - Content-Type: application/xml; charset=utf-8\r\n
  - Content-Length: 139\r\n
  - Cache-Control: no-cache, max-age=1800\r\n
  - Set-Cookie: k=71.183.40.72.1284065880883182; path=/; expires=Thu,
  16-Sep-10 20:58:00 GMT; domain=.twitter.com\r\n
  - Set-Cookie: guest_id=128406588098859508; path=/; expires=Sat, 09
  Oct 2010 20:58:00 GMT\r\n
  - Set-Cookie:
  _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
  %250ASGFzaHsABjoKQHVzZWR7AA%253D
  %253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
  path=/\r\n
  - Expires: Thu, 09 Sep 2010 21:28:00 GMT\r\n
  - Vary: Accept-Encoding\r\n
  - Connection: close\r\n
  - \r\n
  reading 139 bytes...
  - ?xml version=\1.0\ encoding=\UTF-8\?\nhash\n  request/1/
  statuses/update.xml/request\n  errorInvalid / expired Token/error
  \n/hash\n

  Any other thoughts?

  On Sep 9, 3:37 pm, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
  Happy to help further:

  The line access_token.get(/statuses/update.xml has two problems...

  1. should have the version slug added in.. /1/statuses/update.xml
  2. creating a status update requires the POST HTTP method (as opposed to
  GET)

  You're very close, provided everything else is working correctly.

  Taylor

  On Thu, Sep 9, 2010 at 12:30 PM, EranD eran.davi...@gmail.com wrote:
  Hi Taylor,

  Thanks for the quick response. I stand corrected on the three-legged
  authentication. Skipping a few steps doesn't make it 2 :)

  You're right about the typo - the code I was using was incorrect.
  Having fixed it, however, didn't seem to help. Here's the response I'm
  getting (after the fix):
  - HTTP/1.1 401 Unauthorized\r\n
  - Date: Thu, 09 Sep 2010 19:25:23 GMT\r\n
  - Server: hi\r\n
  - Status: 401 Unauthorized\r\n
  - WWW-Authenticate: Basic realm=\Twitter API\\r\n
  - Content-Type: application/xml; charset=utf-8\r\n
  - Content-Length: 137\r\n
  - Cache-Control: no-cache, max-age=1800\r\n
  - Set-Cookie: k=71.183.40.72.1284060323860138; path=/; expires=Thu,
  16-Sep-10 19:25:23 GMT; domain=.twitter.com\r\n
  - Set-Cookie: guest_id=128406032386923588; path=/; expires=Sat, 09
  Oct 2010 19:25:23 GMT\r\n
  - Set-Cookie:
  _twitter_sess=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
  %250ASGFzaHsABjoKQHVzZWR7AA%253D
  %253D--1164b91ac812d853b877e93ddb612b7471bebc74; domain=.twitter.com;
  path=/\r\n
  - Expires: Thu, 09 Sep 2010 19:55:23 GMT\r\n
  - Vary: Accept-Encoding\r\n
  - Connection: close\r\n
  - \r\n

  The new code is now:
  consumer = OAuth::Consumer.new(KEY, SECRET, { :site = http://
  api.twitter.com, :scheme = :header })

  token_hash = { :oauth_token = OTHER KEY, :oauth_token_secret =
  OTHER SECRET}

  access_token = OAuth::AccessToken.from_hash(consumer, token_hash)

  res = access_token.get(/statuses/update.xml, {status = Hello
  tweet})

  Any thoughts?

  thanks,

  Eran

  On Sep 9, 1:37 pm, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
  Hi Eran,

  First, just a clarification of terms: this isn't technically 2-legged
  OAuth, this is still three-legged.

  The code you've pasted here has a mis-spelled key name for :oauth_token
  (you've provided oath_token -- is this true of the code you are
  executing
  as well?

  I haven't personally tested the 0.4.3 version of the Ruby gem, but have
  had
  ongoing affection for version 0.3.6 for some time.

  Finally, the error message you are getting back from Twitter is actually
  more detailed than what you see in the default exception raising of the
  OAuth gem. You'll need to take a look at the raw body response we send
  you
  for more information on why this error might be occurring.

  Thanks,
  Taylor

  On Thu, Sep 9, 2010 at 10:19 AM, EranD eran.davi...@gmail.com wrote:
  Hi,

  I'm trying to get a server app to tweet messages to one specific
  account I own. I'm following Twitter's instructions on Twitter's wiki:
 http://developer.twitter.com/pages/oauth_single_token#ruby

  I can read information from twitter (e.g. get last 20 tweets), but
  when I try to update my status I get the error Could not authenticate
  with OAuth in the body of the 401 response.

  The simplified code I'm using is below. Key , secret, access token and
  secret are all copied from my twitter application page on
  developer.twitter.com. OAuth gem version 0.4.3.

 

[twitter-dev] Tweet button SSL

2010-09-09 Thread Jordan McKible
As far as I can tell, the Tweet button javascript does not work on
https pages without warnings.  Chrome in particular gives one of those
big red page warnings involving an Akamai domain.  Is there a way to
use the tweet button on https pages, or is that unsupported?

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


[twitter-dev] Using API to accept a follow request, but it does not clear pending request when tweets are protected.

2010-09-09 Thread DaveH
Here is my problem.

1. My Twitter account is set to Protect My Tweets. It is private.
2. User 1234 send a follow request to my account.
3. My application authenticates with Twitter and using the friendships/
incoming call sees that a request to follow is pending.
4. My application sends a friendships/create to follow User 1234,
response is OK (200).
5. My account shows that I am now following User 1234.
5. User 1234 still shows as pending approval.

This is not what I expected. I can accept the follow request via my
program, but I cannot clear the pending follow request and as such, am
unable to grant permission to follow my protected account via the API.

Does anyone know what I am missing? Or is this one of those things
that Twitter is still working on?

My head hearts at this point from reading the docs and trying
different things.

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


Re: [twitter-dev] Tweet button SSL

2010-09-09 Thread John Adams
At the moment SSL tweet buttons are unsupported.

-j

On Thu, Sep 9, 2010 at 3:23 PM, Jordan McKible jmcki...@gmail.com wrote:

 As far as I can tell, the Tweet button javascript does not work on
 https pages without warnings.  Chrome in particular gives one of those
 big red page warnings involving an Akamai domain.  Is there a way to
 use the tweet button on https pages, or is that unsupported?

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


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


[twitter-dev] Errors in entities reported from Twitter.

2010-09-09 Thread Andrew W. Donoho
Gentlefolk,

Twitter is currently sending the wrong JSON data for entities. Two 
examples are below.

Anon,
Andrew

Andrew W. Donoho
Donoho Design Group, L.L.C.
a...@ddg.com, +1 (512) 750-7596

We did not come to fear the future. 
We came here to shape it.

-- President Barack Obama, Sept. 2009



Normal Entity JSON:

{
contributors = null;
coordinates = null;
created_at = Thu Sep 09 22:54:12 + 2010;
entities = {
hashtags = (
);
urls = (
);
user_mentions = (
{
id = 110309681;
indices = (
0,
12
);
name = John Walker;
screen_name = haikuwalker;
},
{
id = 28201579;
indices = (
26,
36
);
name = Launch787 Matt;
screen_name = launch787;
}
);
};
favorited = 0;
geo = null;
id = 24050618494;
in_reply_to_screen_name = haikuwalker;
in_reply_to_status_id = null;
in_reply_to_user_id = 110309681;
place = null;
retweet_count = null;
retweeted = 0;
source = a href=\http://www.ubertwitter.com/bb/download.php\; 
rel=\nofollow\\U00dcberTwitter/a;
text = @haikuwalker is headed to @launch787 to bartend their event so 
if you're there say hi or flick his ear;
truncated = 0;
user = {
contributors_enabled = 0;
created_at = Tue Apr 03 13:55:30 + 2007;
description =  Branding Empath, WOMM believer, Annie Oakley,hoop 
girl, @titosvodka  creative, tap dance kid, dog saver, paranormal researcher, 
prince dj;
favourites_count = 1;
follow_request_sent = 0;
followers_count = 2108;
following = 0;
friends_count = 2269;
geo_enabled = 0;
id = 3321501;
lang = en;
listed_count = 124;
location = Austin, Texas;
name = Elizabeth Bellanti;
notifications = 0;
profile_background_color = ff;
profile_background_image_url = 
http://a3.twimg.com/profile_background_images/85553889/back_1_mini.jpg;;
profile_background_tile = 0;
profile_image_url = 
http://a3.twimg.com/profile_images/704874191/GetAttachment-20.aspx_normal.jpeg;;
profile_link_color = ff;
profile_sidebar_border_color = 87bc44;
profile_sidebar_fill_color = e0ff92;
profile_text_color = 00;
profile_use_background_image = 1;
protected = 0;
screen_name = BeBellanti;
show_all_inline_media = 0;
statuses_count = 5203;
time_zone = Central Time (US  Canada);
url = http://www.bellantibranding.com ;
utc_offset = -21600;
verified = 0;
};
}



In error entity JSON (Please note the broken hashtags and urls entities too.):




{
contributors = null;
coordinates = null;
created_at = Thu Sep 09 22:54:04 + 2010;
entities = {
hashtags = (
RoundRockJelly
);
urls = (
RoundRockJelly
);
user_mentions = (
LaughlinJames,
SheilaS,
MikeChapman
);
};
favorited = 0;
geo = null;
id = 24050609162;
in_reply_to_screen_name = null;
in_reply_to_status_id = null;
in_reply_to_user_id = null;
place = null;
retweet_count = null;
retweeted = 0;
source = a href=\http://www.tweetdeck.com\; 
rel=\nofollow\TweetDeck/a;
text = BTW I was looking at my calendar, and I'll be at 
#RoundRockJelly around 12:15 tomorrow. cc: @LaughlinJames @SheilaS 
@MikeChapman;
truncated = 0;
user = {
contributors_enabled = 0;
created_at = Wed Jul 30 03:18:30 + 2008;
description = I am passionate about a few things: Technology, 
Music, Cars, Film, Literature. And when they meet it's a happy land, powerful 
man, universe man. 
\n;
favourites_count = 2;
follow_request_sent = 0;
followers_count = 594;
following = 1;
friends_count = 1182;
geo_enabled = 1;
id = 15655817;
lang = en;
listed_count = 32;

[twitter-dev] Re: how to get the followers of a given user?

2010-09-09 Thread Victor Fang
Hi, Taylor, thanks for your reply.

I've tried out some of them but no luck
I followed the instructions in this webpate:
http://dev.twitter.com/doc/get/users/lookup

and tried this url in my firefox,
http://api.twitter.com/1/users/lookup.json?user_id=783214,6253282

but firefox said:
Firefox can't find the file at 
http://api.twitter.com/1/users/lookup.json?user_id=783214,6253282.


is that due to authorization ? thanks!

On Sep 9, 11:27 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 In addition to the more basic instructions on accessing the REST API and
 authorization you'll find onhttp://dev.twitter.com(be sure and register an
 application if you haven't already), you'll specifically want to read these
 documents on followings:

 http://dev.twitter.com/doc/get/followers/idshttp://dev.twitter.com/doc/get/friends/idshttp://dev.twitter.com/doc/get/users/lookup

 Taylor

 On Thu, Sep 9, 2010 at 8:15 AM, Victor Fang vic...@gmail.com wrote:
  i'm working on a research project and wanna build the twitter follower
  graph. Please help! 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?hl=en

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


[twitter-dev] Re: Using API to accept a follow request, but it does not clear pending request when tweets are protected.

2010-09-09 Thread nischalshetty
Sending a friendships/create to follow user doesn't mean you would be
accepting follow requests. As far as I can tell there's no way you can
accept follow requests through the API, yet!

It's on low priority for the twitter team so the chances of accepting/
rejecting follows through the API seem bleak for now!
http://code.google.com/p/twitter-api/issues/detail?id=8

-N

On Sep 10, 3:23 am, DaveH d...@idreia.com wrote:
 Here is my problem.

 1. My Twitter account is set to Protect My Tweets. It is private.
 2. User 1234 send a follow request to my account.
 3. My application authenticates with Twitter and using the friendships/
 incoming call sees that a request to follow is pending.
 4. My application sends a friendships/create to follow User 1234,
 response is OK (200).
 5. My account shows that I am now following User 1234.
 5. User 1234 still shows as pending approval.

 This is not what I expected. I can accept the follow request via my
 program, but I cannot clear the pending follow request and as such, am
 unable to grant permission to follow my protected account via the API.

 Does anyone know what I am missing? Or is this one of those things
 that Twitter is still working on?

 My head hearts at this point from reading the docs and trying
 different things.

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


[twitter-dev] Displaying Friends Tweets Requires a log in each time

2010-09-09 Thread contact.edmur...@gmail.com
Hi there-  With the outdated Basic Authentication method, I was able
to display my freinds tweets on my web page without a problem.  Now
with oAuth, unless already logged in, I have to click the login button
with Twitter each time to display that content.  Multiple that for
each person that visits my web page.  Headach City!

Is there something I am missing?  Can the login be done once and
always display said content when someone visits my site?  Thanks, any
help 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?hl=en


Re: [twitter-dev] Twitter Send Message API

2010-09-09 Thread Rajesh .
i got followers from getfollwers method. after that only i used direct msg
to my follower, then getting that xml error..that below error


Rajesh
www.4tech.info


On Wed, Sep 8, 2010 at 7:30 PM, Taylor Singletary 
taylorsinglet...@twitter.com wrote:

 Hi Rajesh,

 Does this occur on all direct messages you send, or does it only
 happen occasionally?

 Taylor

 On Tue, Sep 7, 2010 at 9:46 PM, Rajesh ssrajesh@gmail.com wrote:

 i used twiiter api for status update,get connection,send message,

 status update and get connection working fine ,

 but in send message getting

 8/September/2010 10:15:33: {request:/1/direct_messages/
 new.json,error:Invalid request.}

 * TO SEND JOB DETAILS MESSAGE TO Twitter CONNECTIONS
 */
public function sendMessage($token, $sender_id=array(), $message)
{
global $logger;
$client = $token-getHttpClient($this-option_array);
$message = checkout this job jobsbyref;

$message_encode=urlencode($message);


$logger-debugLog(sender id is
 ---);
$logger-printArray($sender_id);
//$logger-debugLog(message.$message);
// Set Method (GET, POST or PUT)
$client-setMethod(Zend_Http_Client::POST);
for($i=0;$icount($sender_id);$i++)
{
$client-setUri('
 https://api.twitter.com/1/direct_messages/
 new.json');

  $client-setParameterPost('user_id',$sender_id[$i]);
$client-setParameterPost('message',$message);
$logger-debugLog(client value is-);
$logger-printArray($client);
$response =$client-request();
$logger-debugLog(inside send message--
 wdwdeff---);
$logger-printArray($response-getBody());
}
}

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


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


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


[twitter-dev] j2me twitter

2010-09-09 Thread j2me
Hello everyone.

I wanted to build a twitter application for mobile phone. But as
other, I got stuck in oAuth authentication of twitter. I read a lot in
this development talks but I could not managed to do one.

I registered for twitter application and I got Consumer key and
Consumer secret.

Can anyone in here provide me some sample on how to create connection?

There are some common link in this discussion that I have already gone
through. I request not to post any url form dev.twitter. I did not get
any idea from there. Any sample code, or url for complete oAuth
process would be appreciated. And if there is any API that i could
use, that will also be appreciated with their working.

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?hl=en


Re: [twitter-dev] Tweet button SSL

2010-09-09 Thread Matt Harris
Whilst the Javascript version of the Tweet Button is not support over
SSL you can use the 'build-your-own Tweet Button' technique instead.
In this situation you still create a 'Tweet' link pointing to
http://twitter.com/share with all parameters in the query string. For
example:
http://twitter.com/share?url=http%3A%2F%2Fdev.twitter.com

Then using your own Javascript open the link in a popup window,
invoked by a users click on the link.
This will allow you to provide the Tweet Button experience whilst
running your site over SSL.

There is more information on our developer resources site:
http://dev.twitter.com/pages/tweet_button#build-your-own-example

Hope that helps,
Matt

On Thu, Sep 9, 2010 at 3:44 PM, John Adams j...@twitter.com wrote:
 At the moment SSL tweet buttons are unsupported.
 -j

 On Thu, Sep 9, 2010 at 3:23 PM, Jordan McKible jmcki...@gmail.com wrote:

 As far as I can tell, the Tweet button javascript does not work on
 https pages without warnings.  Chrome in particular gives one of those
 big red page warnings involving an Akamai domain.  Is there a way to
 use the tweet button on https pages, or is that unsupported?

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

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




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

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


Re: [twitter-dev] Problems with parameter since_id

2010-09-09 Thread Matt Harris
Hey Alexandre,

We recommended that oauth parameters are placed in an Authorization
header instead of the query string. It makes URLs a lot tidier and
easier to debug.

Looking at your symptoms it suggests the order of your parameters is
different when generating the signature compared to the order in the
query string.

I think your basestring is being created with the parameters in
alphabetical order, but your query string does not maintain that. This
would explain why max_id works and since_id does not -- max_id comes
before oauth_* parameters alphabetically but since_id comes after
them. In your querystring since_id is before the oauth parameters.

Try with since_id at the end of your query string. If that works you
need to make sure you sort you parameters before sending them to
Twitter.

Best,
Matt

On Wed, Sep 8, 2010 at 2:04 PM, Alexandre Pires
alexandrepires2...@gmail.com wrote:
 Taylor, I dont know how the component does this, but the strange is that the
 same code works fine if I use max_id instead of since_id.



 - Original Message -
 From: Taylor Singletary
 To: twitter-development-talk@googlegroups.com
 Sent: Wednesday, September 08, 2010 5:12 PM
 Subject: Re: [twitter-dev] Problems with parameter since_id
 Hi Alexandre,
 That's your execution URL, not your signature base string -- which might be
 more difficult to access, depending on your library. When a signature
 validation error occurs, it most often can be traced back to the signature
 base string: the specific string that is constructed and then signed to
 create your signature.
 Do you know how to access components of this process?
 Taylor

 On Wed, Sep 8, 2010 at 11:30 AM, Alexandre Pires
 alexandrepires2...@gmail.com wrote:

 Hi, my url is somethink like this:


 http://api.twitter.com/1/statuses/home_timeline.xml?since_id=23937068328oauth_consumer_key=cJwcYa5qNKb8VCDcJTKVxQoauth_nonce=2D9B8D9CBD3318EC2017CFD1DF8E5465oauth_signature_method=HMAC-SHA1oauth_signature=izFyAuYwkZvvz%2BKhmG1S6aFb5%2FI%3Doauth_timestamp=1283970241oauth_token=42722301-kyYKZ0lpKRkpP7pJNTH8sOjYkAePpqM7peLMolYtzoauth_version=1.0

 Some idea ? When I was using basic authentication, was working.




 - Original Message - From: Taylor Singletary
 taylorsinglet...@twitter.com
 To: twitter-development-talk@googlegroups.com
 Sent: Tuesday, September 07, 2010 12:46 PM
 Subject: Re: [twitter-dev] Problems with parameter since_id


 Can you share an example of your signature base string in the case of
 using since_id? Are you actually using since_id=12345?

 Taylor

 On Tue, Sep 7, 2010 at 4:22 AM, Alexandre alexandrepires2...@gmail.com
 wrote:

 Hi Guys,

 Well, I'm trying to use home_timeline with parameter since_id, but is
 not working

 if I use max_id, works well, but if I use since_id not work

 http://api.twitter.com/1/statuses/home_timeline.xml?max_id=54321 (this
 works)

 http://api.twitter.com/1/statuses/home_timeline.xml?since_id=12345
 (this dont work)

 the error returned is:

 (401) errorIncorrect signature/error

 I'm doing OAuth authentication correctly

 why only with since_id not working, but with max_id work ?

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

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

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

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




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

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