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

2011-06-23 Thread Ari Endo
Dear Tom,

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 is correct
>>>
>>> Tom
>>>
>>>
>>> On 6/10/11 10:45 AM, Ari Endo wrote:
 Dear Tom,

 Never ever did I hit the rate limit.
 I call only once to get the authentication token.

 At most, only several times for trials.
 Thank you for your reply,

 Ari

 Tom van der Woerdt wrote (2011/06/10 17:38):
> "Woah there" - sounds like you are hitting a rate limit. If you don't
> authenticate your calls, you may only make 150 API calls per hour.
>
> Tom
>
> On 6/10/11 12:54 AM, ari_endo wrote:
>> Hello, I am developing Twitter AP with Excel VBA.
>> When accessing with an object generated from twitter class, it
>> works.
>> But only with XMLHttpRequest (without object) it gets "Woah there"
>> message.
>>
>> Is object-oriented programming needed when developing desktop
>> applications?
>> I need reference for desktop application.
>> I appreciate if any site is introduced.
>>
>> Thank you in advance,
>> Ari Endo
>>
>

-- 
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] Needs object from desktop application ?

2011-06-23 Thread Ari Endo
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 is correct
>>>
>>> Tom
>>>
>>>
>>> On 6/10/11 10:45 AM, Ari Endo wrote:
 Dear Tom,

 Never ever did I hit the rate limit.
 I call only once to get the authentication token.

 At most, only several times for trials.
 Thank you for your reply,

 Ari

 Tom van der Woerdt wrote (2011/06/10 17:38):
> "Woah there" - sounds like you are hitting a rate limit. If you don't
> authenticate your calls, you may only make 150 API calls per hour.
>
> Tom
>
> On 6/10/11 12:54 AM, ari_endo wrote:
>> Hello, I am developing Twitter AP with Excel VBA.
>> When accessing with an object generated from twitter class, it
>> works.
>> But only with XMLHttpRequest (without object) it gets "Woah there"
>> message.
>>
>> Is object-oriented programming needed when developing desktop
>> applications?
>> I need reference for desktop application.
>> I appreciate if any site is introduced.
>>
>> Thank you in advance,
>> Ari Endo
>>
>

-- 
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] Streaming API with start_date and end_date

2011-06-23 Thread JackRabbit
Hi Guys,

is it possible to query streaming api with filter and include
start_date and end_date, so that developer can track or filter by date
range? If yes, that could be awesome, if no, would you mind please to
add this feature?

Why it is needed because it would be great if we can track keyword
from previous date where we have missed the tweets. For event
organizer and finance reports application like us, this feature is
very valuable.

Many Thanks,
Jack

-- 
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] Switching Application Type to "Browser"

2011-06-23 Thread Victoria
Hello,

I am modifying my Mac Twitter client to use OAuth, but I receive 401
errors when the app attempts to acquire a request token.

I substituted a consumer key/secret from a test app, and that didn't
work either. However, when I switched the test app's Application Type
to "Browser" and added a Callback URL, it did work.

I assume I just need to switch my real app's type to "Browser" now,
but I wanted to check—will the users of the old version of my app run
into any problems if I do this?

Thanks,
Victoria

-- 
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] http://groups.google.com/group/twitter-development-talk

2011-06-23 Thread dalvir
I am  using the following code. This was working fine.
 oAuthTwitter oAuth = new oAuthTwitter();
oAuth.Token = "Token";
oAuth.TokenSecret = "secrentoken";
TwitterToken objtwitter = new
TwitterToken();
 
oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, "http://twitter.com/
statuses/user_timeline.xml", null);//This line return the following
401 error
But Now it stoped to work. and returning the error
The remote server returned an error: (401) Unauthorized.

Why this error is coming?

-- 
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] http://groups.google.com/group/twitter-development-talk

2011-06-23 Thread kamesh SmartDude
use the API Url.

https://twitter.com/1/statuses/user_timeline.xml

//kamesh


On Thu, Jun 23, 2011 at 1:02 PM, dalvir  wrote:

> I am  using the following code. This was working fine.
>  oAuthTwitter oAuth = new oAuthTwitter();
>oAuth.Token = "Token";
>oAuth.TokenSecret = "secrentoken";
>TwitterToken objtwitter = new
> TwitterToken();
>
> oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, "http://twitter.com/
> statuses/user_timeline.xml", null);//This line return the following
> 401 error
> But Now it stoped to work. and returning the error
> The remote server returned an error: (401) Unauthorized.
>
> Why this error is coming?
>
> --
> 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: Introducing the Follow Button

2011-06-23 Thread David Huang
Seems like my issue was fixed during maintenance..
http://status.twitter.com/post/6816501955/follow-button-off-line

Thanks,
David

On Jun 15, 11:06 am, David Huang  wrote:
> Hi all,
>
> I was testing the new Follow button on my webpage and noticed that
> "one-click" only works when the user have signed in to Twitter during
> the same browsing session. If I relaunched the browser, even though
> I'm still logged in to Twitter, clicking the Follow button would open
> a popup. Am I missing anything, or is this the expected behavior?
>
> Thanks,
> David
>
> On May 31, 1:07 pm, Arnaud Meunier  wrote:
>
>
>
>
>
>
>
> > Hey developers,
>
> > Today we're launching theFollowButton!  Similar to the Tweet Button,
> > it's a new widget that lets users easilyfollowa Twitter account from
> > any web page. TheFollowButton has a single clickfollowexperience,
> > simple implementation model, and is configurable to fit the needs of
> > your website.
>
> > Read our announcement on the Twitter blog, and use the resources below
> > to set up your ownFollowButton:
>
> > - Create aFollowButton here:http://twitter.com/about/resources/followbutton
> > - Detailed documentation:http://dev.twitter.com/pages/follow_button
>
> > We’ve also added a Javascript layer to our Buttons and Web Intents
> > that makes it possible for you to detect how users are interacting
> > with these tools, and to hook them up to your own web analytics. More
> > details on:http://dev.twitter.com/pages/intents-events
>
> > We're excited to see how you guys will implement theFollowButton.
> > Let us know what you think, or if you have any questions.
>
> > Arnaud / @rno

-- 
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: Does twitter offer any hook to register a click on the tweet button iframe?

2011-06-23 Thread Drew
Thanks. That almost works. We have multiple (one for each post) JS
twitter buttons (which convert to iframes) on a page.

According to http://dev.twitter.com/pages/intents-events

I can use target to get a DOM reference to which one was clicked:

target  a DOM node reference to HTML element or IFRAME. This value will
correspond to the original inciting DOM element. Use this value to
differentiate between different intents or buttons on the same page.

And it claims to work on Tweet buttons, but when I do this:

twttr.events.bind('click', function(event) {
alert("target:"+event.target);
});

It always results in target:null

I'm assuming there's some kind of XSS issue with the iframe? Or am I
missing something?

Thanks!


On Jun 22, 3:20 pm, Taylor Singletary 
wrote:
> While we don't necessarily offer "click tracking" from within the IFRAME, we
> do have a set of hooks for the Tweet Button (and Follow Button and Web
> Intents) that will likely give you the tools to accomplish 
> this:http://dev.twitter.com/pages/intents-events
>
> You can track the clicks on the Tweet Button itself (and both of its
> regions) as well as the completion/conversion of the intended actions that
> occur within the popup (like when tweets are tweeted and related accounts
> are followed).
>
> @episod  - Taylor
> Singletary
>
>
>
>
>
>
>
> On Wed, Jun 22, 2011 at 3:09 PM, Drew  wrote:
> > We have all kinds of click events on our pages to figure out how
> > people are interacting with our page. ie. someone clicks a tab here,
> > or a like button there, etc.
>
> > Since clicks on an iframe can't be accessed, other companies like
> > Facebook offer a hook into it:
>
> > FB.Event.subscribe('edge.create', function(response){
> >           //do tracking ping
> > })
>
> > Does Twitter offer something similar? If not, why not?
>
> > --
> > 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] Switching Application Type to "Browser"

2011-06-23 Thread Andrew W. Donoho

On Jun 23, 2011, at 02:51 , Victoria wrote:

> I assume I just need to switch my real app's type to "Browser" now,
> but I wanted to check—will the users of the old version of my app run
> into any problems if I do this?



As I understand it, the authorization tokens that exist do not change. They 
will just stop being authorized to send or read direct messages. IOW, old 
tokens are being limited in a new way. Your new version will be able to switch 
to new tokens to return a user's capabilities to what they once had.



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] Streaming API with start_date and end_date

2011-06-23 Thread Trevor Dean
This would be a great feature, any word on this yet?

Trevor Dean | Director
big time design & communication Inc. 
647 234 8198

Visit http://www.bigtimedesign.ca for more information

On 2011-06-23, at 7:13 AM, JackRabbit  wrote:

> Hi Guys,
> 
> is it possible to query streaming api with filter and include
> start_date and end_date, so that developer can track or filter by date
> range? If yes, that could be awesome, if no, would you mind please to
> add this feature?
> 
> Why it is needed because it would be great if we can track keyword
> from previous date where we have missed the tweets. For event
> organizer and finance reports application like us, this feature is
> very valuable.
> 
> Many Thanks,
> Jack
> 
> -- 
> 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] trying to add...

2011-06-23 Thread mire...@fortheloveofcakes.ca
hi

I'm trying to add the twitter button on my website and everytime i
copy the code and paste it in the HTML area it gives me the code even
after I publish it...why? how do i fix this?

-- 
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] Streaming API with start_date and end_date

2011-06-23 Thread Taylor Singletary
This is not within the scope of the real-time streaming API which serves the
purpose of streaming tweets & related events as they happen with very
limited support for any kind of rewind behavior.

On Thu, Jun 23, 2011 at 9:42 AM, Trevor Dean  wrote:

> This would be a great feature, any word on this yet?
>
> Trevor Dean | Director
> big time design & communication Inc.
> 647 234 8198
>
> Visit http://www.bigtimedesign.ca for more information
>
> On 2011-06-23, at 7:13 AM, JackRabbit  wrote:
>
> > Hi Guys,
> >
> > is it possible to query streaming api with filter and include
> > start_date and end_date, so that developer can track or filter by date
> > range? If yes, that could be awesome, if no, would you mind please to
> > add this feature?
> >
> > Why it is needed because it would be great if we can track keyword
> > from previous date where we have missed the tweets. For event
> > organizer and finance reports application like us, this feature is
> > very valuable.
> >
> > Many Thanks,
> > Jack
> >
> > --
> > 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 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 home time line in TWITTER works?

2011-06-23 Thread Matt Harris
Hi Grace,

Be default the API returns the most recent  Tweets/ReTweets created by users
being followed by the authenticating user.
When you pass a since_id to the home_timeline method this means the API will
return to you the 20 most recent Tweets created since that ID. What this
means is you won't necessarily find the Tweet with an ID equal to since_id
being returned in your request.

To go further back in time you must also pass a max_id with the request.
This changes the API request from:
   "All Tweets in the home timeline since since_id"
to
   "All Tweets in the home timeline created since since_id and up to max_id"

A few examples may help demonstrate this. In all cases assume the timeline
contains Tweets with IDs 1 to 1000, and that count for our requests will
always be 20.

Request: /1/statuses/home_timeline.json?since_id=1
Response: Tweets 1000 to 980.

Request: /1/statuses/home_timeline.json?since_id=900&max_id=1000
Response: Tweets 1000 to 980.

Request: /1/statuses/home_timeline.json?since_id=900&max_id=950
Response: Tweets 950 to 930.

Request: /1/statuses/home_timeline.json?since_id=1&max_id=50
Response: empty -- this is because home_timeline only has access to the last
800 Tweets

Request: /1/statuses/home_timeline.json?since_id=200&max_id=250
Response: Tweets 250 to 230.

Hope that helps,

@themattharris 
Developer Advocate, Twitter



On Wed, Jun 15, 2011 at 11:15 PM, Grace  wrote:

> hello everyone..
>
> I try to get tweets from user's home using home method.
>
> http://api.twitter.com/version/statuses/home_timeline.format
>
> If I use paging and set as the following..
>
> Example.
>
> paging.setSinceId(09L);
>
> What would be the expected result returned from API ?
>
> in my home, there will be like following tweets.
> 
> 50( The most recent one)
> 
> 40
> 39
> .
> 23
> 22
> 21
> 20
> ..
> 13
> 12
> 11
> 10
> ..
> 03
> 02
> 01
> **
>
> Actually, I should receive Tweets ( 10 to 20 ) . right?
>
> but, when I called the API, it seems like the returned result is
> ( 30 to 50).
>
> Is it the correct way of working API ? or do I miss something?
>
> If I want to get Tweets ( 10 to 20 ) , how can I do it?
>
> Regards,
> Grace
>
> --
> 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 widgets on both my sites suddenly stopped working

2011-06-23 Thread Matt Harris
Hi Zippy,

The search index is limited in how far back it can go. What this means is if
the hashtag you are searching for hasn't been used in the last week there
won't be any results returned.

In addition, not all Tweets are indexed by the Search API. This is explained
a little more in our user support article:

https://support.twitter.com/groups/32-something-s-not-working/topics/118-search-problems/articles/66018-i-m-missing-from-search

Have the hashtags you are tracking been used recently?

Best,
@themattharris 
Developer Advocate, Twitter



On Thu, Jun 16, 2011 at 8:38 AM, Zippy  wrote:

> I used Twitter's own Search widget code generator to build search
> widgets for two of my sites, InterestingAmerica.com and
> HightPerformanceDataCenters.com to pick up messages tweeted from the
> sites using their respective hashtabs (#IntAm and #hpdcnews). (take a
> look -- they are on the right side of all of the pages)  A few days
> ago, however, the boxes on all of the pages stopped picking up new
> tweets.
>
> Strangely, when I go back to the Twitter Search widget code generator
> and build new ones and trial test them right there, they still don't
> pick up #IntAm or #hpdcnews.  Perhaps the whole twitter stream doesn't
> like my hashtags...?
>
> --
> 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-23 Thread Matt Harris
Hi Karthikeyan,

The Twitter API doesn't provide a way for an application to log a user into
Twitter.com.
What information are you wanting to provide to the users of your
application?

Best,
@themattharris 
Developer Advocate, Twitter



On Thu, Jun 16, 2011 at 10:02 PM, Karthikeyan P wrote:

> Thanks Scott Wilcox for your information,
>
> I want to achieve the following using oauth twitter API or xauth... or some
> script
>
> 1) I have an icon(twitter) in my air application which has some background
> details like url(www.twiiter.com) , username , password.
>
> 2) if i click the twitter icon, i want the twitter site to login
> automatically and to be rendered on my AIR browser(webkit) .
>
> 3) It can be anything like Twitter API or some script which does the login
> mechanism.
>
> I am stuck with this , How do i login to twitter using auto login..
>
> I am looking at the oauth but i can get only the data in the respective
> twitter account, I dont want the data , I want it to be logged in and
> redirect it to the home page. This is the flow i want to achieve in my
> application.. can anyone help me on this.. thanks in advance.
>
> --
> 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-23 Thread Matt Harris
Hi Arlo,

When an error is returned by the API we include some information about the
cause in the response body. Take a look at that response body and see if
that helps you resolve the problem.

If not, let us know what the error says and what your OAuth basestring and
authorization header/parameters are. Remember to remove your oauth and
consumer secrets though.

Best,
@themattharris 
Developer Advocate, Twitter



On Fri, Jun 17, 2011 at 8:07 AM, arlomedia  wrote:

> Just giving this a bump for Taylor.
>
> For anyone else, does the oauth-php example script work with your
> accounts? It works for me when accessing the public timeline as shown
> in the example, but if I change the request URL to access my user
> timeline (protected or unprotected) I get the authorization error.
>
> It would be helpful to know if the problem is with my account, the
> example script, or the oauth-php library.
>
> --
> 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] Post small text & link to twitter from my site

2011-06-23 Thread Matt Harris
Hi Santanu,

The example code you have posted below makes use of basic authentication
(username and password). The Twitter API hasn't support this method of
authentication for a while and instead requires developers to implement
OAuth.

We have some guidance about how to make this transition on our developer
resources site:
http://dev.twitter.com/pages/basic_to_oauth

You may also find our single user token example helpful:
http://dev.twitter.com/pages/oauth_single_token

Best,
@themattharris 
Developer Advocate, Twitter



On Thu, Jun 16, 2011 at 11:33 PM, earth technology 8 <
earthtechnolo...@gmail.com> wrote:

> Hi All,
>
> I have a news site. I want that when I post any news from my site, the
> news title (small text) and my site link automatically posted on my
> twitter account.
>
> I got below codes in internet, but the codes did not work. Please see
> this
>
>
> -
> $username = "twitter_username";
>$password = "twitter_password";
>$message = 'Small News Text';
>
>$url = 'http://twitter.com/statuses/update.xml';
>$curl_handle = curl_init();
>curl_setopt($curl_handle, CURLOPT_URL, "$url");
>curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
>curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
>curl_setopt($curl_handle, CURLOPT_POST, 1);
>curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message");
>curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
>$buffer = curl_exec($curl_handle);
>curl_close($curl_handle);
>if (empty($buffer)) {
> echo "".'Sorry, due to an error your Twitter
> status could not be updated! Please check your username/password!'." p>";
>} else {
> echo "".'Your Twitter status has successfully
> been updated!'."";
>}
>?>
>
> -
>
> If there is any API or PHP script, please send me. Waiting for reply
>
> Best Regards,
> Santanu
>
> --
> 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] Using xAuth in N8 (HELP)

2011-06-23 Thread Victor
Hello there, i am having troubles using the xAuth protocol in Widget
for nokia N8. I was using javascript and php with the oAuth protocol
and things went just fine, but now i don't have a clue where to
start... i just doesn't get iti read tutorials, and the official
docs in the sitebut without results.

Pliz help me.

Grettings.
Víctor

-- 
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] Getting 401 errors trying to send direct message

2011-06-23 Thread Matt Harris
Hi Chris,

On our developer resources page you can find some libraires which handle
this process for you. You may find these a helpful reference to see how
others have implemented the OAuth specification.

The libraries are at this link:
http://dev.twitter.com/pages/libraries

The 401 error can be returned for a couple of reasons. The response body the
API returns contains more information about the cause of the error. Often
this reason is enough to be able to know what action is needed in your code.

To answer your questions:

- From what I understand in the doc, do the parameters for a POST
request go in the body? (I saw a reference to adding them as query
params in the url string but that seems to have been removed).

POST parameters are best sent in the body of the request.

- Looking at the OAuth spec and the example on the auth page, can I
assume POST parameters are ordered alphabetically along with the other
params when building the base string? Do they have to be doubly url
encoded?

It is more correct to say parameters are sorted by name, using
lexicographical byte value ordering. If two parameters share the same name,
they are ordered according to their value.

One thing that may help is to think of the POST parameters the same as GET
parameters when you are constructing your basestring. To the OAuth signing
process the difference is the word POST, the rest of the signing process is
the same.

Best,
@themattharris 
Developer Advocate, Twitter



On Sat, Jun 18, 2011 at 7:22 AM, Chris Mowforth  wrote:

> Hey all, I'm playing around with the Twitter OAuth API, having rolled
> my own clients in both ruby and Objective-C. I've managed to authorise
> myself successfully and send status updates, but api methods like
> direct_messages/new always give me 401 errors.
>
> I know I'm missing something elementary in the way I'm making the
> calls, so I just want to clarify a couple of things:
>
> - From what I understand in the doc, do the parameters for a POST
> request go in the body? (I saw a reference to adding them as query
> params in the url string but that seems to have been removed).
>
> - Looking at the OAuth spec and the example on the auth page, can I
> assume POST parameters are ordered alphabetically along with the other
> params when building the base string? Do they have to be doubly url
> encoded?
>
> Here's a quick excerpt of the ruby client I put together:
> https://gist.github.com/1033130
>
> --
> 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] Tweets not appearing properly from our app.

2011-06-23 Thread 900
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


Re: [twitter-dev] Getting All Child Tweets From Paren Tweets.

2011-06-23 Thread Matt Harris
Hi Samyag,

Replies are not the easiest things to get out of Twitter and there isn't an
API method that will reliably do this for you. What you can do is follow the
in_reply_to_status_id chain using the /1/statuses/show API request. This
will allow you to trace a child Tweet back to it's parent(s).

Best,
@themattharris 
Developer Advocate, Twitter



On Sat, Jun 18, 2011 at 5:11 AM, samyag shah  wrote:

> hello,
>I m developing the iOS application which contains the twitter
> as one module. I wanted to know that does the Twitter provides the API
> for following senario:  Suppose user clicks on the " Patrent/Root/Main
> " Tweet then  I want all the "Child" tweets correspoding the " Patrent/
> Root/Main " tweets. I observed this senario happens on the " Website "
> but not on the authorized " Twitter iOS 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


Re: [twitter-dev] trending topics order

2011-06-23 Thread Matt Harris
Hi,

Yes, trending topic responses are returned in the order of most trending to
least trending. In the example you give Guille Franco is trending more than
Vuvuzela.

Best,
@themattharris 
Developer Advocate, Twitter



On Fri, Jun 17, 2011 at 7:09 PM, xkema  wrote:

> Hi there
>
> Are trending topics results, ordered from most-trendy topic to last
> trendy?
> ..
> ..
> ..
> consider a trends node like:
>
> "trends": [
>{
>  "name": "Guille Franco",
>  "url": "http://search.twitter.com/search?q=Guille+Franco";
>},
>{
>  "name": "#honestyhour",
>  "url": "http://search.twitter.com/search?q=%23honestyhour";
>},
>...
>...
>...
>...
>{
>  "name": "Vuvuzela",
>  "url": "http://search.twitter.com/search?q=Vuvuzela";
>}
>  ],
>
> Question again: Is"Guille Franco" most trending and "Vuvuzela" least
> trending. (for these ten result)
>
> --
> 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 add twitter login functionality to my site

2011-06-23 Thread Matt Harris
Hi Sheraz,

When you say you wish to add a Twitter login to your site do you mean you
want users to be able to sign into your site with their Twitter identity, or
that you want to be able to log them into Twitter.com?

If you want users to be able to sign-in into your website with their Twitter
identity you may find our Sign in with Twitter guidance helpful:
http://dev.twitter.com/pages/sign_in_with_twitter

The other situation isn't possible. The Twitter API does not provide a way
for you to log a user into twitter.com.

Best,
@themattharris 
Developer Advocate, Twitter



On Sat, Jun 18, 2011 at 4:14 AM, sheraz4pro  wrote:

> hi i am trying to integrate twitter login functionality to my site .
> can some body guide me how i can integrate it. i have read the
> documentations but unable to find any practical example.
>
> --
> 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: ABUIKit / TwUI ?

2011-06-23 Thread Matt Harris
Thanks for your interest in the library. We hope to have information about
it released soon. As soon as we do we'll let you know through the mailing
list and through @twitterapi.

Best
@themattharris 
Developer Advocate, Twitter



On Sun, Jun 19, 2011 at 1:52 PM, nfarina  wrote:

> *Bump*
>
> Also, any info about when TwUI will be available? Would love to use it
> in a project I'm working on.
>
>
> On Jun 11, 5:21 pm, SM  wrote:
> > I wasn't able to attend the announcement regarding ABUIKit /TwUI. Can
> > someone provide a summary of what was presented?
> >
> > 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] Login to twitter using the oauth

2011-06-23 Thread Matt Harris
Hi Karthi.

The Twitter API doesn't provide a way for an application to log a user
into Twitter.com.

Best,
@themattharris 
Developer Advocate, Twitter



On Sun, Jun 19, 2011 at 11:40 PM, karthi  wrote:

> hi i have used twitter oauth API libraries and i can use the API and
> authorize the application
> and i can able to post the tweets, I want to redirect it to the
> twitter's home page once authorized. How it can be done using the API.
> I should be able to login to twitter and see its home page say
> www.twitter.com when certain icon is clicked. This icon will have
> credential info (username and password) in background of the icon in a
> text file. and when the icon is pressed it takes the user
> to the twitter site and login by itself using the credential in the
> text file and shows the home page.
> This is the issue i am facing..Have anyone used twitter's API and
> help me to achieve the above
> task... Thanx...
>
> --
> 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] Follower count stuck...no one can follow me

2011-06-23 Thread Matt Harris
Hi Jeff,

When I visited the account page for @NYNYfans I was able to follow the
account successfully.
Is there an error returned when you try and follow the accounts?

Best,
@themattharris 
Developer Advocate, Twitter



On Sun, Jun 19, 2011 at 8:10 PM, activefan  wrote:

> I set up several dozen twitter accounts at the beginning of the year
> for the various departments in our sports news business.   We have an
> API for each account that autotweets stories from several locations.
> The accounts were growing well, and some got up into 600-800 followers
> and then stopped around April.   Our tweets continue to go out, but
> our follower count stopped and clicking FOLLOW from any other of our
> customer accounts does not allow them to follow us.  I fear that our
> accouts were blacklisted or marked with a limit that has our accounts
> now stuck... How can we fix this?
> \
>  account examples:   @NYNYfans   @BigDFans
>
> --
> 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-23 Thread Matt Harris
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
@themattharris 
Developer Advocate, Twitter



On Mon, Jun 20, 2011 at 12:39 PM, antiphobe  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


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

2011-06-23 Thread Matt Harris
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.

Best,
@themattharris 
Developer Advocate, Twitter



On Mon, Jun 20, 2011 at 1:53 PM, Fabien Penso  wrote:

> Hey,
>
> I thought some of you might wonder how many REST calls you save using
> the Streaming API instead, so here is a graph for my iPhone
> application http://2apn.com
>
> I usually do about 7k requests/hour (for lists, and stuff not
> available through the streaming API), but I had an temporary glitch in
> my streaming scripts and my REST scripts launched at full capacity,
> going from 7,000 requests / hour to 70,000 requests / hour.
>
> See the attached graph, over a day of history.
>
> --
> Fabien Penso
> @fabienpenso
>
> --
> 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] Placing follow us and tweet buttons together just impossible

2011-06-23 Thread Matt Harris
Hi Fernando,

You can instruct the follow button to hide the screen_name by passing the
parameter show_screen_name as false. When using data attributes this would
be written as data-show-screen-name="false".

Remember that the user’s screen_name must always be displayed next to the
Follow Button though. We cover this in the guidance on our developer
resources site:

http://dev.twitter.com/pages/follow_button#how-can-i-use-the-follow-button-only-and-display-the-users-screenname-myself

In it we say:

Note that if you decide to set the show_screen_name parameter to false,
you’ll still have to display “manually” which @username the Follow button is
interacting with. In other words, it has to be very clear who the user is
going to follow by clicking your Follow Button.

Hope that helps,
@themattharris 
Developer Advocate, Twitter



On Tue, Jun 21, 2011 at 4:56 PM, twitterproblem <
fernando.agraf...@speedy.com.ar> wrote:

> Hello
>
> I'm trying to put together one beside the other the new follow us
> button and tweet button.
> I simply can't.
>
> They just can't stick together.
> The parameter show screen name "false" is not hiding the @username in
> text, thus causing the button for follow us, to be very wide and
> making the other button go down one line.
>
> Tried with css, no joy.
>
> Any help please!
>
>
>
> I do have 2 twitter buttons on my page:
>
>
> http://twitter.com/share"; class="twitter-
> share-button" data-count="none" data-via="example" data-lang="es" data-
> width="64" show_screen_name="false">Tweet
> http://platform.twitter.com/
> widgets.js">http://twitter.com/example";
> class="twitter-follow-button" show_screen_name="false" data-show-
> count="false" data-width="64" data-lang="es">
>
>
> The problem is I don't want to show the @username because when I do,
> those 2 buttons doesn't fit in my nav bar.
> The code above works ok in Internet Explorer, but in Firefox 4, I
> still see the @username in text beside the image button, causing the
> buttons to show in 2 different lines and spoiling my layout.
>
> The data-width="64" parameter should do the trick, but is not working
> in firefox.
>
> How do I get only the "image" button?
>
> BTW I couldn't find a way to show only small custon icons instead,
> thus I'm trying at least to get rid the text part of username
>
> Please help!
>
> --
> 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] geo_place writeable container for Indonesia

2011-06-23 Thread Matt Harris
Hi Aldian,

We don't have a timeline for any additional place regions. As with language
support, if any additional countries/regions are added to our place database
we will announce it on the Twitter Blog or through @twitterapi and this
list.

Best
@themattharris 
Developer Advocate, Twitter



On Tue, Jun 21, 2011 at 5:01 PM, Aldian Fazrihady  wrote:

> @themattharris When will I be able to geo_place places in my region
> (Indonesia)?
> Do you have time estimate on this matter?
> Thanks
>
> Aldian
>
> --
> 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] inconsistent data when fetching the stream using location boxes

2011-06-23 Thread Matt Harris
Hey Thomas,

Thanks for providing the examples. I'm a little confused about the latitude
and longitude you have provided in your example Tweets.

When I query those Tweets through the API I receive geo information which
matches your Streaming API filter.

Where are you reading the latitude and longitude from?


Here are the responses I see:
/1/statuses/show.json?id=83428963950669824\&trim_user=1
{
  "coordinates": null,
  "favorited": false,
  "truncated": false,
  "created_at": "Wed Jun 22 06:59:49 + 2011",
  "id_str": "83428963950669824",
  "in_reply_to_user_id_str": null,
  "annotations": null,
  "text": "OMG, Jamie Cullum singing live on Radio 2 right now is amazing!!!
Thank you @achrisevans for suggesting that song!",
  "contributors": null,
  "id": 83428963950669824,
  "retweet_count": 0,
  "in_reply_to_status_id_str": null,
  "geo": null,
  "retweeted": false,
  "in_reply_to_user_id": null,
  "source": "http://stone.com/Twittelator\";
rel=\"nofollow\">Twittelator",
  "in_reply_to_screen_name": null,
  "user": {
"id_str": "63515926",
"id": 63515926
  },
  "place": {
"name": "Hounslow",
"country": "United Kingdom",
"country_code": "GB",
"attributes": {

},
"url": "http://api.twitter.com/1/geo/id/c2e57feb725f3ee1.json";,
"bounding_box": {
  "coordinates": [
[
  [
-0.457447,
51.420633
  ],
  [
-0.243419,
51.420633
  ],
  [
-0.243419,
51.502851
  ],
  [
-0.457447,
51.502851
  ]
]
  ],
  "type": "Polygon"
},
"id": "c2e57feb725f3ee1",
"full_name": "Hounslow, London",
"place_type": "city"
  },
  "in_reply_to_status_id": null
}

and /1/statuses/show.json?id=83428616981061633\&trim_user=1

{
  "coordinates": null,
  "favorited": false,
  "truncated": false,
  "created_at": "Wed Jun 22 06:58:26 + 2011",
  "id_str": "83428616981061633",
  "in_reply_to_user_id_str": "42856682",
  "annotations": null,
  "text": "@icsbcn @XaviGava @martaspons follower, de qui?",
  "contributors": null,
  "id": 83428616981061633,
  "retweet_count": 0,
  "in_reply_to_status_id_str": "83426231340638208",
  "geo": null,
  "retweeted": false,
  "in_reply_to_user_id": 42856682,
  "source": "web",
  "in_reply_to_screen_name": "icsbcn",
  "user": {
"id_str": "232599714",
"id": 232599714
  },
  "place": {
"name": "Barcelona",
"country": "Spain",
"country_code": "ES",
"attributes": {

},
"url": "http://api.twitter.com/1/geo/id/1a27537478dd8e38.json";,
"bounding_box": {
  "coordinates": [
[
  [
2.0524766,
41.3200423
  ],
  [
2.2261223,
41.3200423
  ],
  [
2.2261223,
41.4682346
  ],
  [
2.0524766,
41.4682346
  ]
]
  ],
  "type": "Polygon"
},
"id": "1a27537478dd8e38",
"full_name": "Barcelona, Barcelona",
"place_type": "city"
  },
  "in_reply_to_status_id": 83426231340638208
}

Best,
@themattharris 
Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 12:07 AM, Thomas Alisi wrote:

> hey man,
>
> thanks for this reply! yup, of corse I can.
>
> so, I am using twitter4j and reading the stream with the streaming API
> implementation (loosely following the code snippet below). I have setup a
> filter query with a list of location boxes, being the following 3
> (barcelona, manchester, london):
>
>- [barcelona] 1.48, 41.10, 2.34, 41.4,
>- [london] -0.30, 51.10, 0.21, 51.45,
>- [manchester] -2.18, 53.25, -2.09, 53.31
>
> then retrieving the status' location through the Status.getGeoLocation()
> function (
> http://twitter4j.org/en/javadoc/twitter4j/Status.html#getGeoLocation%28%29
> )
>
> now, it happen (quite frequently, but I don't have a statistic... say 1
> post out of 50) that I find the geo location being with coordinates out of
> the boxes, such as:
>
> 37.1289787 -84.0832596 (tweet id: 83428963950669824 - reverse geocode using
> google maps: london, kentucky)
> 10.103 -64.669 (tweet id: 83428616981061633 - reverse geocode using
> google maps: barcelona, venezuela)
>
> so I am wondering how it can happen, provided that I am giving numerical
> coordinates for location boxes...
>
> hope this is clearer, many thanks
> thomas
>
> fetch stream:
>
> StatusListener listener = new StatusListener(){
> public void onStatus(Status status) {
>// get geoLocation and save to db
> }
> };
> TwitterStream twitterStream = new 
> TwitterStreamFactory(listener).getInstance();
> twitterStream.filter( myFilterQuery );
>
>  --
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker:
>

Re: [twitter-dev] How long can we access a past profile picture?

2011-06-23 Thread Matt Harris
Hi yama,

Older profile images maybe available for a short period of time after they
are changed. This is due to caching and you shouldn't assume they will be
there permanently.

In answer to your other question, yes you should use the URL provided in the
user object of the API responses. The second method is a rate limited API
request and you should avoid using it as the URL for a profile image.

Best,
@themattharris 
Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 5:24 AM, yama  wrote:

> Hi guys,
> I'm planning to store a Profile Picture URL to DB from json by search
> API.
> When a user change picture, it seems we can still access it for a
> while.
> But is it permanent or just short term?
>
> I found there are 2 ways to get profile pics.
> "http://a3.twimg.com/profile_images/1407755095/cat_normal.jpg";
> and
> "http://api.twitter.com/1/users/profile_image/watermusica.xml";.
> Shouldn't I user the former way?
>
> Thank you,
> yama
>
> --
> 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] Problem With User/lookup API

2011-06-23 Thread Matt Harris
Hi Kamesh,

The users/lookup method isn't the best way to check for a following
relationship. Instead you can either request your friends/ids and see if
their user_id is included, or call /1/friendships/show.json:
http://dev.twitter.com/doc/get/friendships/show

Hope that helps,
@themattharris 
Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 6:37 AM, kamesh SmartDude <
kamesh.smartd...@gmail.com> wrote:

> Hai,
>
> i am getting a problem with users/lookup.json.
>
> i am using this API to get My Follower info and in the
> responsethere is a tag "following" which should return a "bool"
> value...but it is returning the value as "null". Because of this i am
> not able to get recoginize whether i am following this person or
> not...
>
> is there any solution for this?
>
> //kamesh
>
> --
> 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: Twitter Authenticate displays Authorize screen and on reload it Authenticates and continues to callback

2011-06-23 Thread Matt Harris
Hey,

The authenticate flow will display a login screen in a number of situations:

* if the user isn't logged into twitter.com
* if the user hasn't allowed the application access to their account before
* if you pass the force_login or screen_name parameter to the authenticate
endpoint
* if the user has revoked access to the application
* if the requested permission level is different to the one the user
originally allowed

Is it possible any of those situations are happening?

Best,
@themattharris 
Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 6:14 AM, mike_f1  wrote:

> I have the exact same issue, but am using C# and the Twitterizer library.
>
> Also, I can't seem to prevent the Authenticate pop up appearing and asking
> for permission despite the app already being authorised for this user and
> the user already signed in to Twitter. Checked by logging into twitter and
> going to Applications - I 'allowed' it by using Authenticate as per
> http://dev.twitter.com/pages/sign_in_with_twitter the first time, but it
> still pops up every time since.
>
> Is it something to do with how the App has been 'allowed' access? Do I need
> to 'allow' the app using the authorize URL first then using the authenticate
> url for future requests?
>
> Must be doing something wrong but I can't see what, can anyone shine any
> light on this please?
>
> --
> 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] 500 errors from the search api on specific queries, related to geocode parameter.

2011-06-23 Thread Matt Harris
Hi Eric,

Thanks for the update. I've passed this information onto the relevant team
here. So we can keep track of this could you file a ticket on our public
issue tracker:
http://code.google.com/p/twitter-api/issues/list

Thanks
@themattharris 
 Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 6:51 AM, Eric Mueller  wrote:

> It's also responding with the 500 in less than two seconds (sometimes less
> than one), which makes timeouts seem unlikely.
>
> --
> 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 403 while getFollowers : Twitter Iphone MGTwitterEngine

2011-06-23 Thread Matt Harris
Hi Echo,

We haven't announced an end of life date for these methods but we wanted to
mark them as deprecated so help developers know they are not suitable
anymore.

We recommend moving to the friends/ids, followers/ids and users/lookup
pattern at your next opportunity though.

Best,
@themattharris 
Developer Advocate, Twitter



2011/6/21 Echo 

> Thanks Bill.
>
> statuses/followers and statuses/friends are deprecated. Is there a
> timeline in twitter to announce when will the deprecated API be
> closed? I wonder the deadline since our app is depending them .
> Thanks!
>
> Echo
>
>
> On 6月14日, 下午8时04分, Bill Jacobson  wrote:
> > Amit,
> >
> > Your endpoint is obsolete and no longer supported by Twitter. That's why
> > you got the 403. Statuses/followers will succeed if you change it
> tohttp://api.twitter.com/1/statuses/followers.xml
> > 
> >
> > BUT this API is deprecated. Read all about it here:
> http://dev.twitter.com/doc/get/statuses/followers
> >
> > Bill
> >
> > On 06/14/2011 12:38 AM, Amit Battan Ror wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Bill
> >
> > > Working fine :https://twitter.com/statuses/friends_timeline.xml
> >
> > > Not Working Giving 403 Error :
> https://twitter.com/statuses/followers.xml
> >
> > > On Jun 14, 10:14 am, Amit Battan Ror  wrote:
> > >> Thanks Bill
> >
> > >> I will check and try to track URL ..
> >
> > >> On Jun 13, 9:07 pm, Bill Jacobson  wrote:
> >
> > >>> Amit, also seehttp://
> www.mailinglistarchive.com/html/twitter-development-talk@googl
> > >>> That's what helped me.
> > >>> -Bill
> > >>> On 06/13/2011 10:44 AM, Bill Jacobson wrote:
> >  I'm suggesting that you find out what endpoint (Twitter URL) your
> app
> >  is targeting, and make sure that it matches what is currently
> >  documented. If it doesn't match, correct it. That's what worked for
> me.
> >  On 06/13/2011 08:05 AM, Amit Battan Ror wrote:
> > > I am not getting the solution.
> > > and my API was working fine beofre 2 3 days..
> > > but not now..
> > > all other API except getFollowersIncludingCurrentStatus working ok
> and
> > > return proper output
> > > On Jun 13, 5:53 pm, Bill Jacobsonwrote:
> > >> Amit,
> > >> I don't know your library, but in my case the 403 was accompanied
> by
> > >> the
> > >> message "Not authorized to use this endpoint" and the solution was
> to
> > >> update to "http://api.twitter.com/1[etc.]";.
> > >> Bill Jacobson
> > >> On 06/13/2011 05:39 AM, Amit Battan Ror wrote:
> > >>> any idea guys
> > >>> On Jun 10, 4:33 pm, Amit Battan Ror
>  wrote:
> >  Hi All
> >  I am using
> >  Twitter-OAuth-iPhonehttps://
> github.com/bengottlieb/Twitter-OAuth-iPhone
> >  I am calling [twitterObj getFollowersIncludingCurrentStatus:NO]
> for
> >  getting my friend list which was working fine. But from last two
> days
> >  its giving me the 403 error.
> >  -- Twitter Request FD751461-39C4-4EAB-A0F7-D1ED262B19EA failed
> with
> >  error: Error Domain=HTTP Code=403 "The operation couldn t be
> >  completed. (HTTP error 403.)"
> >  As twitter api wiki 403 is due to crossing the limit of updates
> >  and DM
> >  but here in getFollowersIncludingCurrentStatus Why this error
> >  occurring and even list is not comes next day giving same 403
> error.
> >  Thanks
> >  Amit Battan
>
> --
> 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

2011-06-23 Thread Matt Harris
Hi Reet,

Our developer resources site includes guidance and examples on how to use
OAuth with the Twitter API. You can find more information on the following
pages...

Authentication:
http://dev.twitter.com/pages/auth

Libraries:
https://dev.twitter.com/pages/libraries

Using One Access Token:
https://dev.twitter.com/pages/oauth_single_token

Best,
@themattharris 
Developer Advocate, Twitter



On Tue, Jun 21, 2011 at 11:10 PM, reet  wrote:

> How to use OAuth?
>
> --
> 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] Stream API Issues

2011-06-23 Thread Matt Harris
Hi Paul,

I'm not able to reproduce this issue. I'm making my request like this:
twurl -t /1/statuses/filter.json -d "track=Boston,hockey,Obama" -H '
stream.twitter.com' --no-ssl

I would recommend not using terms like 'the, and, or' in your filter though.
Those words are extremely common and you will find yourself limited very
quickly. Instead pick specific terms that you want to track, or combine two
filter words together with a space.

More information on the AND and OR format of the track parameter is
available on our developer resources site:
http://dev.twitter.com/pages/streaming_api_methods#track

Best,
@themattharris 
Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 7:37 AM, Paul Dettorre wrote:

> For some reason when I use any keywords other than "the, and, or" I
> get no results. Tried in both cUrl & Python. Keywords like Boston,
> hockey, Obama return no results! Curl & Python code just wait
> receiving no results. Any thoughts? Also the keywords "the, and, or"
> produce a {"limit":{"track":20}}, every 50 or so records. i understand
> this is a rate limit but 1) What is the number for & 2) What is it
> limiting as more tweets seem to still be received?
>
> Thanks
>
> import tweetstream, simplejson as json
> words = ["the", "and", "or"]
> f_out = open("c:\\bitly_test\\results_4.txt",'w')
> stream = tweetstream.TrackStream("", "", words)
> for tweet in stream:
>  print "INPUT:", tweet
>  f_out.write(tweet)
>  #result = json.loads(stream)
>  #print result
>
> --
> 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-23 Thread Matt Harris
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=cnn&slug=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=cnn&slug=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,
@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


Re: [twitter-dev] Re: A few updates about the permission model change

2011-06-23 Thread Matt Harris
Hi Aaron,

I have't been able to reproduce this issue so could you email me details of
the app and captures of the requests and responses. Then I can investigate
further.

Thanks,
@themattharris 
Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 12:57 PM, Aaron Rankin wrote:

> Hi Matt / Twitter,
>
> We're not seeing the Direct Message permission setting ever take
> effect. In our application profile, it says that we're set to request
> read, write and DM, and we've saved this several times successfully.
> However, both the X-Access-Level header and the oauth/authorize page
> list that we don't have DM access (and for the former, on accounts for
> which we've re-authorized).
>
>
> Aaron
>
>
> On Jun 13, 7:56 pm, Matt Harris  wrote:
> > Hey everyone,
> >
> > A number of updates were made to the Direct Message methods and OAuth
> > screens at the end of last week. Here's what went out:
> >
> > * force_login is now supported onhttps://api.twitter.com/oauth/authorize
> > * the OAuth screens now support a feature phone tier of handsets and
> render
> > them in a simpler format
> > * the language on all the screens is standardized to say "direct message"
> > * there is a "Return to App" URL on the Deny and Cancel screens that
> > redirects the user to the oauth_callback url with a 'denied' parameter
> > instead of oauth_token.
> >
> > This next parameter isn't needed by everybody but we will be adding
> > screen_name support to the authorize and authenticate pages in the next
> few
> > days. If you want to add this to your code ready for when we release the
> > feature you can, but please know the screen_name parameter will be
> ignored
> > unless you also provide the force_login parameter. The screen_name
> parameter
> > pre-fills the username field of the OAuth screen when force_login is
> true.
> > The user is still able to edit the field, even if it is prefilled.
> >
> > Lastly, these are the main points discussed in previous emails and
> Tweets:
> > * The new permission level will be enforced on 30th June.
> > * If you don't need to read or delete direct messages you do not need to
> > update the permission level of your application.
> > * Read/Write applications will still be able to send direct messages,
> even
> > after the enforcement date.
> > * Existing oauth_tokens will not be invalidated, even if the application
> > permission level is altered.
> > * You can find out the current permission level of an oauth_token by
> > inspecting the headers of an authenticated request to the API. Look for
> > the X-Access-Level header.
> >
> > Best,
> > @themattharris <
> https://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 membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] 403 and 502 errors?

2011-06-23 Thread Matt Harris
Hi Sean,

We haven't heard of any other reports of this. Are you able to collect any
information/logs about the failed requests? Things like the URL request
and response body would help us investigate this.

Best,
@themattharris 
Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 2:11 PM, Sean Heber  wrote:

> Since releasing Twitterrific 4.2, which uses the new OAuth flow, we're
> seeing customers reporting spurious 403 and 502 errors specifically when
> attempting to retweet or send DMs. Is there a chance something is amiss?
>
> l8r
> Sean
>
> --
> 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] Annotations

2011-06-23 Thread Matt Harris
Hi Rob,

Annotations are not enabled on the API and are not being actively worked on
right now. If this changes we'll let people know but for now they are not
available.

Best,
@themattharris 
Developer Advocate, Twitter



On Wed, Jun 22, 2011 at 7:20 PM, Rob  wrote:

> When will annotations going to be returned via the REST api ? Or are
> they  already?  If the latter, what flag (e.g. ?
> include_annotations=1) is required?
>
> --
> 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] Needs object from desktop application ?

2011-06-23 Thread Matt Harris
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 
Developer Advocate, Twitter



2011/6/23 Ari Endo 

> 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 is correct
> >>>
> >>> Tom
> >>>
> >>>
> >>> On 6/10/11 10:45 AM, Ari Endo wrote:
>  Dear Tom,
> 
>  Never ever did I hit the rate limit.
>  I call only once to get the authentication token.
> 
>  At most, only several times for trials.
>  Thank you for your reply,
> 
>  Ari
> 
>  Tom van der Woerdt wrote (2011/06/10 17:38):
> > "Woah there" - sounds like you are hitting a rate limit. If you don't
> > authenticate your calls, you may only make 150 API calls per hour.
> >
> > Tom
> >
> > On 6/10/11 12:54 AM, ari_endo wrote:
> >> Hello, I am developing Twitter AP with Excel VBA.
> >> When accessing with an object generated from twitter class, it
> >> works.
> >> But only with XMLHttpRequest (without object) it ge

Re: [twitter-dev] http://groups.google.com/group/twitter-development-talk

2011-06-23 Thread Matt Harris
Hi dalvir,

The REST API lives on the domain api.twitter.com not twitter.com. The
request you are making should be made to:
http://api.twitter.com/1/statuses/user_timeline.json

To understand the reason for the error you will need to inspect the response
that comes back from the API. We put more details about errors in the
response body to help you identify what you need to do in your code.

Best,
@themattharris 
Developer Advocate, Twitter



On Thu, Jun 23, 2011 at 12:32 AM, dalvir  wrote:

> I am  using the following code. This was working fine.
>  oAuthTwitter oAuth = new oAuthTwitter();
>oAuth.Token = "Token";
>oAuth.TokenSecret = "secrentoken";
>TwitterToken objtwitter = new
> TwitterToken();
>
> oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, "http://twitter.com/
> statuses/user_timeline.xml", null);//This line return the following
> 401 error
> But Now it stoped to work. and returning the error
> The remote server returned an error: (401) Unauthorized.
>
> Why this error is coming?
>
> --
> 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: Introducing the Follow Button

2011-06-23 Thread Matt Harris
Hi David,

Glad to hear this is working for you now. For the benefit of everyone else
this issue was identified and resolved in the last few days.

Best,
@themattharris 
Developer Advocate, Twitter



On Thu, Jun 23, 2011 at 9:07 AM, David Huang wrote:

> Seems like my issue was fixed during maintenance..
> http://status.twitter.com/post/6816501955/follow-button-off-line
>
> Thanks,
> David
>
> On Jun 15, 11:06 am, David Huang  wrote:
> > Hi all,
> >
> > I was testing the new Follow button on my webpage and noticed that
> > "one-click" only works when the user have signed in to Twitter during
> > the same browsing session. If I relaunched the browser, even though
> > I'm still logged in to Twitter, clicking the Follow button would open
> > a popup. Am I missing anything, or is this the expected behavior?
> >
> > Thanks,
> > David
> >
> > On May 31, 1:07 pm, Arnaud Meunier  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hey developers,
> >
> > > Today we're launching theFollowButton!  Similar to the Tweet Button,
> > > it's a new widget that lets users easilyfollowa Twitter account from
> > > any web page. TheFollowButton has a single clickfollowexperience,
> > > simple implementation model, and is configurable to fit the needs of
> > > your website.
> >
> > > Read our announcement on the Twitter blog, and use the resources below
> > > to set up your ownFollowButton:
> >
> > > - Create aFollowButton here:
> http://twitter.com/about/resources/followbutton
> > > - Detailed documentation:http://dev.twitter.com/pages/follow_button
> >
> > > We’ve also added a Javascript layer to our Buttons and Web Intents
> > > that makes it possible for you to detect how users are interacting
> > > with these tools, and to hook them up to your own web analytics. More
> > > details on:http://dev.twitter.com/pages/intents-events
> >
> > > We're excited to see how you guys will implement theFollowButton.
> > > Let us know what you think, or if you have any questions.
> >
> > > Arnaud / @rno
>
> --
> 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] Can't Get OAuth To Work On My Site

2011-06-23 Thread David
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-dev] Re: Switching Application Type to "Browser"

2011-06-23 Thread Victoria
On Jun 23, 11:34 am, "Andrew W. Donoho" 
wrote:
> As I understand it, the authorization tokens that exist do not change. They
> will just stop being authorized to send or read direct messages. IOW, old
> tokens are being limited in a new way. Your new version will be able to switch
> to new tokens to return a user's capabilities to what they once had.

Thanks for the response, although I don't think we're talking about
the same thing.

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?

Thanks,
Victoria

-- 
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] Possible to find out how many people have see a tweet?

2011-06-23 Thread berr08
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.

Hope that makes sense any guidance would be great

Thanks!

Robert.

-- 
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 for getting tweet counts by date?

2011-06-23 Thread jburke
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-dev] Re: Streaming API with start_date and end_date

2011-06-23 Thread Vags
I don't think this is an option available within Streaming API but you
might create a short program that would start a request (e.g. cURL) at
the desired time/date "start_date" and you can manually stop it (or
also with a program) at "end_date".
I'm just concerned about what you mean by "track keyword from previous
date" because Streaming API sends only tweets posted "now". As far as
I'm aware you can't get past tweets using Streaming. You might think
about Search API in this case.

Seb

On Jun 23, 8:13 pm, JackRabbit  wrote:
> Hi Guys,
>
> is it possible to query streaming api with filter and include
> start_date and end_date, so that developer can track or filter by date
> range? If yes, that could be awesome, if no, would you mind please to
> add this feature?
>
> Why it is needed because it would be great if we can track keyword
> from previous date where we have missed the tweets. For event
> organizer and finance reports application like us, this feature is
> very valuable.
>
> Many Thanks,
> Jack

-- 
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] trying to add...

2011-06-23 Thread Matt Harris
Hi Mirella,

Can you let us know a little bit more about the way you add the Tweet
Button to your site.

For example are you using a content management system or hosted service?

Best,
@themattharris

On Jun 23, 2011, at 10:20, "mire...@fortheloveofcakes.ca"
 wrote:

> hi
>
> I'm trying to add the twitter button on my website and everytime i
> copy the code and paste it in the HTML area it gives me the code even
> after I publish it...why? how do i fix this?
>
> --
> 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] Using xAuth in N8 (HELP)

2011-06-23 Thread Georgooty varghese
Hi,

Actually your problem is not mentioned here.

A list of Twitter OAuth libraries are available at
http://dev.twitter.com/pages/libraries.

You can start with twitter functionality integration using javasript twitter
client library.

Regards,
George



On Fri, Jun 24, 2011 at 12:56 AM, Victor  wrote:

> Hello there, i am having troubles using the xAuth protocol in Widget
> for nokia N8. I was using javascript and php with the oAuth protocol
> and things went just fine, but now i don't have a clue where to
> start... i just doesn't get iti read tutorials, and the official
> docs in the sitebut without results.
>
> Pliz help me.
>
> Grettings.
> Víctor
>
> --
> 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-23 Thread Karthikeyan P
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


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

2011-06-23 Thread Ari Endo
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
> 
> Developer Advocate, Twitter
>
>
>
> 2011/6/23 Ari Endo 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 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

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

2011-06-23 Thread Shinichi Fujikawa
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