[twitter-dev] Re: Retweet Chains, and retweets of retweets

2010-08-10 Thread manggit
Hi Tom,

Thanks for the prompt reply, I just wanted to clarify, or maybe I have
completely misunderstood you, so are you suggesting that I first call
statuses_retweets on the original tweet, and then for each returned
tweet, get the user information and find the users followers? What if
a person is following multiple people who retweeted the orignal tweet?
For example, if person A tweets something, and the tweet is retweeted
by person B and C, finally person D retweets person B's retweet. How
would we determine if person D's retweet is a retweet of person B's
retweet, using just the statuses_followers api function call?

Thanks again
Mang-Git

On Aug 10, 9:28 pm, Tom van der Woerdt  wrote:
> On 8/10/10 9:17 PM, manggit wrote:
>
> > Hello All,
>
> > I am currently developing an app for a open source project. I would
> > like to first obtain all direct child retweets of a given tweet, and
> > then I would like to find all retweets of each of the child retweets,
> > so on and so forth, until i reach the end of the retweet chain.
> > However given the new style retweets, the api function call returns
> > all retweets of a given tweet, including retweets of retweets, as
> > retweets of the original tweet. Therefore I am unable to follow the
> > progression of a tweet and gather information on whether a retweet is
> > a retweet of the original tweet, or if the retweet is of a retweet.
>
> > Is there anyway to obtain this information using the status_retweet
> > api function call, or any clever combination of any of the api
> > functions?
>
> > Any support will be greatly appreciated
>
> > Thanks
> > Mang-Git
>
> No and yes.
>
> No: if there's no specific API for it, then there's no easy way.
> Yes: You can build a follower-tree (A follows B, B follows C, C follows
> D, etc) from the original tweep, but that may take a lot of time
> depending on the amount of retweets, and should probably only be used
> for research purposes.
>
> Tom


[twitter-dev] Twitter app stats...

2010-08-10 Thread MissOdessa
I was wondering if there any places you can go to see how many or what
twitter users are actually connected/using your application.

I'm not sure if there is a site or app for it but I have been looking
and havent seen much of anything even close to what I am looking for.
Hopefully someone can point me in the right direction.


[twitter-dev] Re: Twitter oAuth for PHP, some advice needed

2010-08-10 Thread Skygazer
I got my code working well enough to forge ahead on my own thanks to
the examples on Abraham's github wiki page 
http://wiki.github.com/abraham/twitteroauth/links

Marc

On Aug 10, 12:25 pm, Skygazer  wrote:
> Hi everyone,
>
> I'm in the same boat as Paul G. My company publishes updates to
> Twitter whenever we post a new story. To date our code using basic
> authentication was working great. Now we're switching over toOAUTH
> using Abraham Williams library. I setup an app on Twitter's
> development site, got my keys and tokens and tried using thePHP
> twitteroauth library, but on my test server I can't even get the
> example to work. I get the "Could not connect to Twitter. Refresh the
> page or try again later" message. I've got the library running on my
> Mac Pro with Apache running on a port-forward.
>
> I'll note that when I created the app I used application type: browser
> and callback url: blank
>
> Any help would be appreciated. Code always welcome :-)
>
> Marc
>
> On Jul 22, 2:09 pm, Paul G  wrote:
>
>
>
> > Hi Everyone.
>
> > I've been puzzling overOAuthfor some time now with little insight
> > into how to apply it to my situation.  If someone could nudge me in
> > the right direction I'd be most grateful.
>
> > What I am doing now is very simple.  Whenever my company publishes new
> > content to it's websites, the companyTwitteraccount is updated to
> > reflect it.   This is not an application that is open to public use.
> > It doesn't require any browser-based login boxes or http redirects as
> > part of the process.  In fact, such a requirement would prevent the
> > function of my current routine.
>
> > EXAMPLE:  (synopsis)
> >         require "classes/Twitter.class.php";
> >         $PMTtweet = newTwitter("$twitterunamePMT", "$twitterpwordPMT");
> >         $PMTsuccess = $PMTtweet->update("$thisTweet");
>
> > My questions are:
>
> > 1. Do I need to upgrade toOAuth?
> > 2. If I need to upgrade toOAuth, can it be done in such a way as to
> > work without browser login and redirect requirements? (as per example)
> > 3. If 2 is true, any tutorials that match that situation you can point
> > me to?
> > 4. If 1 && 2,  where/how would I acquire the tokens necessary to useOAuth?
>
> > Apologies for the basic questions.  I really did make an effort to
> > ferret out the answers but all the examples I encountered were much
> > more complex than my situation requires.
>
> > Thanks
>
> > Paul G


[twitter-dev] Re: Coming soon: a solution for Open Source applications using OAuth with the Twitter API

2010-08-10 Thread DaveH
Strange that this was stated to be ready weeks ago and now we hear
nothing about the progress. Any one that is actually involved in
testing this able to weigh in and provide an update?


[twitter-dev] Re: On Tweet Access

2010-08-10 Thread SG
I think this answers my question: http://search.twitter.com/api/

That is - yes.

~*~


On Wed, Aug 11, 2010 at 4:13 AM, SG  wrote:

>
> Sorry - I could have been clearer.
>
> I wish to access say the last 100 Tweets by a given user via an app. Does
> my app need to access this data via a Twitter account or can it do this
> without one, like in search api.
>
> Hope that helped,
> S
>
> ~*~
>
>
>
> On Wed, Aug 11, 2010 at 3:57 AM, SG  wrote:
>
>>
>> Hi,
>>
>> I am aware that the Search API does not demand sign-in/authentication.
>>
>> However, am I correct that if I want to find out all posts by any given
>> user, I will have to Oauthenticate my app? Which means I can do it only
>> through an authorized Twitter user?
>>
>> Thanks,
>> SG
>>
>> ~*~
>>
>
>


Re: [twitter-dev] Re: On Tweet Access

2010-08-10 Thread Tom van der Woerdt
http://dev.twitter.com/doc/get/statuses/user_timeline


Requires Authentication
false About authentication »
unless the user you are trying to view the timeline of is protected

Tom



On 8/11/10 12:43 AM, SG wrote:
> 
> Sorry - I could have been clearer.
> 
> I wish to access say the last 100 Tweets by a given user via an app.
> Does my app need to access this data via a Twitter account or can it do
> this without one, like in search api.
> 
> Hope that helped,
> S
> 
> ~*~
> 
> 
> On Wed, Aug 11, 2010 at 3:57 AM, SG  > wrote:
> 
> 
> Hi,
> 
> I am aware that the Search API does not demand sign-in/authentication. 
> 
> However, am I correct that if I want to find out all posts by any
> given user, I will have to Oauthenticate my app? Which means I can
> do it only through an authorized Twitter user?
> 
> Thanks,
> SG
> 
> ~*~
> 
> 



[twitter-dev] Re: On Tweet Access

2010-08-10 Thread SG
Sorry - I could have been clearer.

I wish to access say the last 100 Tweets by a given user via an app. Does my
app need to access this data via a Twitter account or can it do this without
one, like in search api.

Hope that helped,
S

~*~


On Wed, Aug 11, 2010 at 3:57 AM, SG  wrote:

>
> Hi,
>
> I am aware that the Search API does not demand sign-in/authentication.
>
> However, am I correct that if I want to find out all posts by any given
> user, I will have to Oauthenticate my app? Which means I can do it only
> through an authorized Twitter user?
>
> Thanks,
> SG
>
> ~*~
>


[twitter-dev] On Tweet Access

2010-08-10 Thread SG
Hi,

I am aware that the Search API does not demand sign-in/authentication.

However, am I correct that if I want to find out all posts by any given
user, I will have to Oauthenticate my app? Which means I can do it only
through an authorized Twitter user?

Thanks,
SG

~*~


Re: [twitter-dev] bulk follower data, or friendships/lookup status?

2010-08-10 Thread Tom van der Woerdt
On 8/10/10 10:22 PM, Noah wrote:
> Hello all,
> 
> Is there an efficient method to determine if a bunch of users follow
> the authenticating user?  I'm trying to show the authenticating user
> which people returned by statuses/mentions (or the stream, or
> whatever) can be direct messaged -- without calling friendships/exists
> for each one.
> 
> In an earlier post from April ("Bulk User Relationship Lookup?"),
> Raffi Krikorian mentioned development of friendships/lookup, which
> seems just right.  Does anyone know the status of that method?
> 
> Thanks,
> Noah

Hi Noah,

You could simply get all followers for the user via this API :
http://dev.twitter.com/doc/get/followers/ids

Then you can check if the person follows you or not by matching the user
id to that list.

Tom


[twitter-dev] bulk follower data, or friendships/lookup status?

2010-08-10 Thread Noah
Hello all,

Is there an efficient method to determine if a bunch of users follow
the authenticating user?  I'm trying to show the authenticating user
which people returned by statuses/mentions (or the stream, or
whatever) can be direct messaged -- without calling friendships/exists
for each one.

In an earlier post from April ("Bulk User Relationship Lookup?"),
Raffi Krikorian mentioned development of friendships/lookup, which
seems just right.  Does anyone know the status of that method?

Thanks,
Noah


Re: [twitter-dev] search "randomly" limits result set

2010-08-10 Thread M. Edward (Ed) Borasky
I sometimes do a search back in time for all the tweets from Portland,  
Oregon. What I've found is that there seems to be a limit on the total  
number of tweets I can get that is independent of time. The last time  
I ran this, IIRC it returned about 3 tweets. So I suspect the  
answer is "3 tweets or as far back as the index exists, whichever  
is smaller."

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

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





[twitter-dev] Re: Sign in automatically

2010-08-10 Thread kme
I used this approach, it works well. The application authorizes itself
to load some information about other peoples' profiles via screen
names. The users then authorize themselves to post messages to their
stream through the app.

On Aug 10, 10:10 am, Diogo  wrote:
> Thank you Tom and Taylor. I'll search and try it.
>
> Diogo


Re: [twitter-dev] Retweet Chains, and retweets of retweets

2010-08-10 Thread Tom van der Woerdt
On 8/10/10 9:17 PM, manggit wrote:
> Hello All,
> 
> I am currently developing an app for a open source project. I would
> like to first obtain all direct child retweets of a given tweet, and
> then I would like to find all retweets of each of the child retweets,
> so on and so forth, until i reach the end of the retweet chain.
> However given the new style retweets, the api function call returns
> all retweets of a given tweet, including retweets of retweets, as
> retweets of the original tweet. Therefore I am unable to follow the
> progression of a tweet and gather information on whether a retweet is
> a retweet of the original tweet, or if the retweet is of a retweet.
> 
> Is there anyway to obtain this information using the status_retweet
> api function call, or any clever combination of any of the api
> functions?
> 
> 
> Any support will be greatly appreciated
> 
> Thanks
> Mang-Git

No and yes.

No: if there's no specific API for it, then there's no easy way.
Yes: You can build a follower-tree (A follows B, B follows C, C follows
D, etc) from the original tweep, but that may take a lot of time
depending on the amount of retweets, and should probably only be used
for research purposes.

Tom


[twitter-dev] Retweet Chains, and retweets of retweets

2010-08-10 Thread manggit
Hello All,

I am currently developing an app for a open source project. I would
like to first obtain all direct child retweets of a given tweet, and
then I would like to find all retweets of each of the child retweets,
so on and so forth, until i reach the end of the retweet chain.
However given the new style retweets, the api function call returns
all retweets of a given tweet, including retweets of retweets, as
retweets of the original tweet. Therefore I am unable to follow the
progression of a tweet and gather information on whether a retweet is
a retweet of the original tweet, or if the retweet is of a retweet.

Is there anyway to obtain this information using the status_retweet
api function call, or any clever combination of any of the api
functions?


Any support will be greatly appreciated

Thanks
Mang-Git


[twitter-dev] HELP on the query rate limit and throttle control

2010-08-10 Thread Carrie
I am querying friends/ids following
https://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids
I am using @stcllama credentials.

http://api.twitter.com/1/account/rate_limit_status.json returns that,
for this account:
{"remaining_hits":1,"hourly_limit":2,"reset_time_in_seconds":
1281468090,"reset_time":"Tue Aug 10 19:21:30 + 2010"}

I was trying to monitor the HTTP response header for thottle control,
X-FeatureRateLimit-Limit
X-FeatureRateLimit-Remaining
X-FeatureRateLimit-Reset

HOWEVER, I noticed that, after successful API calls, the http response
header shows my query rate limit is 150 per hour.  here's an example:

Proxy-Connection : Keep-Alive
Connection : Keep-Alive
Status : 200 OK
X-Transaction : 1281429482-1586-27456
X-RateLimit-Limit : 150
X-RateLimit-Remaining : 118
X-Runtime : 0.01589
Pragma : no-cache
X-RateLimit-Class : api
X-Revision : DEV
X-RateLimit-Reset : 1281430902

Is it that I shouldn't have looked at the http response for throttle
control for this friends/ids API?
If so,  can you suggest how I shall control my crawl rate?

Thank you ~~~


Carrie


[twitter-dev] Twitter PHP "screen_name"

2010-08-10 Thread TwitterApps
What is the easiest way to get the screen_name value of a user in
PHP?  I already implemented successfully installed from the libraries
the TwiiterOauth but not sure where to start with getting the
screen_name to display.  I been searching online for some php
scripts.


[twitter-dev] Re: 101 HELP: How to update status using Javascript/jSON?

2010-08-10 Thread Brian Medendorp
Without any further information, I am going to guess that it's
probably an OAuth issue. Unfortunately, I don't think that you will be
able to use jQuery to do this. I'm betting that the API methods you
are calling with jQuery don't require any OAuth authentication. I
suppose it's possible that you could do all of the OAuth negotiation
and signing with straight javascript (because you'll have to build the
HTTP request yourself, instead of the very handy jQuery AJAX
functions), but it's not going to be easy. You'll probably have much
better luck using a server side scripting language (such as PHP, Perl,
Phython, Ruby, etc)

There is a list of OAuth libraries available here:
http://dev.twitter.com/pages/oauth_libraries

Apparently there is actually a Javascript OAuth library, but as they
mention on that page you probably shouldn't use it (because among
other things you'll likely end up exposing your Consumer token and
secret to anyone looking at your source code).

On Aug 8, 3:18 pm, Claudia  wrote:
> HI all
>
> Just getting started with the Twitter API and simultaneously getting
> familiar with jSON. Does someone have an example of the best practice
> for updating a user status using Javascript/JQuery/jSON? I've
> successfully retrieved statuses and user information, but am
> struggling with the post side of things.
>
> Any help would be greatly appreciated!
> Thanks,
> Claudia


[twitter-dev] Re: Sign in automatically

2010-08-10 Thread Diogo
Thank you Tom and Taylor. I'll search and try it.

Diogo


[twitter-dev] Re: Norton detects this js on my site, I'm not able to find it!

2010-08-10 Thread nischalshetty
Thanks a lot Tom, kinda relieved! I too wasn't able to find that
script, but a couple of users pointed to the same thing.

Since the link is to a file named twitter-https.js , figured it would
be good to ask about it here :)

-Nischal

On Aug 10, 9:57 pm, Tom van der Woerdt  wrote:
> On 8/10/10 6:51 PM, nischalshetty wrote:
>
> > I got feedback from a few users saying Norton was identifying my site
> > as unsafe. The script that was being displayed was
>
> >https://s3.amazonaws.com/twitter_production/a/1281028705/javascripts/...
>
> > I haven't included anything, I'm not able to find this link on my
> > site, any idea what this can be?
>
> > My site ishttp://www.justunfollow.com
>
> > Here's the Norton report 
> > -http://safeweb.norton.com/report/show?name=justunfollow.com
>
> I just checked about 5 pages of your site and I do not see it. I checked
> with a javascript debugger so I also checked deferred loads.
>
> I also wonder why Norton flags that file as unsafe... Looks perfectly
> safe to me.
>
> Tom


Re: [twitter-dev] Norton detects this js on my site, I'm not able to find it!

2010-08-10 Thread Tom van der Woerdt
On 8/10/10 6:51 PM, nischalshetty wrote:
> I got feedback from a few users saying Norton was identifying my site
> as unsafe. The script that was being displayed was
> 
> https://s3.amazonaws.com/twitter_production/a/1281028705/javascripts/twitter-https.js
> 
> I haven't included anything, I'm not able to find this link on my
> site, any idea what this can be?
> 
> My site is http://www.justunfollow.com
> 
> Here's the Norton report - 
> http://safeweb.norton.com/report/show?name=justunfollow.com
> 

I just checked about 5 pages of your site and I do not see it. I checked
with a javascript debugger so I also checked deferred loads.

I also wonder why Norton flags that file as unsafe... Looks perfectly
safe to me.

Tom


[twitter-dev] Norton detects this js on my site, I'm not able to find it!

2010-08-10 Thread nischalshetty
I got feedback from a few users saying Norton was identifying my site
as unsafe. The script that was being displayed was

https://s3.amazonaws.com/twitter_production/a/1281028705/javascripts/twitter-https.js

I haven't included anything, I'm not able to find this link on my
site, any idea what this can be?

My site is http://www.justunfollow.com

Here's the Norton report - 
http://safeweb.norton.com/report/show?name=justunfollow.com



Re: [twitter-dev] search "randomly" limits result set

2010-08-10 Thread michael xenakis
Thanks, Taylor.

And to clarify my understanding:

The Search API is the only entry point for "compound" searches, yes? I.e., if I 
want to get Tweets from multiple users in a single call?

Also, the REST API does not support searching for hash tags in any form, yes? 
So the Search API is the only means for that?

Thanks again,
mX.

p.s. The "Search Quality Help Page" link at the bottom of the page you linked 
below is dead.  I.e.,: 
http://support.twitter.com/groups/32-something-s-not-working/topics/118-search/articles/66018-my-tweets-or-hashtags-are-missing-from-search-known-issue


On Aug 10, 2010, at 8:31 AM, Taylor Singletary wrote:

> The search API's available corpus of tweets for search varies -- it's not 
> always exactly a week, as tweet velocity has an effect on how many tweets can 
> be made readily available for searching. Search also contains only a portion 
> of the total amount of tweets in the system at any one time: 
> http://support.twitter.com/groups/32-something-s-not-working/topics/118-search/articles/66018-my-tweets-or-hashtags-are-missing-from-search-known-issue
> 
> Thanks,
> Taylor
> 
> 
> On Tue, Aug 10, 2010 at 8:00 AM, mX.  wrote:
> Hullo all -
> 
> While I opted to keep the subject line short(er), I allow that this
> may all be a case of user error and that there may be nothing either
> random w/ the API.  That said...
> 
> ... I've been working w/ the REST API and am trying to incorporate
> some of the Search API functionality, but am having a very difficult
> time w/ it.  An immediate example is the fact that the API seems to
> return very few items from its search.
> 
> E.g., the following search strings (740AM PST, Tue Aug 10):
> feed://search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston
>- returns 4 tweets dating back to Thu Aug 5, 110P (per Twitter
> feeds)
> feed://search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston+OR+from%3Athenyknicks+OR+from%3Aallan_houston
>- returns 13 tweets dating back  to Thu Aug 5, 601A (per Twitter
> feeds)
> feed://search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston+OR+from%3Athenyknicks+OR+from%3Aallan_houston+OR+%232MNBA
>- returns 15 tweets dating back to Sun Aug 8, 127P (per Twitter
> feeds)
> 
> All the information I've read re: rate limits should put 15 tweets
> well below that.  Further, although the API docs suggest the data for
> the Search API is indexed only for the last seven days, I would still
> expect to see tweets for all of the last seven days, rather than only
> five (e.g., the first search should have returned more Tweets dating
> back to Aug 3.
> 
> All in all the API does not appear to be working as advertised,
> however, I may be missing the fine print.
> 
> Is there a limit on the # of days back which the search parameters
> will reach? And what is it?
> Is there a limit on the # of tweets that will be returned? And what is
> it?
> 
> Thank you in advance!
> mX.
> 



[twitter-dev] Re: Twitter oAuth for PHP, some advice needed

2010-08-10 Thread Skygazer
Hi everyone,

I'm in the same boat as Paul G. My company publishes updates to
Twitter whenever we post a new story. To date our code using basic
authentication was working great. Now we're switching over to OAUTH
using Abraham Williams library. I setup an app on Twitter's
development site, got my keys and tokens and tried using the PHP
twitteroauth library, but on my test server I can't even get the
example to work. I get the "Could not connect to Twitter. Refresh the
page or try again later" message. I've got the library running on my
Mac Pro with Apache running on a port-forward.

I'll note that when I created the app I used application type: browser
and callback url: blank

Any help would be appreciated. Code always welcome :-)

Marc

On Jul 22, 2:09 pm, Paul G  wrote:
> Hi Everyone.
>
> I've been puzzling overOAuthfor some time now with little insight
> into how to apply it to my situation.  If someone could nudge me in
> the right direction I'd be most grateful.
>
> What I am doing now is very simple.  Whenever my company publishes new
> content to it's websites, the companyTwitteraccount is updated to
> reflect it.   This is not an application that is open to public use.
> It doesn't require any browser-based login boxes or http redirects as
> part of the process.  In fact, such a requirement would prevent the
> function of my current routine.
>
> EXAMPLE:  (synopsis)
>         require "classes/Twitter.class.php";
>         $PMTtweet = newTwitter("$twitterunamePMT", "$twitterpwordPMT");
>         $PMTsuccess = $PMTtweet->update("$thisTweet");
>
> My questions are:
>
> 1. Do I need to upgrade toOAuth?
> 2. If I need to upgrade toOAuth, can it be done in such a way as to
> work without browser login and redirect requirements? (as per example)
> 3. If 2 is true, any tutorials that match that situation you can point
> me to?
> 4. If 1 && 2,  where/how would I acquire the tokens necessary to useOAuth?
>
> Apologies for the basic questions.  I really did make an effort to
> ferret out the answers but all the examples I encountered were much
> more complex than my situation requires.
>
> Thanks
>
> Paul G


Re: [twitter-dev] Wrong GEOCODE results

2010-08-10 Thread Jonathan Reichhold
Daniel,

The search index only cover <7 days worth of content, and a tweet from July
17th is older than 7 days.  This has nothing to do with your geocode and is
an issue with the depth of the index.

Geo is not the only signal used for location and you may also have place ids
other sources.

Jonathan

On Tue, Aug 10, 2010 at 5:26 AM, Daniel  wrote:

> Hi!
>
> This is the thirth time I post this problem and no body may help me.
> This is a very important problem than only occurs in some countries of
> South America as Chile, Argentina, Peru.
>
> This is a clear problem related to the geocode query...
>
> I'm trying to make a search query with GEOCODE params but this is not
> working propperly.
>
> I created this geolocalizated tweet with echofon:
>
> http://twitter.com/DanielAtik/status/18794641441
>
> As you may see here is the lat, lon of this tweet:
>
> http://maps.google.com/maps?q=-33.437790,-70.635895
>
> But if I make a search with search API this tweet does not appears as
> you can see:
>
> http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2km
>
> or for delimeted more:
>
> http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2...
>
> As you may see at returned JSON, the tweets has not GEO values. Is
> there anything wrong?? Any help may be appreciated ;)
>
>
> Daniel
>


Re: [twitter-dev] search "randomly" limits result set

2010-08-10 Thread Taylor Singletary
The search API's available corpus of tweets for search varies -- it's not
always exactly a week, as tweet velocity has an effect on how many tweets
can be made readily available for searching. Search also contains only a
portion of the total amount of tweets in the system at any one time:
http://support.twitter.com/groups/32-something-s-not-working/topics/118-search/articles/66018-my-tweets-or-hashtags-are-missing-from-search-known-issue

Thanks,
Taylor


On Tue, Aug 10, 2010 at 8:00 AM, mX.  wrote:

> Hullo all -
>
> While I opted to keep the subject line short(er), I allow that this
> may all be a case of user error and that there may be nothing either
> random w/ the API.  That said...
>
> ... I've been working w/ the REST API and am trying to incorporate
> some of the Search API functionality, but am having a very difficult
> time w/ it.  An immediate example is the fact that the API seems to
> return very few items from its search.
>
> E.g., the following search strings (740AM PST, Tue Aug 10):
> feed://search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston
>- returns 4 tweets dating back to Thu Aug 5, 110P (per Twitter
> feeds)
> feed://
> search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston+OR+from%3Athenyknicks+OR+from%3Aallan_houston
>- returns 13 tweets dating back  to Thu Aug 5, 601A (per Twitter
> feeds)
> feed://
> search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston+OR+from%3Athenyknicks+OR+from%3Aallan_houston+OR+%232MNBA
>- returns 15 tweets dating back to Sun Aug 8, 127P (per Twitter
> feeds)
>
> All the information I've read re: rate limits should put 15 tweets
> well below that.  Further, although the API docs suggest the data for
> the Search API is indexed only for the last seven days, I would still
> expect to see tweets for all of the last seven days, rather than only
> five (e.g., the first search should have returned more Tweets dating
> back to Aug 3.
>
> All in all the API does not appear to be working as advertised,
> however, I may be missing the fine print.
>
> Is there a limit on the # of days back which the search parameters
> will reach? And what is it?
> Is there a limit on the # of tweets that will be returned? And what is
> it?
>
> Thank you in advance!
> mX.
>


Re: [twitter-dev] The remote server returned an error: (403) Forbidden.

2010-08-10 Thread Taylor Singletary
Can you share how you're making the request? With what language and library?
When we return an error we usually include more information than just the
status code. Was there any structured data in the response indicating the
reason it may be forbidden?

What's the exact URL and POST body you are executing? What HTTP headers are
you setting?

Thanks,
Taylor

On Tue, Aug 10, 2010 at 8:23 AM, Punit.khaire wrote:

> Hi All,
>
> I am getting following error when I am sending tweets to the twitter
> after getting valid ACCESS TOKEN and TOKEN SECRET,
>
> The remote server returned an error: (403) Forbidden.
>
> I dont know why I am getting the error???
>
> Thanks,
>
> Punit Khaire.
>
>


Re: [twitter-dev] Sign in automatically

2010-08-10 Thread Taylor Singletary
Hi Diogo,

If you're intent is to provide access to multiple users for the same Twitter
account, at this time it'd be best for you to obtain an access token for the
Twitter account and your application (we offer a feature on
dev.twitter.comthat makes this very easy, you can find it in the
sidebar while viewing one
of your applications: "My Access Token") and hard code that into the
application. That way, all API actions taken in your application will be on
behalf of the single user.

Tom: Contributors as an API hasn't been fully baked yet and is still in very
limited rollout.

Taylor

On Tue, Aug 10, 2010 at 8:08 AM, Tom van der Woerdt  wrote:

> On 8/10/10 3:29 PM, Diogo wrote:
> > Hello, I'm developing a system for a company where the employees can
> > read and answer tweets from a single account. It is working, but not
> > using oAuth. I read that Twitter will no longer support the basic
> > authentication.
> > The question is, if I change the authentication to oAuth, everybody
> > will have to know the username and password of Twitter account and
> > sign in manually to begin work?
>
> No. With oAuth, you get a pair of keys. You can change these keys at any
> time (assuming that you only use your own keys, and don't provide the
> login system which OAuth allows) and they can only be used in
> combination with your own application.
>
> Tom
>
> PS: Maybe someone else can answer this: I've seen  in some
> tweets, is this a feature which is already available to us? Haven't seen
> it on the api wiki...
>


[twitter-dev] The remote server returned an error: (403) Forbidden.

2010-08-10 Thread Punit.khaire
Hi All,

I am getting following error when I am sending tweets to the twitter
after getting valid ACCESS TOKEN and TOKEN SECRET,

The remote server returned an error: (403) Forbidden.

I dont know why I am getting the error???

Thanks,

Punit Khaire.



Re: [twitter-dev] Sign in automatically

2010-08-10 Thread Tom van der Woerdt
On 8/10/10 3:29 PM, Diogo wrote:
> Hello, I'm developing a system for a company where the employees can
> read and answer tweets from a single account. It is working, but not
> using oAuth. I read that Twitter will no longer support the basic
> authentication.
> The question is, if I change the authentication to oAuth, everybody
> will have to know the username and password of Twitter account and
> sign in manually to begin work?

No. With oAuth, you get a pair of keys. You can change these keys at any
time (assuming that you only use your own keys, and don't provide the
login system which OAuth allows) and they can only be used in
combination with your own application.

Tom

PS: Maybe someone else can answer this: I've seen  in some
tweets, is this a feature which is already available to us? Haven't seen
it on the api wiki...


[twitter-dev] search "randomly" limits result set

2010-08-10 Thread mX.
Hullo all -

While I opted to keep the subject line short(er), I allow that this
may all be a case of user error and that there may be nothing either
random w/ the API.  That said...

... I've been working w/ the REST API and am trying to incorporate
some of the Search API functionality, but am having a very difficult
time w/ it.  An immediate example is the fact that the API seems to
return very few items from its search.

E.g., the following search strings (740AM PST, Tue Aug 10):
feed://search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston
- returns 4 tweets dating back to Thu Aug 5, 110P (per Twitter
feeds)
feed://search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston+OR+from%3Athenyknicks+OR+from%3Aallan_houston
- returns 13 tweets dating back  to Thu Aug 5, 601A (per Twitter
feeds)
feed://search.twitter.com/search.atom?q=%23thenyknicks+OR+%23allan_houston+OR+from%3Athenyknicks+OR+from%3Aallan_houston+OR+%232MNBA
- returns 15 tweets dating back to Sun Aug 8, 127P (per Twitter
feeds)

All the information I've read re: rate limits should put 15 tweets
well below that.  Further, although the API docs suggest the data for
the Search API is indexed only for the last seven days, I would still
expect to see tweets for all of the last seven days, rather than only
five (e.g., the first search should have returned more Tweets dating
back to Aug 3.

All in all the API does not appear to be working as advertised,
however, I may be missing the fine print.

Is there a limit on the # of days back which the search parameters
will reach? And what is it?
Is there a limit on the # of tweets that will be returned? And what is
it?

Thank you in advance!
mX.


[twitter-dev] Sign in automatically

2010-08-10 Thread Diogo
Hello, I'm developing a system for a company where the employees can
read and answer tweets from a single account. It is working, but not
using oAuth. I read that Twitter will no longer support the basic
authentication.
The question is, if I change the authentication to oAuth, everybody
will have to know the username and password of Twitter account and
sign in manually to begin work?


Re: [twitter-dev] Re: OAuth and a readonly app

2010-08-10 Thread Taylor Singletary
The other kind of OAuth is called "two-legged OAuth," where the only
identifying party is the application itself. There may be a future where
some resources are available via two-legged OAuth but we haven't decided
anything for sure yet.

Taylor

On Tue, Aug 10, 2010 at 5:30 AM, Brian Medendorp
wrote:

> I had to do the same thing for something I am working on, it's not
> very ideal, but it seems to be the only way to get the job done.
>
> There is supposed to be a second type of OAuth that allows that sort
> of one-way communication (basically the same thing but without the
> user's tokens), but it seems that no one has implemented that (and I
> can't remember the name they gave it).
>
> On Aug 9, 10:39 pm, "russ.au"  wrote:
> > Hi all,
> >
> > Let's say I'm writing a read only app - you come to my website enter
> > someones twitter name, and I give you some statistics about them.  I
> > can get all the stats I need by making anon calls to the REST api from
> > my webserver.
> >
> > The API docs say "Anonymous calls are based on the IP of the host and
> > are permitted 150 requests per hour", where as "OAuth calls are
> > permitted 350 requests per hour".
> >
> > If my app gets popular enough I'd like to make as many calls as I
> > can.  What is the protocol here?  Should I create a twitter account
> > just for my app, take this account through the OAuth process, and use
> > this account's "access token" for all my requests?
> >
> > Thanks,
> > Russ
>


Re: [twitter-dev] search for hashtags

2010-08-10 Thread Tom van der Woerdt
On 8/10/10 12:58 PM, bitstream wrote:
> Hi all,
> I've been reading api docs lately but still can't figure it out what
> will be the best approach when searching for hashtags.
> streaming
> I know that streaming api support statuses/filter where I can declare
> 'track'. It's possible to use statuses/filter and add a track on
> '%23hashtag' ?
> 
> search
> Or use a simple approach by calling search api and parse response from
> something like this: http://search.twitter.com/search.json?q=%23hashtag

My opinion:

It depends. If you want to track a lot of keywords, you should use
streaming. If you track only one keyword, then both are an option,
depending on the amount of tweets for the hashtag. If you have a lot of
keywords but they vary (for example, when users can add/remove hashtags)
then you should consider a combination of both, where you reset the
stream every hour and update it with new hashtags, and use the REST API
for the hashtags that get added in the hour. After all, you don't want
to reconnect too often.

Tom


Re: [twitter-dev] Source (from "App Name") is Not working

2010-08-10 Thread Tom van der Woerdt
On 8/10/10 8:18 AM, sathi wrote:
> Hi,
> 
> I am developing a web application for twitter. i want to have my app
> name in every tweet as (via "my app name"). I am not able to get that
> name, its giving like "via Web". Can you please help me out.
> 
> -sathi

Every Tweet you send via the Twitter API via OAuth will have it. I'm not
sure about @Anywhere, although I imagine that it's the same. If you send
via the web-interface, then it will have Web. If you send via Basic Auth
and don't include an application name, it will say "via API".

Tom


[twitter-dev] Re: OAuth and a readonly app

2010-08-10 Thread Brian Medendorp
I had to do the same thing for something I am working on, it's not
very ideal, but it seems to be the only way to get the job done.

There is supposed to be a second type of OAuth that allows that sort
of one-way communication (basically the same thing but without the
user's tokens), but it seems that no one has implemented that (and I
can't remember the name they gave it).

On Aug 9, 10:39 pm, "russ.au"  wrote:
> Hi all,
>
> Let's say I'm writing a read only app - you come to my website enter
> someones twitter name, and I give you some statistics about them.  I
> can get all the stats I need by making anon calls to the REST api from
> my webserver.
>
> The API docs say "Anonymous calls are based on the IP of the host and
> are permitted 150 requests per hour", where as "OAuth calls are
> permitted 350 requests per hour".
>
> If my app gets popular enough I'd like to make as many calls as I
> can.  What is the protocol here?  Should I create a twitter account
> just for my app, take this account through the OAuth process, and use
> this account's "access token" for all my requests?
>
> Thanks,
> Russ


[twitter-dev] Wrong GEOCODE results

2010-08-10 Thread Daniel
Hi!

This is the thirth time I post this problem and no body may help me.
This is a very important problem than only occurs in some countries of
South America as Chile, Argentina, Peru.

This is a clear problem related to the geocode query...

I'm trying to make a search query with GEOCODE params but this is not
working propperly.

I created this geolocalizated tweet with echofon:

http://twitter.com/DanielAtik/status/18794641441

As you may see here is the lat, lon of this tweet:

http://maps.google.com/maps?q=-33.437790,-70.635895

But if I make a search with search API this tweet does not appears as
you can see:

http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2km

or for delimeted more:

http://search.twitter.com/search.json?geocode=-33.437790,-70.635895,2...

As you may see at returned JSON, the tweets has not GEO values. Is
there anything wrong?? Any help may be appreciated ;)


Daniel


[twitter-dev] search for hashtags

2010-08-10 Thread bitstream
Hi all,
I've been reading api docs lately but still can't figure it out what
will be the best approach when searching for hashtags.
streaming
I know that streaming api support statuses/filter where I can declare
'track'. It's possible to use statuses/filter and add a track on
'%23hashtag' ?

search
Or use a simple approach by calling search api and parse response from
something like this: http://search.twitter.com/search.json?q=%23hashtag


[twitter-dev] Source (from "App Name") is Not working

2010-08-10 Thread sathi
Hi,

I am developing a web application for twitter. i want to have my app
name in every tweet as (via "my app name"). I am not able to get that
name, its giving like "via Web". Can you please help me out.

-sathi


Re: [twitter-dev] Re: List names - allowed characters

2010-08-10 Thread Tom van der Woerdt
On 8/10/10 2:46 PM, Ken wrote:
> Thanks Taylor! Maybe this could be moved to the API documentation.
> 
> I can report that once, after creating (for the first time) a list
> called 'Awesome', a second 'Awesome' list got the slug, 'awesome-10'.
> So I just considered the slug to be unpredictable.
> 
> Also, I wouldn't mind knowing the rationale behind allowing same-named
> lists. We won't be allowing that through our app.
> 

I call that Twitter's AI. Twitter knows that you are a developer and
instead of putting 2, it put it in binary - 10!

Although it's most likely a bug.

Tom


[twitter-dev] Re: List names - allowed characters

2010-08-10 Thread Ken
Thanks Taylor! Maybe this could be moved to the API documentation.

I can report that once, after creating (for the first time) a list
called 'Awesome', a second 'Awesome' list got the slug, 'awesome-10'.
So I just considered the slug to be unpredictable.

Also, I wouldn't mind knowing the rationale behind allowing same-named
lists. We won't be allowing that through our app.



[twitter-dev] Re: OAuth and a readonly app

2010-08-10 Thread Karthik
Yes. But, you don't need a separate Twitter account. Just create an
OAuth app in one of your existing twitter accounts, note down the
OAuth tokens, get your own account's access tokens from "My Access
Token" link. You can use these tokens to enjoy the 350 per hour limit.

On Aug 10, 7:39 am, "russ.au"  wrote:
> Hi all,
>
> Let's say I'm writing a read only app - you come to my website enter
> someones twitter name, and I give you some statistics about them.  I
> can get all the stats I need by making anon calls to the REST api from
> my webserver.
>
> The API docs say "Anonymous calls are based on the IP of the host and
> are permitted 150 requests per hour", where as "OAuth calls are
> permitted 350 requests per hour".
>
> If my app gets popular enough I'd like to make as many calls as I
> can.  What is the protocol here?  Should I create a twitter account
> just for my app, take this account through the OAuth process, and use
> this account's "access token" for all my requests?
>
> Thanks,
> Russ


[twitter-dev] Twitter application is not working from public IP...

2010-08-10 Thread punit khaire
Hi All ,

Hi all I had create twitter client website>I tested it from localhost it
is working fine.But when I run it from the same computer but with public IP
then it is giveing error,
 *An existing connection was forcibly closed by the remote host*

It is working on the below URL,
http://localhost/TwitterOAUTH/Default.aspx

But not working on any other URl,I couldnt figure out what is the problem??

Thanks,

Punit Khaire


[twitter-dev] Re: Using twitter @nywhere with rest api

2010-08-10 Thread Karthik
This is tracked on http://code.google.com/p/twitter-api/issues/detail?id=1694#c0

On Aug 2, 10:31 pm, worshamweb  wrote:
> This is probably an easy one, but I haven't been able to figure it
> out, and I can't find anything on the web that points me in the right
> direction.  Is there a way to use �...@nywhere and the rest api of
> without forcing the user to log in twice?  I like the features of
> @nywhere, but also need ability to send tweets on the users behalf.


Re: [twitter-dev] Re: The remote server returned an error: (401) Unauthorized

2010-08-10 Thread punit khaire
The error 401 is at initail stage now as I said below is the error I think
it is not resolving the ports properly.Because it is running on port 
but not working on any other port.


Thanks,

Punit.

On Tue, Aug 10, 2010 at 4:56 PM, Tom van der Woerdt  wrote:

> Ah, okay, you mean the .NET error page.
>
> Well, to be honest, I don't know a bit about .NET. Luckily, I do know
> how Twitter works :-) Can you show a dump of the request to Twitter?
> (Could it be that the error you get is because Twitter generates a 401
> error? In that case, your signature generation may be wrong.)
>
> Tom
>
>
> On 8/10/10 1:21 PM, punit khaire wrote:
> > Thanks Tom,
> >
> > We are using Eset antivirus and it is also firewalled.I am getting below
> > error when executing
> > Request token API,
> >
> >  /An existing connection was forcibly closed by the remote host/
> >
> > For more info you can hit below URL,
> >
> > http://203.78.217.115/TwitterOAUTH/Default.aspx
> >
> > Thanks,
> >
> > Punit.
> >
> > On Tue, Aug 10, 2010 at 4:45 PM, Tom van der Woerdt  > > wrote:
> >
> > Sorry for the double post, but I just realized: is your public IP
> > firewalled? That could possibly be the issue.
> >
> > Also, is the error you are getting a Firefox (or any browser) error,
> or
> > an OAuth/Twitter error?
> >
> > Tom
> >
> >
> > On 8/10/10 1:11 PM, punit khaire wrote:
> > > Hi,
> > >
> > > Thanks, for the  reply,
> > >
> > > But then why site working from the localhost on the same
> > Computer.But If
> > > I accessed it from Public IP it returns error.
> > >
> > > Thanks,
> > >
> > > Punit Khaire.
> > >
> > > On Tue, Aug 10, 2010 at 4:13 PM, Tom van der Woerdt  > 
>  > > >> wrote:
> > >
> > > Twitter doesn't really care about IPs - unless you are doing
> > things
> > > really, really, really wrong.
> > >
> > > Assuming that the signature generation stays the same (some
> > platforms
> > > have little-endian BO, big-endian BO, etc, and that may change
> the
> > > algorithm a bit, but when windows->windows that doesn't really
> > apply),
> > > the most likely cause of this error is the timestamp of the
> > computer
> > > running the application.
> > >
> > > Tom
> > >
> > >
> > > On 8/10/10 12:07 PM, punit khaire wrote:
> > > > Hey Taylor Thanks,for reply,
> > > >
> > > > My problem redirect is solved.Now the problem is ,
> > > >
> > > >   I developed website for twitter OAuth using .net 2.0,I
> > deployed
> > > > that application in public IP, and suddenly I got following
> > error,
> > > > /An existing connection was forcibly closed by the
> > remote host./
> > > >
> > > > But when I run the same application from localhost on same
> > IP,It is
> > > > working fine.And gives error when It redirected to my Public
> > IP Call
> > > > back URl.
> > > >
> > > > I couldnt figure out is it website issue or Public IP issue.
> > > >
> > > > Thanks for help in advance,
> > > >
> > > >
> > > > Punit
> > > >
> > > > On Mon, Aug 9, 2010 at 7:45 PM, Taylor Singletary
> > > >  > 
> > >  > >
> > >  > 
> > >  >  > > >
> > > > Hi Punit,
> > > >
> > > > First, some advice: I recommend using HTTP header-based
> > OAuth
> > > rather
> > > > than putting your OAuth parameters directly in the query
> > > string. It
> > > > separates concerns and makes your debugging ultimately
> > easier.
> > > >
> > > > That said, the first issue you're probably running into
> is
> > > that you
> > > > aren't URL-encoding your OAuth Callback properly. In
> > fact, when
> > > > you're presenting any of these OAuth parameters, whether
> it
> > > was via
> > > > HTTP header or query string, you need to do some more
> > escaping.
> > > >
> > > > For our servers to properly interpret the URL you are
> > sending,
> > > your
> > > > request would need to look a bit more like (noting that
> the
> > > > signature would be significantly different as a result):
> > > >
> > > >
> > >
> >
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.2

Re: [twitter-dev] Re: The remote server returned an error: (401) Unauthorized

2010-08-10 Thread Tom van der Woerdt
Ah, okay, you mean the .NET error page.

Well, to be honest, I don't know a bit about .NET. Luckily, I do know
how Twitter works :-) Can you show a dump of the request to Twitter?
(Could it be that the error you get is because Twitter generates a 401
error? In that case, your signature generation may be wrong.)

Tom


On 8/10/10 1:21 PM, punit khaire wrote:
> Thanks Tom,
>  
> We are using Eset antivirus and it is also firewalled.I am getting below
> error when executing
> Request token API,
>  
>  /An existing connection was forcibly closed by the remote host/
>  
> For more info you can hit below URL,
>  
> http://203.78.217.115/TwitterOAUTH/Default.aspx
>  
> Thanks,
>  
> Punit.
> 
> On Tue, Aug 10, 2010 at 4:45 PM, Tom van der Woerdt  > wrote:
> 
> Sorry for the double post, but I just realized: is your public IP
> firewalled? That could possibly be the issue.
> 
> Also, is the error you are getting a Firefox (or any browser) error, or
> an OAuth/Twitter error?
> 
> Tom
> 
> 
> On 8/10/10 1:11 PM, punit khaire wrote:
> > Hi,
> >
> > Thanks, for the  reply,
> >
> > But then why site working from the localhost on the same
> Computer.But If
> > I accessed it from Public IP it returns error.
> >
> > Thanks,
> >
> > Punit Khaire.
> >
> > On Tue, Aug 10, 2010 at 4:13 PM, Tom van der Woerdt  
> > >> wrote:
> >
> > Twitter doesn't really care about IPs - unless you are doing
> things
> > really, really, really wrong.
> >
> > Assuming that the signature generation stays the same (some
> platforms
> > have little-endian BO, big-endian BO, etc, and that may change the
> > algorithm a bit, but when windows->windows that doesn't really
> apply),
> > the most likely cause of this error is the timestamp of the
> computer
> > running the application.
> >
> > Tom
> >
> >
> > On 8/10/10 12:07 PM, punit khaire wrote:
> > > Hey Taylor Thanks,for reply,
> > >
> > > My problem redirect is solved.Now the problem is ,
> > >
> > >   I developed website for twitter OAuth using .net 2.0,I
> deployed
> > > that application in public IP, and suddenly I got following
> error,
> > > /An existing connection was forcibly closed by the
> remote host./
> > >
> > > But when I run the same application from localhost on same
> IP,It is
> > > working fine.And gives error when It redirected to my Public
> IP Call
> > > back URl.
> > >
> > > I couldnt figure out is it website issue or Public IP issue.
> > >
> > > Thanks for help in advance,
> > >
> > >
> > > Punit
> > >
> > > On Mon, Aug 9, 2010 at 7:45 PM, Taylor Singletary
> > >  
> >  >
> >  
> >   > >
> > > Hi Punit,
> > >
> > > First, some advice: I recommend using HTTP header-based
> OAuth
> > rather
> > > than putting your OAuth parameters directly in the query
> > string. It
> > > separates concerns and makes your debugging ultimately
> easier.
> > >
> > > That said, the first issue you're probably running into is
> > that you
> > > aren't URL-encoding your OAuth Callback properly. In
> fact, when
> > > you're presenting any of these OAuth parameters, whether it
> > was via
> > > HTTP header or query string, you need to do some more
> escaping.
> > >
> > > For our servers to properly interpret the URL you are
> sending,
> > your
> > > request would need to look a bit more like (noting that the
> > > signature would be significantly different as a result):
> > >
> > >
> >
> 
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> 
> 

Re: [twitter-dev] Re: The remote server returned an error: (401) Unauthorized

2010-08-10 Thread punit khaire
Thanks Tom,

We are using Eset antivirus and it is also firewalled.I am getting below
error when executing
Request token API,

 *An existing connection was forcibly closed by the remote host*

For more info you can hit below URL,

http://203.78.217.115/TwitterOAUTH/Default.aspx

Thanks,

Punit.

On Tue, Aug 10, 2010 at 4:45 PM, Tom van der Woerdt  wrote:

> Sorry for the double post, but I just realized: is your public IP
> firewalled? That could possibly be the issue.
>
> Also, is the error you are getting a Firefox (or any browser) error, or
> an OAuth/Twitter error?
>
> Tom
>
>
> On 8/10/10 1:11 PM, punit khaire wrote:
> > Hi,
> >
> > Thanks, for the  reply,
> >
> > But then why site working from the localhost on the same Computer.But If
> > I accessed it from Public IP it returns error.
> >
> > Thanks,
> >
> > Punit Khaire.
> >
> > On Tue, Aug 10, 2010 at 4:13 PM, Tom van der Woerdt   > > wrote:
> >
> > Twitter doesn't really care about IPs - unless you are doing things
> > really, really, really wrong.
> >
> > Assuming that the signature generation stays the same (some platforms
> > have little-endian BO, big-endian BO, etc, and that may change the
> > algorithm a bit, but when windows->windows that doesn't really
> apply),
> > the most likely cause of this error is the timestamp of the computer
> > running the application.
> >
> > Tom
> >
> >
> > On 8/10/10 12:07 PM, punit khaire wrote:
> > > Hey Taylor Thanks,for reply,
> > >
> > > My problem redirect is solved.Now the problem is ,
> > >
> > >   I developed website for twitter OAuth using .net 2.0,I
> deployed
> > > that application in public IP, and suddenly I got following error,
> > > /An existing connection was forcibly closed by the remote
> host./
> > >
> > > But when I run the same application from localhost on same IP,It is
> > > working fine.And gives error when It redirected to my Public IP
> Call
> > > back URl.
> > >
> > > I couldnt figure out is it website issue or Public IP issue.
> > >
> > > Thanks for help in advance,
> > >
> > >
> > > Punit
> > >
> > > On Mon, Aug 9, 2010 at 7:45 PM, Taylor Singletary
> > >  > 
> >   > >> wrote:
> > >
> > > Hi Punit,
> > >
> > > First, some advice: I recommend using HTTP header-based OAuth
> > rather
> > > than putting your OAuth parameters directly in the query
> > string. It
> > > separates concerns and makes your debugging ultimately easier.
> > >
> > > That said, the first issue you're probably running into is
> > that you
> > > aren't URL-encoding your OAuth Callback properly. In fact, when
> > > you're presenting any of these OAuth parameters, whether it
> > was via
> > > HTTP header or query string, you need to do some more escaping.
> > >
> > > For our servers to properly interpret the URL you are sending,
> > your
> > > request would need to look a bit more like (noting that the
> > > signature would be significantly different as a result):
> > >
> > >
> >
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> > <
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> >
> > >
> > <
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> > <
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> >>
> > >
> > > Are you using an OAuth library for this?
> > >
> > > Taylor
> > >
> > >
> > > On Sat, Aug 7, 2010 at 5:32 PM, execut...@gmail.com
> > > mailto:execut...@gmail.com>
> > 

Re: [twitter-dev] Re: Can we automate the user login process on twitter...

2010-08-10 Thread Tom van der Woerdt
It is not. You should simply store the keys in a cookie (which is safe,
as long as you don't leak the consumer keys).

Tom


On 8/10/10 1:16 PM, punit khaire wrote:
> Thanks Ken,
>  
>  I totall y agrree with your view,but I am doing RND on oAuth Username
> password authentication,where I dont want twitter to prompt for
> credentials,It will directly redirected to callback URl.
>  
> Is it possible???
>  
>  
> Thanks,
>  
> Punit.
> 
> On Tue, Aug 10, 2010 at 1:32 AM, Ken  > wrote:
> 
> Punit,
> 
> If you have regular users with accounts on your site, they only need
> to go through Oauth once - assuming you have a more convenient login
> process to offer them.
> 
> The first time they authorize through Twitter, you need to capture the
> token and store it. Then they can log in using your less cumbersome
> process and, until such time as they deny access to your app -
> invalidating the token you have stored - they can use your app to
> interact with Twitter.
> 
> Maybe that's what you had in mind?
> 
> On Aug 8, 5:02 pm, "Punit.khaire"  > wrote:
> > Hi,
> >
> > I am develop[eing one web application to tweet posts on twitter,
> >
> > 1. Request token
> > 2.Authorize user on twitter
> > 3.Get access token from twitter
> > 4.Post on tweitter.
> >
> > When I authorize user on twitter(2nd step) ,I am redirected to
> > twitter.com  to allow user to enter the
> Username and Password.Can we
> > automate this process.Can I send username and password of user from my
> > application?
> 
> 



Re: [twitter-dev] Re: Can we automate the user login process on twitter...

2010-08-10 Thread punit khaire
Thanks Ken,

 I totall y agrree with your view,but I am doing RND on oAuth Username
password authentication,where I dont want twitter to prompt for
credentials,It will directly redirected to callback URl.

Is it possible???


Thanks,

Punit.

On Tue, Aug 10, 2010 at 1:32 AM, Ken  wrote:

> Punit,
>
> If you have regular users with accounts on your site, they only need
> to go through Oauth once - assuming you have a more convenient login
> process to offer them.
>
> The first time they authorize through Twitter, you need to capture the
> token and store it. Then they can log in using your less cumbersome
> process and, until such time as they deny access to your app -
> invalidating the token you have stored - they can use your app to
> interact with Twitter.
>
> Maybe that's what you had in mind?
>
> On Aug 8, 5:02 pm, "Punit.khaire"  wrote:
> > Hi,
> >
> > I am develop[eing one web application to tweet posts on twitter,
> >
> > 1. Request token
> > 2.Authorize user on twitter
> > 3.Get access token from twitter
> > 4.Post on tweitter.
> >
> > When I authorize user on twitter(2nd step) ,I am redirected to
> > twitter.com to allow user to enter the Username and Password.Can we
> > automate this process.Can I send username and password of user from my
> > application?
>


Re: [twitter-dev] Re: The remote server returned an error: (401) Unauthorized

2010-08-10 Thread Tom van der Woerdt
Sorry for the double post, but I just realized: is your public IP
firewalled? That could possibly be the issue.

Also, is the error you are getting a Firefox (or any browser) error, or
an OAuth/Twitter error?

Tom


On 8/10/10 1:11 PM, punit khaire wrote:
> Hi,
>  
> Thanks, for the  reply,
>  
> But then why site working from the localhost on the same Computer.But If
> I accessed it from Public IP it returns error.
>  
> Thanks,
>  
> Punit Khaire.
> 
> On Tue, Aug 10, 2010 at 4:13 PM, Tom van der Woerdt  > wrote:
> 
> Twitter doesn't really care about IPs - unless you are doing things
> really, really, really wrong.
> 
> Assuming that the signature generation stays the same (some platforms
> have little-endian BO, big-endian BO, etc, and that may change the
> algorithm a bit, but when windows->windows that doesn't really apply),
> the most likely cause of this error is the timestamp of the computer
> running the application.
> 
> Tom
> 
> 
> On 8/10/10 12:07 PM, punit khaire wrote:
> > Hey Taylor Thanks,for reply,
> >
> > My problem redirect is solved.Now the problem is ,
> >
> >   I developed website for twitter OAuth using .net 2.0,I deployed
> > that application in public IP, and suddenly I got following error,
> > /An existing connection was forcibly closed by the remote host./
> >
> > But when I run the same application from localhost on same IP,It is
> > working fine.And gives error when It redirected to my Public IP Call
> > back URl.
> >
> > I couldnt figure out is it website issue or Public IP issue.
> >
> > Thanks for help in advance,
> >
> >
> > Punit
> >
> > On Mon, Aug 9, 2010 at 7:45 PM, Taylor Singletary
> >  
>  >> wrote:
> >
> > Hi Punit,
> >
> > First, some advice: I recommend using HTTP header-based OAuth
> rather
> > than putting your OAuth parameters directly in the query
> string. It
> > separates concerns and makes your debugging ultimately easier.
> >
> > That said, the first issue you're probably running into is
> that you
> > aren't URL-encoding your OAuth Callback properly. In fact, when
> > you're presenting any of these OAuth parameters, whether it
> was via
> > HTTP header or query string, you need to do some more escaping.
> >
> > For our servers to properly interpret the URL you are sending,
> your
> > request would need to look a bit more like (noting that the
> > signature would be significantly different as a result):
> >
> >
> 
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> 
> 
> >
> 
>  
> >
> >
> > Are you using an OAuth library for this?
> >
> > Taylor
> >
> >
> > On Sat, Aug 7, 2010 at 5:32 PM, execut...@gmail.com
> > mailto:execut...@gmail.com>
> >> wrote:
> >
> > the link below is broken,,
> >
> >
> >
> > On Sat, Aug 7, 2010 at 4:44 PM, Tom
> mailto:allerleiga...@gmail.com>
> >  >> wrote:
> >
> > How are you generating the signature?
> >
> > Tom
> >
> >
> > On Aug 7, 2:43 pm, "Punit.khaire"
> mailto:punit.kha...@gmail.com>
> >  

Re: [twitter-dev] Re: The remote server returned an error: (401) Unauthorized

2010-08-10 Thread Tom van der Woerdt
Oh, it's the same computer? In that case, my timestamp issue doesn't apply.

You should check that all localhost URLs have been removed and changed
to the public addresses. That's all I can think of - like I already
said, OAuth (and Twitter) doesn't really care about IP addresses.

Tom



On 8/10/10 1:11 PM, punit khaire wrote:
> Hi,
>  
> Thanks, for the  reply,
>  
> But then why site working from the localhost on the same Computer.But If
> I accessed it from Public IP it returns error.
>  
> Thanks,
>  
> Punit Khaire.
> 
> On Tue, Aug 10, 2010 at 4:13 PM, Tom van der Woerdt  > wrote:
> 
> Twitter doesn't really care about IPs - unless you are doing things
> really, really, really wrong.
> 
> Assuming that the signature generation stays the same (some platforms
> have little-endian BO, big-endian BO, etc, and that may change the
> algorithm a bit, but when windows->windows that doesn't really apply),
> the most likely cause of this error is the timestamp of the computer
> running the application.
> 
> Tom
> 
> 
> On 8/10/10 12:07 PM, punit khaire wrote:
> > Hey Taylor Thanks,for reply,
> >
> > My problem redirect is solved.Now the problem is ,
> >
> >   I developed website for twitter OAuth using .net 2.0,I deployed
> > that application in public IP, and suddenly I got following error,
> > /An existing connection was forcibly closed by the remote host./
> >
> > But when I run the same application from localhost on same IP,It is
> > working fine.And gives error when It redirected to my Public IP Call
> > back URl.
> >
> > I couldnt figure out is it website issue or Public IP issue.
> >
> > Thanks for help in advance,
> >
> >
> > Punit
> >
> > On Mon, Aug 9, 2010 at 7:45 PM, Taylor Singletary
> >  
>  >> wrote:
> >
> > Hi Punit,
> >
> > First, some advice: I recommend using HTTP header-based OAuth
> rather
> > than putting your OAuth parameters directly in the query
> string. It
> > separates concerns and makes your debugging ultimately easier.
> >
> > That said, the first issue you're probably running into is
> that you
> > aren't URL-encoding your OAuth Callback properly. In fact, when
> > you're presenting any of these OAuth parameters, whether it
> was via
> > HTTP header or query string, you need to do some more escaping.
> >
> > For our servers to properly interpret the URL you are sending,
> your
> > request would need to look a bit more like (noting that the
> > signature would be significantly different as a result):
> >
> >
> 
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> 
> 
> >
> 
>  
> >
> >
> > Are you using an OAuth library for this?
> >
> > Taylor
> >
> >
> > On Sat, Aug 7, 2010 at 5:32 PM, execut...@gmail.com
> > mailto:execut...@gmail.com>
> >> wrote:
> >
> > the link below is broken,,
> >
> >
> >
> > On Sat, Aug 7, 2010 at 4:44 PM, Tom
> mailto:allerleiga...@gmail.com>
> >  >> wrote:
> >
> > How are you generating the signature?
> >
> > Tom
> >
> >
> > On Aug 7, 2:43 pm, "Punit.khaire"
> mailto:punit.kha...@gmail.

Re: [twitter-dev] Re: The remote server returned an error: (401) Unauthorized

2010-08-10 Thread punit khaire
Hi,

Thanks, for the  reply,

But then why site working from the localhost on the same Computer.But If I
accessed it from Public IP it returns error.

Thanks,

Punit Khaire.

On Tue, Aug 10, 2010 at 4:13 PM, Tom van der Woerdt  wrote:

> Twitter doesn't really care about IPs - unless you are doing things
> really, really, really wrong.
>
> Assuming that the signature generation stays the same (some platforms
> have little-endian BO, big-endian BO, etc, and that may change the
> algorithm a bit, but when windows->windows that doesn't really apply),
> the most likely cause of this error is the timestamp of the computer
> running the application.
>
> Tom
>
>
> On 8/10/10 12:07 PM, punit khaire wrote:
> > Hey Taylor Thanks,for reply,
> >
> > My problem redirect is solved.Now the problem is ,
> >
> >   I developed website for twitter OAuth using .net 2.0,I deployed
> > that application in public IP, and suddenly I got following error,
> > /An existing connection was forcibly closed by the remote host./
> >
> > But when I run the same application from localhost on same IP,It is
> > working fine.And gives error when It redirected to my Public IP Call
> > back URl.
> >
> > I couldnt figure out is it website issue or Public IP issue.
> >
> > Thanks for help in advance,
> >
> >
> > Punit
> >
> > On Mon, Aug 9, 2010 at 7:45 PM, Taylor Singletary
> > mailto:taylorsinglet...@twitter.com>>
> wrote:
> >
> > Hi Punit,
> >
> > First, some advice: I recommend using HTTP header-based OAuth rather
> > than putting your OAuth parameters directly in the query string. It
> > separates concerns and makes your debugging ultimately easier.
> >
> > That said, the first issue you're probably running into is that you
> > aren't URL-encoding your OAuth Callback properly. In fact, when
> > you're presenting any of these OAuth parameters, whether it was via
> > HTTP header or query string, you need to do some more escaping.
> >
> > For our servers to properly interpret the URL you are sending, your
> > request would need to look a bit more like (noting that the
> > signature would be significantly different as a result):
> >
> >
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> > <
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> >
> >
> > Are you using an OAuth library for this?
> >
> > Taylor
> >
> >
> > On Sat, Aug 7, 2010 at 5:32 PM, execut...@gmail.com
> > mailto:execut...@gmail.com>> wrote:
> >
> > the link below is broken,,
> >
> >
> >
> > On Sat, Aug 7, 2010 at 4:44 PM, Tom  > > wrote:
> >
> > How are you generating the signature?
> >
> > Tom
> >
> >
> > On Aug 7, 2:43 pm, "Punit.khaire"  > > wrote:
> > > Hi guys,
> > >
> > > I started to work on the twitter application .Our main
> > task is to
> > > tweet messages using oAuth authentication.
> > >
> > > I am sending below request using GET method,
> > >
> > >
> >
> http://api.twitter.com/oauth/request_token?oauth_callback=http://203
> > >
> > > When I manually hit the above URl I get following error
> > message,
> > >
> > >  "Failed to validate oauth signature and token"
> > >
> > > I dont understand y I get this message,as I am sending
> > everything in
> > > my parameter list.
> > >
> > > Am I missing something here,thanks in advance for any help.
> >
> >
> >
> >
> > --
> >
> >
> > --
> > Michael J.D Saguri
> > 1-250-999-0890
> > http://www.tweep.net 
> > Skype: marketingmaniac
> >
> >
> >
>
>


Re: [twitter-dev] Twitter Integration

2010-08-10 Thread Tom van der Woerdt
Yes, by using the xAuth support you named :-)

http://dev.twitter.com/pages/xauth

Tom


On 8/10/10 6:07 AM, niks wrote:
> Hi,
> We are developing an Android native application which has a feature
> for user to tweet his message on Twitter.
> For accessing Twitter we are using twitter4j library which has xAuth
> support.
> 
> We have registered our application on Twitter with application type as
> "Client".
> 
> As per standard OAuth procedure we are redirecting user on
> http://twitter.com/oauth/authorize for authorizing our application to
> access his/her Twitter account. It shows authorization screen where
> user needs to enter his/her credentials and can allow or deny access
> permission.
> 
> But our requirement is to first asks user to login to Twitter and once
> user logged in directly take user to tweet post screen. Can we
> suppress user permission screen that asks to allow or deny accessing
> user's Twitter account?".



Re: [twitter-dev] Re: The remote server returned an error: (401) Unauthorized

2010-08-10 Thread Tom van der Woerdt
Twitter doesn't really care about IPs - unless you are doing things
really, really, really wrong.

Assuming that the signature generation stays the same (some platforms
have little-endian BO, big-endian BO, etc, and that may change the
algorithm a bit, but when windows->windows that doesn't really apply),
the most likely cause of this error is the timestamp of the computer
running the application.

Tom


On 8/10/10 12:07 PM, punit khaire wrote:
> Hey Taylor Thanks,for reply,
>  
> My problem redirect is solved.Now the problem is ,
>  
>   I developed website for twitter OAuth using .net 2.0,I deployed
> that application in public IP, and suddenly I got following error,
> /An existing connection was forcibly closed by the remote host./
>  
> But when I run the same application from localhost on same IP,It is
> working fine.And gives error when It redirected to my Public IP Call
> back URl.
>  
> I couldnt figure out is it website issue or Public IP issue.
>  
> Thanks for help in advance,
>  
>  
> Punit
> 
> On Mon, Aug 9, 2010 at 7:45 PM, Taylor Singletary
> mailto:taylorsinglet...@twitter.com>> wrote:
> 
> Hi Punit,
> 
> First, some advice: I recommend using HTTP header-based OAuth rather
> than putting your OAuth parameters directly in the query string. It
> separates concerns and makes your debugging ultimately easier.
> 
> That said, the first issue you're probably running into is that you
> aren't URL-encoding your OAuth Callback properly. In fact, when
> you're presenting any of these OAuth parameters, whether it was via
> HTTP header or query string, you need to do some more escaping. 
> 
> For our servers to properly interpret the URL you are sending, your
> request would need to look a bit more like (noting that the
> signature would be significantly different as a result):
> 
> 
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
> 
> 
> 
> Are you using an OAuth library for this?
> 
> Taylor
> 
> 
> On Sat, Aug 7, 2010 at 5:32 PM, execut...@gmail.com
> mailto:execut...@gmail.com>> wrote:
> 
> the link below is broken,,
> 
> 
> 
> On Sat, Aug 7, 2010 at 4:44 PM, Tom  > wrote:
> 
> How are you generating the signature?
> 
> Tom
> 
> 
> On Aug 7, 2:43 pm, "Punit.khaire"  > wrote:
> > Hi guys,
> >
> > I started to work on the twitter application .Our main
> task is to
> > tweet messages using oAuth authentication.
> >
> > I am sending below request using GET method,
> >
> >
> 
> http://api.twitter.com/oauth/request_token?oauth_callback=http://203
> >
> > When I manually hit the above URl I get following error
> message,
> >
> >  "Failed to validate oauth signature and token"
> >
> > I dont understand y I get this message,as I am sending
> everything in
> > my parameter list.
> >
> > Am I missing something here,thanks in advance for any help.
> 
> 
> 
> 
> -- 
> 
> 
> --
> Michael J.D Saguri
> 1-250-999-0890
> http://www.tweep.net 
> Skype: marketingmaniac
> 
> 
> 



Re: [twitter-dev] Re: The remote server returned an error: (401) Unauthorized

2010-08-10 Thread punit khaire
Hey Taylor Thanks,for reply,

My problem redirect is solved.Now the problem is ,

  I developed website for twitter OAuth using .net 2.0,I deployed that
application in public IP, and suddenly I got following error,
*An existing connection was forcibly closed by the remote host.*

But when I run the same application from localhost on same IP,It is working
fine.And gives error when It redirected to my Public IP Call back URl.

I couldnt figure out is it website issue or Public IP issue.

Thanks for help in advance,


Punit

On Mon, Aug 9, 2010 at 7:45 PM, Taylor Singletary <
taylorsinglet...@twitter.com> wrote:

> Hi Punit,
>
> First, some advice: I recommend using HTTP header-based OAuth rather than
> putting your OAuth parameters directly in the query string. It separates
> concerns and makes your debugging ultimately easier.
>
> That said, the first issue you're probably running into is that you aren't
> URL-encoding your OAuth Callback properly. In fact, when you're presenting
> any of these OAuth parameters, whether it was via HTTP header or query
> string, you need to do some more escaping.
>
> For our servers to properly interpret the URL you are sending, your request
> would need to look a bit more like (noting that the signature would
> be significantly different as a result):
>
>
> http://api.twitter.com/oauth/request_token?oauth_callback=http%3A%2F%2F203.78.217.115%2FIssueManager%2FLogin.asp&oauth_consumer_key=ilmsYrfa0XjtsqJXCB6HcQ&oauth_nonce=821b87d0-2022-4f50-adcd-76ddae52c5db&oauth_signature=Q01ZADdBJNh5dbltMMQXP37EkVg%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1281177991&oauth_version=1.0
>
> Are you using an OAuth library for this?
>
> Taylor
>
>
> On Sat, Aug 7, 2010 at 5:32 PM, execut...@gmail.com 
> wrote:
>
>> the link below is broken,,
>>
>>
>>
>> On Sat, Aug 7, 2010 at 4:44 PM, Tom  wrote:
>>
>>> How are you generating the signature?
>>>
>>> Tom
>>>
>>>
>>> On Aug 7, 2:43 pm, "Punit.khaire"  wrote:
>>> > Hi guys,
>>> >
>>> > I started to work on the twitter application .Our main task is to
>>> > tweet messages using oAuth authentication.
>>> >
>>> > I am sending below request using GET method,
>>> >
>>> > http://api.twitter.com/oauth/request_token?oauth_callback=http://203..
>>> ..
>>> >
>>> > When I manually hit the above URl I get following error message,
>>> >
>>> >  "Failed to validate oauth signature and token"
>>> >
>>> > I dont understand y I get this message,as I am sending everything in
>>> > my parameter list.
>>> >
>>> > Am I missing something here,thanks in advance for any help.
>>
>>
>>
>>
>> --
>>
>>
>> --
>> Michael J.D Saguri
>> 1-250-999-0890
>> http://www.tweep.net
>> Skype: marketingmaniac
>>
>
>


[twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-10 Thread Lumpizaver
I fixed that now, I just had to type "oob" as callback url. But now I
don't get redirected to the page I want to be. I just get a PIN
number, what should I do now?


[twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-10 Thread Lumpizaver
I am trying to create a simple "Log in with twitter application".
I am using this example: http://www.voiceoftech.com/swhitley/?p=681.
You can get all the code there.

But it throws out an error at this line

Response.Redirect(oAuth.AuthorizationLinkGet()); in oAuthTwitter
WebResponseGet.

Thanks for your help.

Sincerely, Jure


On 9 avg., 16:53, Taylor Singletary 
wrote:
> xAuth would not require this as no callback is utilized. In the case of
> actually executing API resource actions (like sending a tweet), your
> callback (and effectively OAuth itself) has nothing to do with the request
> -- it's only a means of identifying the two parties involved in the request
> ("the user" and "the application").
>
> On Mon, Aug 9, 2010 at 7:51 AM, Andrew W. Donoho 
> wrote:
>
>
>
>
>
> > On Aug 9, 2010, at 08:37 , Taylor Singletary wrote:
>
> > > As a reminder, it's proper OAuth to always send an oauth_callback on the
> > request token step of OAuth negotiation -- even if you've preregistered a
> > callback or are using the PIN code/out-of-band flow (in which case you would
> > send oauth_callback=oob).
>
> > Taylor,
>
> >        As a user of xauth, I do  not currently send "oauth_callback=oob". I
> > think this is because xauth does not participate in the negotiation for a
> > temporary credential. (See:  section
> > 2.1.). Is this your understanding? Or do xauth users need to include this
> > callback in our request for our permanent access token?
>
> > Anon,
> > Andrew
> > 
> > Andrew W. Donoho
> > Donoho Design Group, L.L.C.
> > a...@ddg.com, +1 (512) 750-7596
>
> > "We did not come to fear the future.
> >    We came here to shape it."
>
> > -- President Barack Obama, Sept. 2009