Re: [twitter-dev] inconsistent data when fetching the stream using location boxes

2011-06-24 Thread Thomas Alisi
thanks matt

I didn't think of verifying the source straight from the json api, you're 
perfectly right, this is super helpful.

and it appears that twitter4j has some funny behaviour, as I'm reading the 
geo location directly from the API when I receive an onStatus notification, 
hence something like status.geoLocation()

I will need to dig in the code to understand what's happening, I'll come 
back to you as soon as I have answers

many thanks again, have a good day
thomas

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


Re: [twitter-dev] Poor documentation. For example, regarding lists. Suggestions for improvement.

2011-06-24 Thread Correa Denzil
Matt :

I suggest in the Example Requests you add the URL for the call. It will
prevent much of the What URL to call? queries.

--Regards,
Denzil



On Fri, Jun 24, 2011 at 4:55 AM, Matt Harris thematthar...@twitter.comwrote:

 Hi Dave,

 Thanks for your feedback, it's important for us to know when developers are
 not finding the information they are looking for.

 I have responded to your specific points inline:


 Issue #1: Valid version numbers

 I was unable to locate valid values for version. I tried 1.1.14,
 which I understand the current version to be from searching the site,
 but that causes a 404. It was only after digging around for examples
 that I noticed people using 1. A page describing valid version
 numbers should be linked from the word version.


 In the API documentation there is a version place marker in the example
 request URL. Currently only one version of the API exists, that version is
 1. This means any REST API queries will be of the format:
 https://api.twitter.com/1/statuses/user_timeline.json

 I've updated the API FAQ and Things Every Developer Should Know pages
 to include this information.
 http://dev.twitter.com/pages/every_developer
 https://dev.twitter.com/pages/api_faq

 Issue #2: Extremely unclear parameter passing

 As this call uses GET, and the documentation lists parameters you
 should include, this implies to me that you should use a query string.
 The docs list the following required parameters:

 * list_id - The numerical id of the list.
 * slug - You can identify a list by its slug instead of its numerical
 id. If you decide to do so, note that you'll also have to specify the
 list owner using the owner_id or owner_screen_name parameters.

 As it is not at all obvious how you discover the list_id or
 owner_id, I opted to use slug and owner_screen_name. However, if
 you

 $ curl
 http://api.twitter.com/1/lists/statuses.json?owner_screen_name=cnnslug=cnnnews

 you get

 {error:You must specify either a list ID or a slug and
 owner,request:\/1\/lists\/statuses.json?owner_screen_name=cnn}


 Notice that the response json lists the request with only the
 owner_screen_name parameter. I imagine that 1 or more things went
 wrong, possibly including:

 1. The API has a bug that is stripping the second parameter
 2. The documentation is incorrect, and you may not use slug and
 owner_screen_name to retrieve results.
 3. The documentation does not properly describe how you pass the
 arguments in the query string. Perhaps you're supposed to encode the
 entire string. I was not able to discern this.
 4. The documentation is incorrect about the url format.


 The request you are making is correct. The error is instead being caused by
 the way in which you are using your terminal. When using a terminal like
 this you need to remember to either quote your URL or escape the 's.

 This would make your request look like this:
 curl 
 http://api.twitter.com/1/lists/statuses.json?owner_screen_name=cnnslug=cnnnews
 



 Issue #3: No obvious way to discover list_id or owner_id


 user_ids are provided in all API responses which include a user object. The
 most common way of getting information about a user is through the
 users/show method or users/lookup method:
 http://dev.twitter.com/doc/get/users/show
 http://dev.twitter.com/doc/get/users/lookup

 list_id is available from the index of lists for a user. This request is
 the /1/lists request:
  http://dev.twitter.com/doc/get/lists

 Alternatively, if those values are unknown or you don't wish to look them
 up, you can provide the slug and screen_name as you have done in your
 example.


 Issue #4: Undocumented, un-obvious correct url

 I was finally able to retrieve the results using this url, pieced
 together from scattered examples.

 $ curl http://api.twitter.com/1/cnn/lists/cnnnews/statuses.json


 So far as I could tell, the documentation in no way implies that you
 could use such a url.


 This is the deprecated way of making lists requests. It is documented on
 this page of the developer resources site:
 http://dev.twitter.com/doc/get/:user/lists/:id/statuses

 I hope that helps explain a little bit more about the API. Let me know if
 this information is useful or what you would change and we'll see how we can
 incorporate it into the docs.

 Best,
 @themattharrishttps://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter

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


-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your 

[twitter-dev] User suggestions and User Suggestions Twitter

2011-06-24 Thread Correa Denzil
Hi,

I am unable to understand the API for
user/suggestionshttp://dev.twitter.com/doc/get/users/suggestionsand
user/suggestions/twitterhttp://dev.twitter.com/doc/get/users/suggestions/:slug
resources.
It would be great if you highlight two particular aspects :


   1. What do these API calls signify?
   2. Example calls for both of these API resources


Thanks,

--Regards,
Denzil

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


Re: [twitter-dev] Twitter widgets not using entities to present t.co links

2011-06-24 Thread Tim Meadowcroft

Thanks Matt, filed as a feature request rather than a defect

   http://code.google.com/p/twitter-api/issues/detail?id=2250

--
T

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


[twitter-dev] Search Api limit

2011-06-24 Thread Alessandro
Hi

I'm using the search api (for example:
http://search.twitter.com/search.rss?q=%23juventusrpp=100page=4)
I read here: http://search.twitter.com/api/ this:

We do not rate limit the search API under ordinary circumstances,
however we have put measures in place to limit the abuse of our API.
If you find yourself encountering these limits, please contact us and
describe your app's requirements.

The limit seems random: sometimes I do 150 requests sometimes 300,
generally, after 5 minutes I can do other requests.

I was wondering if is it possible do more requests

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


[twitter-dev] Get Twitter Statuses based on a timestamp

2011-06-24 Thread Shashank
Hi Guys,
I am new to use twitetr api, but managed to understand it to some
extent. But here i am stuck in some problem, i want to get user status
updates,  but not all updates. I want a way to just provide a
timestamp, and let the twitter api get statuses done by the user till
that particular timestamp.

Hope i am able to explain my problem clearly.

Can anyone tell me a way of how to do this??

Thanks in advance.

Shashank Singh

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


[twitter-dev] Re: Possible to find out how many people have see a tweet?

2011-06-24 Thread Mohan Arun
 I am wondering if there is a way to see how many people have seen my
 tweet via Retweets.  For instance I tweet Twitter is the best it is
 RT by one of my followers who has 1,000 followers, then by one of his
 followers who has 200 so my tweet has been seen by those users 1,200
 people via Retweets.

Many people just follow 1000+ people and may not 'see' a retweet
even though the retweet was available to read in their tweet inbox
because there is 1000 other people whose tweets are visible
when the twitter user logs in. Many tweets are going unread.

- Mohan
http://www.mohanarun.com

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


Re: [twitter-dev] xAuth login

2011-06-24 Thread Taylor Singletary
Hi Sushil,

Twitter enforces that timestamps be within a reasonable amount of time from
the present, so this is expected behavior.

One way that you can get plan ahead for this is by reading the Date HTTP
header that is sent in the response to every request -- once you parse that
date, you can determine the delta between what our server clock is running
at and what time your device thinks it is and then adjust your timestamp
calculations accordingly.

Another strategy that some developers take is to issue an unauthenticated
HTTP HEAD request to https://api.twitter.com/1/help/test.json when the app
starts up, which will also yield the Date header that you can adjust to.

@episod http://twitter.com/intent/user?screen_name=episod - Taylor
Singletary


On Thu, Jun 23, 2011 at 11:36 PM, Sushil sushil.sys...@gmail.com wrote:

 Hi All,

 I have a Android application for Twitter. I'm using Twitter4j library
 to do xAuth authentication.

 I'm facing a problem during login if the device date set as any past
 date. Like if today is 24th June and device date set as 23rd June and
 when I'm trying to login it gives me following error.

 SNS exception :: The screen name / password combination seems to be
 invalid.Relevant discussions can be on the Internet at:
 http://www.google.co.jp/search?q=e07c50ee or
 http://www.google.co.jp/search?q=e7bd
 TwitterException{exceptionCode=[e07c50ee-e7bd 1ac06e3f-695622d6],
 statusCode=503, retryAfter=0, rateLimitStatus=null, version=2.1.12}

 But if the device date is current date then the authentication works
 just fine.

 I want to know if this is expected behavior ?


 Thanks,
 Sushil

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


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


[twitter-dev] connection reset errors

2011-06-24 Thread Khandelwal
Both yesterday and today, I've been seeing quite a few Connection
reset by peer errors. They happen 15 - 30 minutes apart, with
successful queries against the API run in between.

My requests look like the following:

send: 'GET /1/friends/ids.json?cursor=-1user_id=24912726 HTTP/1.1\r
\nAccept-Encoding: identity\r\nHost: api.twitter.com\r\nAuthorization:
OAut
h realm=, oauth_version=1.0, oauth_signature=, oauth_nonce=,
oauth_timestamp=, oa
uth_token=, oauth_consumer_key=, oauth_signature_method=HMAC-
SHA1\
r\n\r\n

(The oauth values have been stripped from the request above).

Am I supposed to see these errors regularly? If yes, what should be
the accepted practice? Any advice would be most helpful.

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


[twitter-dev] Re: Twitter and iOS - an Integration Workshop

2011-06-24 Thread Jason Costa
By the way Tom - in case you're interested, the Twitter Integration
talk from WWDC has been uploaded on Apple's developer site:

https://developer.apple.com/videos/wwdc/2011/index.php

You'll need your Apple developer credentials to access it. The
title of the video is Twitter Integration.

--Jason

On Jun 7, 4:08 pm, Jason Costa jasonco...@twitter.com wrote:
 Hi Tom - unfortunately we will not be able to record this particular
 event.

 On Jun 6, 11:30 am, Tom van der Woerdt i...@tvdw.eu wrote:







  What about the rest of theiOSdevelopers who can't be there? I'm
 registeredas anAppleDeveloperbut I'm not there...

  Tom

  On 6/6/11 8:29 PM, Jason Costa wrote:

   Hi everyone,

   We're incredibly excited about the announcement thatApplemade at
   WWDC today. We believe that Twitter's deep integration withiOSis
   going to open up a lot of exciting opportunities for developers. For
   your apps, this includes:

            - single sign-on and lightweight identity
            - taking advantage of the tweet sheet feature
            - the ability to tweet a photo from your app
            - pulling down a user's following graph

   and a whole lot more. As part of the announcement, we're looking to
   host a workshop at Twitter's headquarters this Wednesday (6/8) from
   6:30pm to 8:30pm at 795 Folsom Street. At this event, we'll cover what
   the integration hooks mean for developers. Loren Brichter will also be
   talking about ABUIKit, a UI framework specifically for Mac, which
   we'll be open-sourcing.

   In order to attend, you'll need to first beregisteredas anApple
  Developer- you can register withApplehere:

  http://developer.apple.com/programs/register/

   Please also RSVP at the link below (with yourAppleDeveloperlogin):

  http://bit.ly/jBX5B6

   We hope you'll be able to join us for the evening.

   --@jasoncosta

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


Re: [twitter-dev] Re: Switching Application Type to Browser

2011-06-24 Thread Andrew W. Donoho

On Jun 23, 2011, at 20:14 , Victoria wrote:

 If I change Application Type to Browser (on the 
 https://dev.twitter.com/apps/edit/
 page), will this negatively affect the xAuth process currently used in
 the production version of my Twitter client?



Victoria,



Only Twitter or an experiment with an xAuth enabled application can 
answer this question. It could go either way. That said, I expect that the 
authorization paths, due to the different routes, are independent for xAuth and 
the OAuth path. (I believe the app type is really a choice between three-legged 
browser OAuth and PIN OAuth.)

Twitter folks need to answer this question. 

Good luck.



Anon,
Andrew

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

Knowing is not enough; we must apply. 
Willing is not enough; we must do.
-- Johann Wolfgang von Goethe




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


Re: [twitter-dev] Re: Switching Application Type to Browser

2011-06-24 Thread Taylor Singletary
Changing your application type has no effect on existing access tokens. If a
key has the xAuth permission granted to it, xAuth can be performed using the
API key regardless of the setting for application type. Applications set to
desktop cannot  dynamically present a oauth_callback on the request token
step (unless the value of oauth_callback is equal to oob for PIN-code
out-of-band OAuth), while apps set to client have the ability to
dynamically set an oauth_callback as they see fit. When saving an
application in client mode, one must provide a placeholder callback URL
even though it's a best practice (and valid OAuth) to set the oauth_callback
explicitly.

@episod http://twitter.com/intent/user?screen_name=episod - Taylor
Singletary


On Fri, Jun 24, 2011 at 9:00 AM, Andrew W. Donoho
andrew.don...@gmail.comwrote:


 On Jun 23, 2011, at 20:14 , Victoria wrote:

  If I change Application Type to Browser (on the
 https://dev.twitter.com/apps/edit/
  page), will this negatively affect the xAuth process currently used in
  the production version of my Twitter client?



 Victoria,



Only Twitter or an experiment with an xAuth enabled application can
 answer this question. It could go either way. That said, I expect that the
 authorization paths, due to the different routes, are independent for xAuth
 and the OAuth path. (I believe the app type is really a choice between
 three-legged browser OAuth and PIN OAuth.)

Twitter folks need to answer this question.

Good luck.



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

 Knowing is not enough; we must apply.
Willing is not enough; we must do.
-- Johann Wolfgang von Goethe




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


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


[twitter-dev] Re: error 401 from oauth, starting a few days ago

2011-06-24 Thread arlomedia
The response body only includes the text of the error message (This
method requires authentication) and a copy of my request URI.

I included my complete request including all headers in an earlier
post in this thread; is that what you meant by authorization header/
parameters?

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


[twitter-dev] Twitter Search API - completeness

2011-06-24 Thread Kstolen Kstolen
The Twitter Search API docs (http://dev.twitter.com/pages/
using_search#)
 say: Search is focused in relevance and not completeness. This means
that some Tweets and users may not be missing from search results. If
you want to match for completeness you should consider using the
Streaming API instead.

Should this be : This means that some Tweets and users may be missing
from search results. ?

That would seem to make more sense.

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


[twitter-dev] Re: Create your own trends from only people you follow

2011-06-24 Thread Hugh Hopkins
thanks to everyone. will try and get this going. its gonna be some
serious hard work.

Hugh

On Jun 17, 7:09 am, Scott Wilcox sc...@dor.ky wrote:
 HiHugh,

 Yes, your home timeline would consist  of all those you follow and anything 
 retweeted by those users. That should fit perfectly for you.

 On 16 Jun 2011, at 23:59,HughHopkinswrote:









  Thank you very much. would this work for only thetwitteraccounts
  that I follow.

  Thanks and all the best,

 Hugh

  On Jun 15, 7:31 pm, Scott Wilcox sc...@dor.ky wrote:
  You'll need to use the streaming API to collect the timeline and then 
  process that data yourself to deduce the most frequently used terms.

  Streaming API documentation can be found athttp://dev.twitter.com/doc

  On 15 Jun 2011, at 19:20,HughHopkinswrote:

  Heya,

  I'm a student who has just started a student news website called
 http://www.sonews.co.uk/wealso tweet a lot 
 onhttp://twitter.com/#!/sellyoaknews.
  I was hoping to create localtrendsfrom only the accounts that
  @sellyoaknews follows and was wondering how this would be done?

  So for example, I will be able to put on the website the 5 or 10 most
  talked about items from people I only follow. This would have a huge
  number of benefits because it would directly relate to the students we
  follow plus it would mean it wouldn't be susecptible to spam.

  If any of you could help point me in the right direction that would be
  great!!

  thanks and all the best,

 --
 Scott Wilcox

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

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


Re: [twitter-dev] Can't Get OAuth To Work On My Site

2011-06-24 Thread Matt Harris
Hi David,

Can you explain a little more about your setup and what you mean when you
say it isn't working. For example:

* What language are you using?
* Are you using a library?
* How far in the process does the OAuth flow get?
* Are you seeing any error messages in your code or logs?

If you can share this information we'll be able to provide some guidance on
what to do.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Thu, Jun 23, 2011 at 3:35 PM, David glk.da...@gmail.com wrote:

 Hi, I was wondering if anyone could help me? If you go to jesusay.com
 and click login you'll see the Twitter Oauth button... Can someone
 test it and maybe tell me what I'm doing wrong? It doesn't work.
 Thanks.

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


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


Re: [twitter-dev] Search API for getting tweet counts by date?

2011-06-24 Thread Matt Harris
Hi,

The Search API only keeps it's index for about a week so searches older than
that are not possible. To perform analysis of Tweets like you ask you will
can monitor them as they happen through the Streaming API. Alternatively
some third party services maybe able to offer this information.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Thu, Jun 23, 2011 at 7:45 PM, jburke jmbu...@gmail.com wrote:

 If I want to get tweet counts (for a particular query) by date over a
 particular date range, does the search API support? Is the date range
 limited to the tight range that is in place for search that returns
 tweets?

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


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


Re: SOLVED Re: [twitter-dev] Needs object from desktop application ?

2011-06-24 Thread Matt Harris
Hey Ari,

It's great to hear you worked this out and got it working. Also, thank you
for sharing the solution that worked for you.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



2011/6/23 Ari Endo arien...@gmail.com

 **
 Dear Matt,

 Your question solved my problem.
 Actually, the signature itself and signature part in authorization header
 were different!

 I have urlencoded the signature and again urlencoded the authorization
 header.
 As a result, signature was urlencoded twice which came different from once
 urlencoded signature.
 I have been thinking it makes no harm urlencoding many times, but it was
 not.

 By urlencoding authorization header except the signature part, I have got
 200 OK.

 Thank you so much for your kind support. Say thank you to Tom as well.
 As I am a newcomer to twitter application development,
 please help me again when I might come across other troubles ahead.

 Sincely,
 Ari Endo


 Matt Harris wrote (2011/06/24 9:21):

 Hi Ari,

  I'm not familiar with VBA enough to comment on the code, but if you could
 provide an example of the basestring created, authorization header and
 signature (remember to exclude any secrets) then we can take a look at what
 could be going wrong.

  Best,
 @themattharrishttps://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter



 2011/6/23 Ari Endo arien...@gmail.com

 Dear Tom,

 Here is my vba code, just for your information.
 It returns 401 Unauthorized,
 Failed to validate oauth signature and token

 I appreciate if you give me a hint.

 -
 Private Sub cbRequestToken_Click()

Const urlRequestToken As String =
 https://api.twitter.com/oauth/request_token;
Const oauth_consumer_secret As String = (my consumer secret)
Dim timestamp As Long
Dim strBase As String
timestamp = DateDiff(s, #1/1/1970#, DateAdd(h, -9, Now))
Dim param As New Scripting.Dictionary (hash array)
param(oauth_callback) = oob
param(oauth_consumer_key) = (my consumer key)
param(oauth_nonce) = CStr(timestamp + 1)
param(oauth_signature_method) = HMAC-SHA1
param(oauth_timestamp) = CStr(timestamp)
param(oauth_version) = 1.0

strBase = POST  urlEncode(urlRequestToken)   
 urlEncode(sortedParamConnected(param))
param(oauth_signature) =
 urlEncode(hmac_sha1(oauth_consumer_secret  , strBase))

Dim strHeader As String
strHeader = OAuth 
Dim i As Integer
For i = 0 To param.Count - 1
strHeader = strHeader  param.Keys(i)  = 
 urlEncode(param.Items(i))  
If i  param.Count - 1 Then strHeader = strHeader  , 
Next

Dim xmlhttp As New MSXML2.xmlhttp
xmlhttp.Open POST, urlRequestToken, False
xmlhttp.setRequestHeader Authorization, strHeader
xmlhttp.send

If xmlhttp.statusText  OK Then Exit Sub

End Sub

 There are several Excel VBA application which can be authenticated.
 The point is they make a twitter class and make an object to access.
 I am developing without using class (object-oriented).

 1. my time is correct (UTC)
 2. my signature is correct (compared with the sample in twitter
 documentation)
 3. when URL is https://api.twitter.com/1/, 404 Not found came back

 Thank you in advance,
 Ari


 Tom van der Woerdt schrieb (2011/06/11 9:21):
  A desktop authentication flow usually includes a callback with a
  custom scheme (myapp://redirect) or xAuth, while a server application
  will usually use a normal callback (http://example.com/callback) with
  the normal OAuth flow.
 
  However, this won't cause the Woah there! error you get. Just like
  anything else related to the programming itself: Twitter doesn't
  discriminate by programming language. As long as you are using the API
  correctly, it's fine.
 
  To answer your initial question: you can use C (non-object oriented
  language) and C++ (object-oriented language) and many other languages
  to interface with Twitter. It's an API, so it's all the same, as long
  as you can make a HTTP request.
 
  Tom
 
 
  On 6/11/11 2:17 AM, Ari Endo wrote:
  Dear Tom,
 
  Thank you for your quick support.
  I have checked all the items you listed below.
 
  What I would like to know is information for desktop application
  different from server application.
 
  I would appreciate if you tell me any.
  Thank you in advance,
 
  Ari
 
  Tom van der Woerdt さんは書きました (2011/06/10 17:50):
  I just checked and I was wrong - Woah there! can mean a lot of
  thnigs.
 
  1. Make sure that your time is right
  2. Make sure that the signature you make is right
  3. Make sure that your endpoint starts with
 https://api.twitter.com/1/
  4. Make sure that you use valid credentials
  5. Make sure that you are supplying all the required parameters
  6. Make sure that your nonce is correct
  7. Make sure everything else 

Re: [twitter-dev] Tweets not appearing properly from our app.

2011-06-24 Thread Matt Harris
Hi,

It sounds like you are seeing the effects of our caches updating. This can
sometimes happen but shouldn't be as apparent. Are you request xml, json or
both when you are performing these checks.

I'm not familiar with the platform your application is working on but if the
short caching propagation window is an issue for you I recommend looking at
the Streaming API. The Streaming API will deliver the Tweet to you in the
quickest time possible.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Thu, Jun 23, 2011 at 1:13 PM, 900 900secondsoff...@gmail.com wrote:

 Hi,

 We are having a problem with our application.  When I tweet, the
 function statuses/user_timeline does not fetch tweets accurately.  For
 instance, if I tweet something, the tweet won't appear for
 approximately one minute.  It then intermittently appears and
 disappears.  After a few minutes it appears properly.  Any
 suggestions, links, or advice?

 Thanks

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


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


Re: [twitter-dev] How to autologin to twitter by providing the username and password using API?

2011-06-24 Thread Matt Harris
Hi Karthikeyan,

In our Terms of Service ( http://dev.twitter.com/pages/api_terms ) we say
that a Service should not replicate, frame, or mirror the Twitter website or
its design. In addition, automating the login to twitter.com isn't something
you should be doing or are allowed to do.

Instead you should use the Twitter APIs to provide interactivity with
Twitter.

What actions would like people to be able to do inside you application?
If you can provide some examples of what you would like users to be able to
do, we can make recommendations on the API methods to use.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Thu, Jun 23, 2011 at 9:40 PM, Karthikeyan P karthivis...@gmail.comwrote:

 For example i have custom twitter icon in my application and when i am
 adding this icon to the application, i have also added the www.twitter.com,
 username,password. So when i am clicking the icon it takes me to the twitter
 site and auto fills the username and password. and logins and shows me the
 home page on my AIR HTML browser. This is the content to show in the
 application.

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


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


[twitter-dev] Building a Find your Twitter friends feature for a web app

2011-06-24 Thread @itsmikerudolph
Trying to figure out the best way to build a feature for a web app
thats in dev, what the feature will do is display which of your
twitter friends are registered on the application already. The Twitter
oAuth method is being used as the only way to register for the site
currently. So when a user registeres their unique Twitter id will be
stored into the database. Any thoughts or ideas?

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


Re: [twitter-dev] Can't Get OAuth To Work On My Site

2011-06-24 Thread David Moore
I took it off the site for now, but the site is php... It was acting like it
was going to let me register with Twitter, I verified my account and allowed
it... but when it returned to my site nothing happened. It didn't login or
make a new account like it was supposed to. After that it started to say
that my token was used already. Can I send you the file I use for my Twitter
Oauth? Thanks.

On Fri, Jun 24, 2011 at 12:31 PM, Matt Harris thematthar...@twitter.comwrote:

 Hi David,

 Can you explain a little more about your setup and what you mean when you
 say it isn't working. For example:

 * What language are you using?
 * Are you using a library?
 * How far in the process does the OAuth flow get?
 * Are you seeing any error messages in your code or logs?

 If you can share this information we'll be able to provide some guidance on
 what to do.

 Best,
 @themattharrishttps://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter




 On Thu, Jun 23, 2011 at 3:35 PM, David glk.da...@gmail.com wrote:

 Hi, I was wondering if anyone could help me? If you go to jesusay.com
 and click login you'll see the Twitter Oauth button... Can someone
 test it and maybe tell me what I'm doing wrong? It doesn't work.
 Thanks.

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


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




-- 
Seek God's mercy and you'll find it - www.GodsMercy.net

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


Re: [twitter-dev] Building a Find your Twitter friends feature for a web app

2011-06-24 Thread Scott Wilcox
Get the list of users that your authenticated user is following:

http://dev.twitter.com/doc/get/friends/ids

Then compare each of those to your user database and then present to the user.


On 24 Jun 2011, at 21:41, @itsmikerudolph wrote:

 Trying to figure out the best way to build a feature for a web app
 thats in dev, what the feature will do is display which of your
 twitter friends are registered on the application already. The Twitter
 oAuth method is being used as the only way to register for the site
 currently. So when a user registeres their unique Twitter id will be
 stored into the database. Any thoughts or ideas?

--
Scott Wilcox

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

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


Re: [twitter-dev] all xauth access token revoke after oauth

2011-06-24 Thread Matt Harris
Hi Shinichi,

I don't quite follow your question but I think the following information is
close to what you are asking about.

When you take a user through the OAuth flow we do one of three things.

1. If the user has not authorized your application before a token at the
requested permission level will be granted.
2. If the user has already authorized your application, and the permission
level being requested has not changed, the existing token will be left
unchanged and returned.
3. If the user has already authorized your application, but the permission
level being requested is different to the one they already allowed, we will
destroy the old token and create a new one at the new permission level.

For xAuth and applications with Read, Write,  Direct Messages (RWD) this
means a couple of things.

1. Performing xAuth before the user has been through the OAuth flow will
mean the original RW token will be destroyed and a new RWD one will be
created.
2. Performing xAuth after the user has been through the OAuth flow will mean
the RWD token is maintained. We do this to ensure applications which use
xAuth do not bounce between RW and RWD tokens.

To illustrate this consider a Read, Write,  Direct Messages application
which uses both xAuth and OAuth. In this example assume the user hasn't used
the application before.

1. The application prompts the user to login with xAuth.
2. The application performs xAuth and receives a Read  Write token and
secret (RW).
3. The application now asks the user to update their authorization to allow
reading of direct messages.
4. The application starts the OAuth flow and takes the user to
https://api.twitter.com/oauth/authorize?oauth_token=abc123
5. The user accepts the RWD request and is redirected to the callback URL.
6. The application receives the callback and completes the OAuth flow to
receive a new RWD token and secret. This token is different to the one
issued during the xAuth flow.
7. Now the user goes to a secondary device to authorize their account on the
same application
8. The application prompts the user to login with xAuth.
9. The application performs xAuth and receives the same RWD token and secret
issued in step 6. This is because the user has already authorised the
application for RWD access to their account.

I hope that answers your question and explains what is going on when you mix
xAuth with OAuth.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Thu, Jun 23, 2011 at 9:58 PM, Shinichi Fujikawa fshin2...@gmail.comwrote:

 Hello!

 Was the problem that all access token of the xauth does revoke with the
 same consumer key after re-login oauth corrected today?
 It is different from yesterday's operation.

 --
 Shinichi Fujikawa
 http://movatwi.jp


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


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


Re: [twitter-dev] Poor documentation. For example, regarding lists. Suggestions for improvement.

2011-06-24 Thread Matt Harris
Hi Denzil,

Thanks for the suggestion. Do you think that would help or would it be
better to try and link to the console? Just curious about alternative ideas.

The reason I say this is POST and DELETE requests are difficult to write as
single example URLs. When we had them in the past they led to confusion with
OAuth signing.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 1:42 AM, Correa Denzil mcen...@gmail.com wrote:

 Matt :

 I suggest in the Example Requests you add the URL for the call. It will
 prevent much of the What URL to call? queries.

 --Regards,
 Denzil



 On Fri, Jun 24, 2011 at 4:55 AM, Matt Harris thematthar...@twitter.comwrote:

 Hi Dave,

 Thanks for your feedback, it's important for us to know when developers
 are not finding the information they are looking for.

 I have responded to your specific points inline:


 Issue #1: Valid version numbers

 I was unable to locate valid values for version. I tried 1.1.14,
 which I understand the current version to be from searching the site,
 but that causes a 404. It was only after digging around for examples
 that I noticed people using 1. A page describing valid version
 numbers should be linked from the word version.


 In the API documentation there is a version place marker in the example
 request URL. Currently only one version of the API exists, that version is
 1. This means any REST API queries will be of the format:
 https://api.twitter.com/1/statuses/user_timeline.json

 I've updated the API FAQ and Things Every Developer Should Know pages
 to include this information.
 http://dev.twitter.com/pages/every_developer
 https://dev.twitter.com/pages/api_faq

 Issue #2: Extremely unclear parameter passing

 As this call uses GET, and the documentation lists parameters you
 should include, this implies to me that you should use a query string.
 The docs list the following required parameters:

 * list_id - The numerical id of the list.
 * slug - You can identify a list by its slug instead of its numerical
 id. If you decide to do so, note that you'll also have to specify the
 list owner using the owner_id or owner_screen_name parameters.

 As it is not at all obvious how you discover the list_id or
 owner_id, I opted to use slug and owner_screen_name. However, if
 you

 $ curl
 http://api.twitter.com/1/lists/statuses.json?owner_screen_name=cnnslug=cnnnews

 you get

 {error:You must specify either a list ID or a slug and
 owner,request:\/1\/lists\/statuses.json?owner_screen_name=cnn}


 Notice that the response json lists the request with only the
 owner_screen_name parameter. I imagine that 1 or more things went
 wrong, possibly including:

 1. The API has a bug that is stripping the second parameter
 2. The documentation is incorrect, and you may not use slug and
 owner_screen_name to retrieve results.
 3. The documentation does not properly describe how you pass the
 arguments in the query string. Perhaps you're supposed to encode the
 entire string. I was not able to discern this.
 4. The documentation is incorrect about the url format.


 The request you are making is correct. The error is instead being caused
 by the way in which you are using your terminal. When using a terminal like
 this you need to remember to either quote your URL or escape the 's.

 This would make your request look like this:
 curl 
 http://api.twitter.com/1/lists/statuses.json?owner_screen_name=cnnslug=cnnnews
 



 Issue #3: No obvious way to discover list_id or owner_id


 user_ids are provided in all API responses which include a user object.
 The most common way of getting information about a user is through the
 users/show method or users/lookup method:
 http://dev.twitter.com/doc/get/users/show
 http://dev.twitter.com/doc/get/users/lookup

 list_id is available from the index of lists for a user. This request is
 the /1/lists request:
  http://dev.twitter.com/doc/get/lists

 Alternatively, if those values are unknown or you don't wish to look them
 up, you can provide the slug and screen_name as you have done in your
 example.


 Issue #4: Undocumented, un-obvious correct url

 I was finally able to retrieve the results using this url, pieced
 together from scattered examples.

 $ curl http://api.twitter.com/1/cnn/lists/cnnnews/statuses.json


 So far as I could tell, the documentation in no way implies that you
 could use such a url.


 This is the deprecated way of making lists requests. It is documented on
 this page of the developer resources site:
 http://dev.twitter.com/doc/get/:user/lists/:id/statuses

 I hope that helps explain a little bit more about the API. Let me know if
 this information is useful or what you would change and we'll see how we can
 incorporate it into the docs.

 Best,
 @themattharrishttps://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter

 --
 Twitter developer 

Re: [twitter-dev] User suggestions and User Suggestions Twitter

2011-06-24 Thread Matt Harris
Hi Denzil,

The suggested user methods return a list of @names which we think users
interested in a topic may be interested in following. As the name implies,
these are just suggestions.

Example calls for both:

 http://api.twitter.com/1/users/suggestions.json
Returns all of the suggested user categories, including slugs. An example
response and more information about the method is here:
https://dev.twitter.com/doc/get/users/suggestions

 http://api.twitter.com/1/users/suggestions/twitter.json
Returns some suggested accounts to follow related to the twitter category.
twitter in this case is the :slug referred to in the documented URL on this
page:
https://dev.twitter.com/doc/get/users/suggestions/:slug

Hope that answers your questions,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 1:50 AM, Correa Denzil mcen...@gmail.com wrote:

 Hi,

 I am unable to understand the API for 
 user/suggestionshttp://dev.twitter.com/doc/get/users/suggestionsand
 user/suggestions/twitterhttp://dev.twitter.com/doc/get/users/suggestions/:slug
  resources.
 It would be great if you highlight two particular aspects :


1. What do these API calls signify?
2. Example calls for both of these API resources


 Thanks,

 --Regards,
 Denzil

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


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


Re: [twitter-dev] Twitter widgets not using entities to present t.co links

2011-06-24 Thread Matt Harris
Great, thanks Tim.


@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 3:08 AM, Tim Meadowcroft meer...@gmail.com wrote:


 Thanks Matt, filed as a feature request rather than a defect

http://code.google.com/p/twitter-api/issues/detail?id=2250

 --
 T

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


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


Re: [twitter-dev] OAuth error

2011-06-24 Thread Matt Harris
Hi Sreejata,

Thanks for providing this information. Are you able to find out what the
server is actually sending to the Twitter API. The code you've provided
shows where the error is happening but not what information is being sent to
the API.

Without knowing what is being sent by your code it is hard to suggest
possible causes for the problem.
Do you know which OAuth library are you using?

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 5:51 AM, Sreejata Chatterjee gundad...@gmail.comwrote:

 Matt! Thank you SO much for the reply... I will try and explain what else I
 found out. A test example is:


 ?php

 define( CONSUMER_KEY,* );
 define( CONSUMER_SECRET,  );

 $oauth = new
 OAuth(CONSUMER_KEY,CONSUMER_SECRET,OAUTH_SIG_METHOD_HMACSHA1);
 $access_token = file_get_contents(access_token);
 $access_token_secret = file_get_contents(access_token_secret);
 $oauth-setToken($access_token, $access_token_secret);

 $url = http://api.twitter.com/1/statuses/home_timeline.xml;;

 $oauth-fetch($url);
 $json = json_decode($oauth-getLastResponse(),true);
 print_r($json);

 ?

 Now, I tried this script and the same user (@Research4SML) from 3 different
 servers. The results are:

 CentOS, PHP 5.2.17, and Ubuntu, PHP 5.3.2:

 PHP Fatal error:  Uncaught exception 'OAuthException' with message
 'Invalid auth/bad request (got a 400, expected HTTP/1.1 20X or a redirect)'
 in /var/www/vhosts/default/iresearch/Scholar/oauth/test.php:14
 Stack trace:
 #0 /var/www/vhosts/default/iresearch/Scholar/oauth/test.php(14):
 OAuth-fetch('http://api.twit...')
 #1 {main}
   thrown in /var/www/vhosts/default/iresearch/Scholar/oauth/test.php on
 line 14



 From another CentOS machine, PHP 5.2.10, IT WORKS! (Of course I had to
 generate new tokens for every server).
 I did the curl http://api.twitter.com/1/account/rate_limit_status.xml;
 call from all the servers and there is no rate limiting affecting the
 results. I need it to work from the CentOS, PHP 5.2.17 machine.

 What might be the reason behind this behavior and how can I fix it?



 On Thu, Jun 23, 2011 at 6:06 PM, Matt Harris thematthar...@twitter.comwrote:

 Hi,

 A 400 error indicates something in the request you are making is
 malformed. Are you using a library to make requests or did you create your
 own wrapper?

 If you created your own library for making requests you may instead want
 to try one of the libraries listed on our developer resources site:
 http://dev.twitter.com/pages/libraries

 Moving forward, to help identify the cause of the 400 could you share the
 the request header and URL you are sending and the API headers and response
 body returned. Remember to remove any OAuth secrets from the code you share.

 Best
 @themattharrishttps://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter




 On Mon, Jun 20, 2011 at 12:39 PM, antiphobe gundad...@gmail.com wrote:

 The time was in sync and I still used ntpd to reset it. No use.

 I tried to use the same script on different server, same user - 400
 error (bad request)
 Tried on new server, different user, same script - it works!

 So I'm lead to believe something might be wrong with the twitter user
 a/c? Is that known to happen?

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


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




 --
 Sreejata
 ~~
 MagicLamp Software Solutions Inc.
 Halifax, Nova Scotia
 902-482-7103, 902-448-6357
 http://www.magiclampsoft.com

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


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


[twitter-dev] Re: Update status d returns success response but doesn't show up on web

2011-06-24 Thread R
'w' is another

On May 13, 10:34 am, e.p.c. epcoste...@gmail.com wrote:
 On May 13, 6:29 am, SN Testing sngtwt...@gmail.com wrote:

  when update status with one character d returns success response but
  the new status doesn't show up on web; when update status with a or
  b or c or e, it shows up on web, so the character d is black
  listed?

 d' as the first non-blank byte is the command/code for direct message.

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


Re: [twitter-dev] Search Api limit

2011-06-24 Thread Matt Harris
Hi Alessandro,

We've produced a small guide on using search that explains the search rate
limits a little more.

You can find the page here:
https://dev.twitter.com/pages/using_search

In it we say:

The Rate Limits for the Search API are not the same as for the REST API.
When using the Search API you are not restricted by a certain number of API
requests per hour, but instead by the complexity and frequency.

As requests to the Search API are anonymous, the rate limit is measured
against the requesting client IP.

To prevent abuse the rate limit for Search is not published. If you are rate
limited, the Search API will respond with an HTTP 420 Error. {error:You
have been rate limited. Enhance your calm.}.


I hope that explains what is going on,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 2:08 AM, Alessandro alessandro.marrone...@gmail.com
 wrote:

 Hi

 I'm using the search api (for example:
 http://search.twitter.com/search.rss?q=%23juventusrpp=100page=4)
 I read here: http://search.twitter.com/api/ this:

 We do not rate limit the search API under ordinary circumstances,
 however we have put measures in place to limit the abuse of our API.
 If you find yourself encountering these limits, please contact us and
 describe your app's requirements.

 The limit seems random: sometimes I do 150 requests sometimes 300,
 generally, after 5 minutes I can do other requests.

 I was wondering if is it possible do more requests

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


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


[twitter-dev] Deleting Extra Callback URLs

2011-06-24 Thread DustyReagan
I can't seem to delete any of my apps extra callback URLs at
dev.twitter.com. I just get an error that says:

Sorry, a temporary error occurred.
Please try again later.

I've tried again later, and the problem persists.

Anyone else having this problem?

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


Re: [twitter-dev] Get Twitter Statuses based on a timestamp

2011-06-24 Thread Matt Harris
Hi Shashank,

The Twitter REST API doesn't allow you to restrict the date returned by date
or time but we do allow you to provide a since_id and max_id. If you know
the ID of a Tweet that happened after the maximum timestamp you are
interested in you could pass it as max_id.

Alternatively, if you want to look at data that happened in the last few
days you can use the until parameter of the search API. More information
about that parameter can be found here.
http://dev.twitter.com/doc/get/search

One other way you could do this is to monitor Tweets as they happen. By
using the Streaming API you can open a connection before the event/time you
are interested in, and then close the connection when you don't want any
more. To restrict Tweets to one user you can use the filter method and
follow one user ID. More information about the Streaming API is here:
http://dev.twitter.com/pages/streaming_api

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 1:44 AM, Shashank cooldude17202...@gmail.comwrote:

 Hi Guys,
 I am new to use twitetr api, but managed to understand it to some
 extent. But here i am stuck in some problem, i want to get user status
 updates,  but not all updates. I want a way to just provide a
 timestamp, and let the twitter api get statuses done by the user till
 that particular timestamp.

 Hope i am able to explain my problem clearly.

 Can anyone tell me a way of how to do this??

 Thanks in advance.

 Shashank Singh

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


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


Re: [twitter-dev] To Get Twitter Follower list

2011-06-24 Thread Matt Harris
Hi Abhishek,

It looks like you are using a particular library to make requests. I'm not
familiar with which library it is or how it works.

From the Twitter API point of view the request the library should be making
is the followers/ids method. This is documented on our developer resources
site:
http://dev.twitter.com/doc/get/followers/ids

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 12:10 AM, Abhishek mehta 
abhishekmehta.virtuei...@gmail.com wrote:

 hi
 I am trying to get Twitter Follower list using the following methog
  [_engine getFollowersIncludingCurrentStatus:YES];
 but this method when i am printing result on console i am getting the
 following result
 42EAC3DE-2B8A-4C04-84E2-912460060C75

 but i need a follower list name when i log in twitter using my login
 id and password

 thanks in Advance

 With Regards
 Abhishek

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


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


Re: [twitter-dev] Re: Update status d returns success response but doesn't show up on web

2011-06-24 Thread Matt Harris
Hi,

This is expected behavior and is caused by the SMS commands. You can find a
complete list of the commands and their aliases on our help site:
https://support.twitter.com/entries/14020-official-twitter-text-commands

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 3:40 PM, R r4eem...@gmail.com wrote:

 'w' is another

 On May 13, 10:34 am, e.p.c. epcoste...@gmail.com wrote:
  On May 13, 6:29 am, SN Testing sngtwt...@gmail.com wrote:
 
   when update status with one character d returns success response but
   the new status doesn't show up on web; when update status with a or
   b or c or e, it shows up on web, so the character d is black
   listed?
 
  d' as the first non-blank byte is the command/code for direct message.

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


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


Re: [twitter-dev] Re: error 401 from oauth, starting a few days ago

2011-06-24 Thread Matt Harris
Thanks. I was asking about the code as Taylor made a few suggestions about
issues with your code. I was wondering if you had implemented them yet.

In particular have you updated your URLs to use the correct domain with the
/1 included. For example:
http://api.twitter.com/1/statuses/user_timeline.xml
and have you removed the oauth_token_secret from your authorisation header?

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 9:25 AM, arlomedia a...@arlomedia.com wrote:

 The response body only includes the text of the error message (This
 method requires authentication) and a copy of my request URI.

 I included my complete request including all headers in an earlier
 post in this thread; is that what you meant by authorization header/
 parameters?

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


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


Re: [twitter-dev] Twitter Search API - completeness

2011-06-24 Thread Matt Harris
Thanks for highlighting this typo. I've updated that page so it should be
correct now.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 10:58 AM, Kstolen Kstolen kstole...@gmail.comwrote:

 The Twitter Search API docs (http://dev.twitter.com/pages/
 using_search#)
  say: Search is focused in relevance and not completeness. This means
 that some Tweets and users may not be missing from search results. If
 you want to match for completeness you should consider using the
 Streaming API instead.

 Should this be : This means that some Tweets and users may be missing
 from search results. ?

 That would seem to make more sense.

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


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


Re: [twitter-dev] Can't Get OAuth To Work On My Site

2011-06-24 Thread Matt Harris
Hi David,

Thanks for asking. It's fine to send me the file.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 2:06 PM, David Moore glk.da...@gmail.com wrote:

 I took it off the site for now, but the site is php... It was acting like
 it was going to let me register with Twitter, I verified my account and
 allowed it... but when it returned to my site nothing happened. It didn't
 login or make a new account like it was supposed to. After that it started
 to say that my token was used already. Can I send you the file I use for my
 Twitter Oauth? Thanks.

 On Fri, Jun 24, 2011 at 12:31 PM, Matt Harris 
 thematthar...@twitter.comwrote:

 Hi David,

 Can you explain a little more about your setup and what you mean when you
 say it isn't working. For example:

 * What language are you using?
 * Are you using a library?
 * How far in the process does the OAuth flow get?
 * Are you seeing any error messages in your code or logs?

 If you can share this information we'll be able to provide some guidance
 on what to do.

 Best,
 @themattharrishttps://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter




 On Thu, Jun 23, 2011 at 3:35 PM, David glk.da...@gmail.com wrote:

 Hi, I was wondering if anyone could help me? If you go to jesusay.com
 and click login you'll see the Twitter Oauth button... Can someone
 test it and maybe tell me what I'm doing wrong? It doesn't work.
 Thanks.

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


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




 --
 Seek God's mercy and you'll find it - www.GodsMercy.net

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


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


Re: [twitter-dev] How many REST calls do you save with the streaming API?

2011-06-24 Thread Fabien Penso
On Thu, Jun 23, 2011 at 2:09 PM, Matt Harris thematthar...@twitter.com wrote:
 Fabien,
 Thanks for sharing this insight into how much the Streaming API is helping
 reduce the API calls you are making.
 It would be really interesting to hear the difference other developers are
 seeing.

+1, and if only the streaming API was including private lists tweets...

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


Re: [twitter-dev] Deleting Extra Callback URLs

2011-06-24 Thread Matt Harris
We've had reports of this in the past but haven't been able to track down
the exact cause. Could you send me the application ID which is exhibiting
this problem so I can give the engineers an active example.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 24, 2011 at 3:43 PM, DustyReagan dustyrea...@gmail.com wrote:

 I can't seem to delete any of my apps extra callback URLs at
 dev.twitter.com. I just get an error that says:

 Sorry, a temporary error occurred.
 Please try again later.

 I've tried again later, and the problem persists.

 Anyone else having this problem?

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


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


Re: [twitter-dev] Can't Get OAuth To Work On My Site

2011-06-24 Thread David Moore
Thanks so much here's the file.

On Fri, Jun 24, 2011 at 4:39 PM, Matt Harris thematthar...@twitter.comwrote:

 Hi David,

 Thanks for asking. It's fine to send me the file.

 Best,
 @themattharrishttps://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter



 On Fri, Jun 24, 2011 at 2:06 PM, David Moore glk.da...@gmail.com wrote:

 I took it off the site for now, but the site is php... It was acting like
 it was going to let me register with Twitter, I verified my account and
 allowed it... but when it returned to my site nothing happened. It didn't
 login or make a new account like it was supposed to. After that it started
 to say that my token was used already. Can I send you the file I use for my
 Twitter Oauth? Thanks.

 On Fri, Jun 24, 2011 at 12:31 PM, Matt Harris 
 thematthar...@twitter.comwrote:

 Hi David,

 Can you explain a little more about your setup and what you mean when you
 say it isn't working. For example:

 * What language are you using?
 * Are you using a library?
 * How far in the process does the OAuth flow get?
 * Are you seeing any error messages in your code or logs?

 If you can share this information we'll be able to provide some guidance
 on what to do.

 Best,
 @themattharrishttps://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter




 On Thu, Jun 23, 2011 at 3:35 PM, David glk.da...@gmail.com wrote:

 Hi, I was wondering if anyone could help me? If you go to jesusay.com
 and click login you'll see the Twitter Oauth button... Can someone
 test it and maybe tell me what I'm doing wrong? It doesn't work.
 Thanks.

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


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




 --
 Seek God's mercy and you'll find it - www.GodsMercy.net

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


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




-- 
Seek God's mercy and you'll find it - www.GodsMercy.net

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


PIN-code flow ? Re: SOLVED Re: [twitter-dev] Needs object from desktop application ?

2011-06-24 Thread Ari Endo
Hello Matt,

This is Ari again.
I am developing desktop application referring:
http://dev.twitter.com/pages/auth

It says just above OAUTH AUTHENTICATION FLOW that
The flow varies slightly when using a desktop application
with what's called the PIN-mode flow or exchanging login credentials
using xAuth.

In the last part of Sending the user to authorization section,
it also says We'll see how the PIN code is used in the next step.
But I cannot find any explanation of PIN code usage anywhere.

I wonder I should use PIN code as oauth_verifier.
Is it right?
I am looking forward to hear your kind advice.

Thanks in advance,
Ari


Matt Harris wrote (2011/06/25 4:35):
 Hey Ari,

 It's great to hear you worked this out and got it working. Also, thank
 you for sharing the solution that worked for you.

 Best,
 @themattharris
 https://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter



 2011/6/23 Ari Endo arien...@gmail.com mailto:arien...@gmail.com

 Dear Matt,

 Your question solved my problem.
 Actually, the signature itself and signature part in authorization
 header were different!

 I have urlencoded the signature and again urlencoded the
 authorization header.
 As a result, signature was urlencoded twice which came different
 from once urlencoded signature.
 I have been thinking it makes no harm urlencoding many times, but
 it was not.

 By urlencoding authorization header except the signature part, I
 have got 200 OK.

 Thank you so much for your kind support. Say thank you to Tom as well.
 As I am a newcomer to twitter application development,
 please help me again when I might come across other troubles ahead.

 Sincely,
 Ari Endo


 Matt Harris wrote (2011/06/24 9:21):
 Hi Ari,

 I'm not familiar with VBA enough to comment on the code, but if
 you could provide an example of the basestring created,
 authorization header and signature (remember to exclude any
 secrets) then we can take a look at what could be going wrong.

 Best,
 @themattharris
 https://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter



 2011/6/23 Ari Endo arien...@gmail.com mailto:arien...@gmail.com

 Dear Tom,

 Here is my vba code, just for your information.
 It returns 401 Unauthorized,
 Failed to validate oauth signature and token

 I appreciate if you give me a hint.

 -
 Private Sub cbRequestToken_Click()

 Const urlRequestToken As String =
 https://api.twitter.com/oauth/request_token;
 Const oauth_consumer_secret As String = (my consumer secret)
 Dim timestamp As Long
 Dim strBase As String
 timestamp = DateDiff(s, #1/1/1970#, DateAdd(h, -9, Now))
 Dim param As New Scripting.Dictionary (hash array)
 param(oauth_callback) = oob
 param(oauth_consumer_key) = (my consumer key)
 param(oauth_nonce) = CStr(timestamp + 1)
 param(oauth_signature_method) = HMAC-SHA1
 param(oauth_timestamp) = CStr(timestamp)
 param(oauth_version) = 1.0

 strBase = POST  urlEncode(urlRequestToken)   
 urlEncode(sortedParamConnected(param))
 param(oauth_signature) =
 urlEncode(hmac_sha1(oauth_consumer_secret  , strBase))

 Dim strHeader As String
 strHeader = OAuth 
 Dim i As Integer
 For i = 0 To param.Count - 1
 strHeader = strHeader  param.Keys(i)  = 
 urlEncode(param.Items(i))  
 If i  param.Count - 1 Then strHeader = strHeader  , 
 Next

 Dim xmlhttp As New MSXML2.xmlhttp
 xmlhttp.Open POST, urlRequestToken, False
 xmlhttp.setRequestHeader Authorization, strHeader
 xmlhttp.send

 If xmlhttp.statusText  OK Then Exit Sub

 End Sub

 There are several Excel VBA application which can be
 authenticated.
 The point is they make a twitter class and make an object to
 access.
 I am developing without using class (object-oriented).

 1. my time is correct (UTC)
 2. my signature is correct (compared with the sample in twitter
 documentation)
 3. when URL is https://api.twitter.com/1/, 404 Not found came
 back

 Thank you in advance,
 Ari


 Tom van der Woerdt schrieb (2011/06/11 9:21):
  A desktop authentication flow usually includes a callback
 with a
  custom scheme (myapp://redirect) or xAuth, while a server
 application
  will usually use a normal callback
 (http://example.com/callback) with
  the normal OAuth flow.
 
  However, this won't cause the Woah there! error you get.
 Just like
  anything else related to the programming itself: Twitter
 

[twitter-dev] Access tokens changing on their own?

2011-06-24 Thread Nicholas Chase
Today, for the second or third time in a couple of months, my 
application access tokens seem to have changed on their own.  My app was 
working fine, and then all of a sudden I started getting authentication 
errors.  I went and checked, and my access tokens had changed.


Do they change regularly?  They they change when I access a particular 
page or something?


  Nick

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


[twitter-dev] Re: Deleting Extra Callback URLs

2011-06-24 Thread DustyReagan
Sent via email. Thanks Matt!

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


[twitter-dev] 401 Unauthorized in Python/Twisted app

2011-06-24 Thread Eryn Wells
Hello all,

I'm quite new to OAuth and the Twitter API, and this is my first post to this 
list.

I'm working on an app in Python using the Twisted framework. It uses brosner's 
fork of python-oauth2[1] to do the initial authentication and subsequent 
request signing. I'm using the PIN code flow for authentication. Do access 
tokens need to be generated every time you start the app, or can they be stored 
between runs and reused? If so, how long are the valid? Right now, my code 
writes the access token and secret out to a file and recovers it the next time 
it starts. The procedure seems to go just fine – I don't get any errors – but I 
can't really verify that everything is Correct because I don't really know what 
I'm looking for…

Second thing, I'm at the point where I'm trying to do the initial connection to 
https://userstream.twitter.com/2/user.json. I'm using SSLConnect and 
web.HTTPClient, if that helps… I write out the command (GET url), and the 
headers (a Host and an Authorization header). The OAuth library generates the 
following Authorization header content. I get back a 401 Unauthorized error 
with a WWW-Authenticate: Basic header. I've heard from @twitterapi that User 
Streams require OAuth, so why am I getting a Basic auth response?

OAuth realm=Firehose, oauth_nonce=25622603816219309853125867384777, 
oauth_consumer_key=cut, oauth_signature_method=HMAC-SHA1, 
oauth_version=1.0, oauth_token=cut, 
oauth_signature=1AV5YG4DsfCV4jDoQcOCOmxZ2Gw%3D

Anything obvious there that I'm doing wrong?

Thanks,
Eryn

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