[twitter-dev] Re: Need help with pluggin

2011-03-26 Thread Rimu
I had this problem too. The solution was to change

http://twitter.com/$twitter_id/lists/our-mps/statuses.xml

to be

http://api.twitter.com/1/$twitter_id/lists/our-mps/statuses.xml

NB the /1/. I don't think the domain change matters, but it might.

R

On Mar 25, 11:25 pm, Luuxx luuk_min...@hotmail.com wrote:
 I'm using a plug-gin on a site that stopped working today.I think it
 has something to do with the new update of today but not sure.

 the only thing I know is that the error occurs when the request is
 send:

 http://twitter.com/T2Entertainment/lists/artists/statuses.json?callba...

 the error is quite clear but I don't know how to solve it.

 error:
 You must specify either a list ID or a slug and owner

 the plug-gin is written in JS and the original code is here:

 http://twitter.com/javascripts/widgets/widget.js

 thanks ahead.

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


[twitter-dev] Re: Need help to develop twitter application, Plz reply me

2010-12-22 Thread Bess
Are you coding the Twitter app in Lua?

Not sure there is Lua OAuth Library to support Twitter API?

You need to be more specific in your app in order to get some more
help.

On Dec 21, 9:22 pm, roopesh rai roopesh.ra...@gmail.com wrote:
 It is in Lua

 On Tue, Dec 21, 2010 at 4:13 PM, Amine amine.benha...@gmail.com wrote:
  Hello Rai,

  To get a idea about Twitter Development, start by this :
 http://www.slideshare.net/raffikrikorian/intro-to-developing-for-twit...

  It will give an deep overview. Later go to this page :
 http://dev.twitter.com/doc.

  Are coding in which language ?

  On 21 déc, 07:16, Roopesh Rai roopesh.ra...@gmail.com wrote:
   Thank u for reply
   I am very new to this application, So not understanding basic concepts
   itself,
   can you suggest me any document to read, and having following info
      * how any user can login just by his username and password,how he
   will get authentication ???
      * how I can use this in my application, I mean design for login

    If anybody know answer and ready to share valuable time for sharing
   knowledge, plz suggest me

   regards,
   Rai

   On Dec 21, 9:24 am, Bess bess...@gmail.com wrote:

I am surprised that no one here to response you. May be you are asking
very basic info. You should go buy a Twitter developer book online
ebook or from a book store.

We are releasing a Twitter API Developer book but it is not available
yet til next year.

You'll need to use OAuth, not basic auth.

Twitter OAuth Libraryhttp://dev.twitter.com/pages/oauth_libraries

Use consumer key and consumer secret from your app settings in your
OAuth lib.

Your Twitter API is limited by hour and no. of tweets.

On Dec 19, 11:28 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

 If anybody know solution to above question, Please reply me. I am
  very
 new to twitter application development I am confusing. I am
 trying, Googling... But, Result is nill...

 Thank U

 On Dec 15, 2:33 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

  Hi all,

    I am developing twitter application. In this application without
  browser user can use Twitter, I am providing user a interface to
  use
  twitter.

    I registered my application with twitter . By Oauth I am
  accessing
  twiiter. My doubts starts here

  1) In my application I need to develop such that any user can enter
  his user name and password, and he can enter to  twitter home
  page(In
  my application), But now I am not using any username and password,
  Directly using consumer key, consumer secret key, token key, token
  secret key, PIN I am entering to twitter home. how i can allow
  other
  users to use my application just by there user name and password
  

  2) By using statuses/home_timeline.json, I am getting only 14
  timelines, How I can get all the timeline.

  Thank you for Your valuable reply.

  Regards,
  S.R Rai

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



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


[twitter-dev] Re: Need help to develop twitter application, Plz reply me

2010-12-21 Thread Amine
Hello Rai,

To get a idea about Twitter Development, start by this :
http://www.slideshare.net/raffikrikorian/intro-to-developing-for-twitterapi

It will give an deep overview. Later go to this page : 
http://dev.twitter.com/doc.

Are coding in which language ?

On 21 déc, 07:16, Roopesh Rai roopesh.ra...@gmail.com wrote:
 Thank u for reply
 I am very new to this application, So not understanding basic concepts
 itself,
 can you suggest me any document to read, and having following info
    * how any user can login just by his username and password,how he
 will get authentication ???
    * how I can use this in my application, I mean design for login

  If anybody know answer and ready to share valuable time for sharing
 knowledge, plz suggest me

 regards,
 Rai

 On Dec 21, 9:24 am, Bess bess...@gmail.com wrote:

  I am surprised that no one here to response you. May be you are asking
  very basic info. You should go buy a Twitter developer book online
  ebook or from a book store.

  We are releasing a Twitter API Developer book but it is not available
  yet til next year.

  You'll need to use OAuth, not basic auth.

  Twitter OAuth Libraryhttp://dev.twitter.com/pages/oauth_libraries

  Use consumer key and consumer secret from your app settings in your
  OAuth lib.

  Your Twitter API is limited by hour and no. of tweets.

  On Dec 19, 11:28 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

   If anybody know solution to above question, Please reply me. I am very
   new to twitter application development I am confusing. I am
   trying, Googling... But, Result is nill...

   Thank U

   On Dec 15, 2:33 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

Hi all,

  I am developing twitter application. In this application without
browser user can use Twitter, I am providing user a interface to use
twitter.

  I registered my application with twitter . By Oauth I am accessing
twiiter. My doubts starts here

1) In my application I need to develop such that any user can enter
his user name and password, and he can enter to  twitter home page(In
my application), But now I am not using any username and password,
Directly using consumer key, consumer secret key, token key, token
secret key, PIN I am entering to twitter home. how i can allow other
users to use my application just by there user name and password 

2) By using statuses/home_timeline.json, I am getting only 14
timelines, How I can get all the timeline.

Thank you for Your valuable reply.

Regards,
S.R Rai

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


Re: [twitter-dev] Re: Need help to develop twitter application, Plz reply me

2010-12-21 Thread roopesh rai
It is in Lua

On Tue, Dec 21, 2010 at 4:13 PM, Amine amine.benha...@gmail.com wrote:

 Hello Rai,

 To get a idea about Twitter Development, start by this :
 http://www.slideshare.net/raffikrikorian/intro-to-developing-for-twitterapi

 It will give an deep overview. Later go to this page :
 http://dev.twitter.com/doc.

 Are coding in which language ?

 On 21 déc, 07:16, Roopesh Rai roopesh.ra...@gmail.com wrote:
  Thank u for reply
  I am very new to this application, So not understanding basic concepts
  itself,
  can you suggest me any document to read, and having following info
 * how any user can login just by his username and password,how he
  will get authentication ???
 * how I can use this in my application, I mean design for login
 
   If anybody know answer and ready to share valuable time for sharing
  knowledge, plz suggest me
 
  regards,
  Rai
 
  On Dec 21, 9:24 am, Bess bess...@gmail.com wrote:
 
   I am surprised that no one here to response you. May be you are asking
   very basic info. You should go buy a Twitter developer book online
   ebook or from a book store.
 
   We are releasing a Twitter API Developer book but it is not available
   yet til next year.
 
   You'll need to use OAuth, not basic auth.
 
   Twitter OAuth Libraryhttp://dev.twitter.com/pages/oauth_libraries
 
   Use consumer key and consumer secret from your app settings in your
   OAuth lib.
 
   Your Twitter API is limited by hour and no. of tweets.
 
   On Dec 19, 11:28 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:
 
If anybody know solution to above question, Please reply me. I am
 very
new to twitter application development I am confusing. I am
trying, Googling... But, Result is nill...
 
Thank U
 
On Dec 15, 2:33 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:
 
 Hi all,
 
   I am developing twitter application. In this application without
 browser user can use Twitter, I am providing user a interface to
 use
 twitter.
 
   I registered my application with twitter . By Oauth I am
 accessing
 twiiter. My doubts starts here
 
 1) In my application I need to develop such that any user can enter
 his user name and password, and he can enter to  twitter home
 page(In
 my application), But now I am not using any username and password,
 Directly using consumer key, consumer secret key, token key, token
 secret key, PIN I am entering to twitter home. how i can allow
 other
 users to use my application just by there user name and password
 
 
 2) By using statuses/home_timeline.json, I am getting only 14
 timelines, How I can get all the timeline.
 
 Thank you for Your valuable reply.
 
 Regards,
 S.R Rai

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


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


[twitter-dev] Re: Need help to develop twitter application, Plz reply me

2010-12-20 Thread Bess
I am surprised that no one here to response you. May be you are asking
very basic info. You should go buy a Twitter developer book online
ebook or from a book store.

We are releasing a Twitter API Developer book but it is not available
yet til next year.

You'll need to use OAuth, not basic auth.

Twitter OAuth Library
http://dev.twitter.com/pages/oauth_libraries

Use consumer key and consumer secret from your app settings in your
OAuth lib.

Your Twitter API is limited by hour and no. of tweets.

On Dec 19, 11:28 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:
 If anybody know solution to above question, Please reply me. I am very
 new to twitter application development I am confusing. I am
 trying, Googling... But, Result is nill...

 Thank U

 On Dec 15, 2:33 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

  Hi all,

    I am developing twitter application. In this application without
  browser user can use Twitter, I am providing user a interface to use
  twitter.

    I registered my application with twitter . By Oauth I am accessing
  twiiter. My doubts starts here

  1) In my application I need to develop such that any user can enter
  his user name and password, and he can enter to  twitter home page(In
  my application), But now I am not using any username and password,
  Directly using consumer key, consumer secret key, token key, token
  secret key, PIN I am entering to twitter home. how i can allow other
  users to use my application just by there user name and password 

  2) By using statuses/home_timeline.json, I am getting only 14
  timelines, How I can get all the timeline.

  Thank you for Your valuable reply.

  Regards,
  S.R Rai



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


[twitter-dev] Re: Need help to develop twitter application, Plz reply me

2010-12-20 Thread Roopesh Rai
Thank u for reply
I am very new to this application, So not understanding basic concepts
itself,
can you suggest me any document to read, and having following info
   * how any user can login just by his username and password,how he
will get authentication ???
   * how I can use this in my application, I mean design for login

 If anybody know answer and ready to share valuable time for sharing
knowledge, plz suggest me

regards,
Rai

On Dec 21, 9:24 am, Bess bess...@gmail.com wrote:
 I am surprised that no one here to response you. May be you are asking
 very basic info. You should go buy a Twitter developer book online
 ebook or from a book store.

 We are releasing a Twitter API Developer book but it is not available
 yet til next year.

 You'll need to use OAuth, not basic auth.

 Twitter OAuth Libraryhttp://dev.twitter.com/pages/oauth_libraries

 Use consumer key and consumer secret from your app settings in your
 OAuth lib.

 Your Twitter API is limited by hour and no. of tweets.

 On Dec 19, 11:28 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

  If anybody know solution to above question, Please reply me. I am very
  new to twitter application development I am confusing. I am
  trying, Googling... But, Result is nill...

  Thank U

  On Dec 15, 2:33 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:

   Hi all,

     I am developing twitter application. In this application without
   browser user can use Twitter, I am providing user a interface to use
   twitter.

     I registered my application with twitter . By Oauth I am accessing
   twiiter. My doubts starts here

   1) In my application I need to develop such that any user can enter
   his user name and password, and he can enter to  twitter home page(In
   my application), But now I am not using any username and password,
   Directly using consumer key, consumer secret key, token key, token
   secret key, PIN I am entering to twitter home. how i can allow other
   users to use my application just by there user name and password 

   2) By using statuses/home_timeline.json, I am getting only 14
   timelines, How I can get all the timeline.

   Thank you for Your valuable reply.

   Regards,
   S.R Rai

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


[twitter-dev] Re: Need help to develop twitter application, Plz reply me

2010-12-19 Thread Roopesh Rai
If anybody know solution to above question, Please reply me. I am very
new to twitter application development I am confusing. I am
trying, Googling... But, Result is nill...

Thank U

On Dec 15, 2:33 pm, Roopesh Rai roopesh.ra...@gmail.com wrote:
 Hi all,

   I am developing twitter application. In this application without
 browser user can use Twitter, I am providing user a interface to use
 twitter.

   I registered my application with twitter . By Oauth I am accessing
 twiiter. My doubts starts here

 1) In my application I need to develop such that any user can enter
 his user name and password, and he can enter to  twitter home page(In
 my application), But now I am not using any username and password,
 Directly using consumer key, consumer secret key, token key, token
 secret key, PIN I am entering to twitter home. how i can allow other
 users to use my application just by there user name and password 

 2) By using statuses/home_timeline.json, I am getting only 14
 timelines, How I can get all the timeline.

 Thank you for Your valuable reply.

 Regards,
 S.R Rai

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


[twitter-dev] Re: Need Help Dumping my Tweets for Analysis

2010-11-11 Thread Randomness
Hi Sarah,

You can download an Excel sheet here, that will get you your last 3200
tweets fast. This is as far back as Twitter currently allows us
through the API. From the sheet you can also search through them.

Go to http://twopcharts.com/downloads.php and download My_tweets_2.1

Good luck

On Nov 11, 4:18 am, Sarah K sarahannal...@gmail.com wrote:
 Hi,

 First, let me start by apologizing for asking a question that I know I
 could answer for myself with enough googling, or simply implement
 myself by studying the API docs. I would do so... if I could. But
 that's kind of difficult for me right now.

 The question: can someone point me to a tool, or piece of sample code,
 that can dump all my tweets into a text file? Or at least, the last
 several months worth? Preferably Java or Python code.

 The reason: I may have had a small, silent heart attack about mid-
 September. And, strangely enough, my tweets at the time might help my
 doctor and I pinpoint the approximate date of the incident, because
 I sometimes tweet about my exercise habits. But I need the tweets all
 in a pile I can sort through easily.

 Unfortunately, given that I'm still feeling very unwell, I just don't
 have the energy to figure out how to get my historical tweet data in a
 form that would help me do this analysis, or to write the code myself
 to do so.

 Can anyone help me out with this? Somebody must have a tool to do
 this, right? Something that just dumps all my tweets into a plain text
 file, respects the API rate limits, etc?

 Thanks for any help you can offer. If I wind up needing to make any
 mods to open source code, I'll be more than happy to share any changes
 I make, if appropriate.

 Sarah K

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


[twitter-dev] Re: Need help with MGTwitterEngine OAuth/xAuth

2010-08-31 Thread metawops
P.S.: Here's a link to the Xcode project with the little test program:
http://dl.dropbox.com/u/3748223/MGTEtest.zip

On 31 Aug., 00:13, metawops metaw...@googlemail.com wrote:
 Hi everyone,

 I’m struggling with MGTwitterEngine  OAuth/xAuth here with my Mac OS
 X application.
 The problem is that I get either SIGTRM or EXC_BAD_ACCESS crashes from
 the call of the getXAuthAccessTokenForUsername method. And I just
 don’t know what I’m doing wrong!

 Here’s the (stripped) code of a very simple demo app, basically. Just
 one window with a username  password textfield and a button to start
 the action:

 -(IBAction)pushLogin:(id)sender
 {
   NSString *username = [NSString stringWithString:[tfUsername
 stringValue]];
   NSString *password = [NSString stringWithString:[tfPassword
 stringValue]];
   if ([username isEqualToString:@] || [password
 isEqualToString:@]) {
     // at least one of the text fields was empty!
     [tfInfo setStringValue:@Please supply a username and a
 password!];
   }
   else {
     NSString *xAuthAccessToken = [[[NSString alloc] init]
 autorelease];
     // program crashes at the following line
     xAuthAccessToken = [twitterEngine
 getXAuthAccessTokenForUsername:username password:password];
     [tfInfo setStringValue:xAuthAccessToken];
   }

 }

 #pragma mark MGTwitterEngine delegate methods
 - (void)accessTokenReceived:(OAToken *)token forRequest:(NSString
 *)connectionIdentifier
 {
   [twitterEngine setAccessToken:token];
   [tfInfo setStringValue:@accessTokenReceived!];

 }

 
 Additionally, I set my consumer key  secret in my init method:

 - (id) init
 {
   self = [super init];
   if (self != nil) {
     twitterEngine = [MGTwitterEngine twitterEngineWithDelegate:self];
     NSString *consumerKey = @”123…”;
     NSString *consumerSecret = @”123456…”;
     [twitterEngine setConsumerKey:consumerKey secret:consumerSecret];
   }
   return self;

 }

 Does anyone has any advice? What am I missing?
 (Checked out the latest revisions of MGTwitterEngine  OAuthConsumer.
 Is there any Cocoa alternative to MGTwitterEngine that supports OAuth/
 xAuth?)

 Thank you so much!
 Stefan.

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


[twitter-dev] Re: Need help with MGTwitterEngine OAuth/xAuth

2010-08-31 Thread Felix
Hi,

1. Replace
twitterEngine = [[MGTwitterEngine twitterEngineWithDelegate:self];
with
twitterEngine = [[[MGTwitterEngine twitterEngineWithDelegate:self]
retain];
in init of the TestControllers.

2. build the 32-bit version. 64-bit seems not to be supported.

best regards, Felix.

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


[twitter-dev] Re: Need help with MGTwitterEngine OAuth/xAuth

2010-08-31 Thread metawops
Hi Felix,

thanks so much! Works now!! :-))

Have to read (even) more about memory management in Objective-C!
But never would have found out about the 64bit vs. 32bit issue I
think.
So thanks for pointing that out!!

Stefan.

On Aug 31, 11:35 am, Felix heidr...@enervision.de wrote:
 Hi,

 1. Replace
 twitterEngine = [[MGTwitterEngine twitterEngineWithDelegate:self];
 with
 twitterEngine = [[[MGTwitterEngine twitterEngineWithDelegate:self]
 retain];
 in init of the TestControllers.

 2. build the 32-bit version. 64-bit seems not to be supported.

 best regards, Felix.

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


Re: [twitter-dev] Re: Need Help!! - How Oauth will work in my case?

2010-08-24 Thread Matt Harris
Hi Rushikesh,

OAuth replaces Basic Auth as the way to authenticate with the Twitter
API. If you application didn't require a users password before you
won't need it now. In this situation you will probably find this
document helpful:
  http://dev.twitter.com/pages/oauth_single_token

If, on the other hand, you were asking users for their username and
password you will need to ask the user to grant your application
access to their account. This process is explained in the Basic to
OAuth transition document:
  http://dev.twitter.com/pages/basic_to_oauth

The oauth_single_token page listed above contains information about
some OAuth libraries. We list others which you may want to try here:
  http://dev.twitter.com/pages/oauth_libraries

Regarding your question about not using authentication. If your
application doesn't need to make any authenticated calls you could
just curl the server for information. If you need to request
information from an endpoint which we require authentication for you
will need to use OAuth.

Also, as Justin said, if your account was whitelisted before, it will
be whitelisted on OAuth.

Hope that helps,
Matt


On Tue, Aug 24, 2010 at 3:59 AM, Rushikesh Bhanage
rishibhan...@gmail.com wrote:
 Hi Justin,

   First of all thank you for your reply.

     I have some questions in your answer?

   You'll have to change clients
       - what clients you are talking about ?

    Changing auth schemes shouldn't change what you
    can get out of the API
  - If it is basic/ oauth , yes I am aware about that.

    Once you setup your user's app/ids the same
 whitelist applies
      - what this means to you?

 Can you tell me that as my account and IP is white-listed , If I switched
 from account(id/password)  to  IP(where I won't need to pass ID/password) on
 which I am working right now, in that case do I really need to do Oauth for
 IP also?

 Lastly congrats that you got all working again.

 Thank you in advance.

 On Tue, Aug 24, 2010 at 6:44 AM, Justin justin.carl...@gmail.com wrote:

 You'll have to change clients, but you can obtain the required tokens
 to do the same calls. Changing auth schemes shouldn't change what you
 can get out of the API. Once you setup your user's app/ids the same
 whitelist applies. I just finished my conversion yesterday and
 everything's working the same.

 I use this now:
 http://github.com/abraham/twitteroauth/tree/master/twitteroauth/

 Go up a directory from there to see samples.







 On Aug 21, 8:47 am, Rushikesh Bhanage rishibhan...@gmail.com wrote:
  Hi there,
 
  I have a white-listed account, but the rate-limit has decreased from 20k
  before 5 days to 12k right now. Initially I thought that this might be
  due
  to twitter running over-capacity because I was busy in finishing part of
  app
  to launch it in two days. But i just read one mail from Justin who is
  having
  same problem, now I realized that this cut off might be due to basic
  auth. I
  was also aware about the basic oauth shutting down, but didn't click the
  mind.
 
  We can switch to Oauth, but here are some doubts:
 
  1. *What my app does*? - in my app, when any twitter user enters his
  name-
  we crawl his data thru userstatus method, then we crawl his all the
  followers and show him his real followers.
     For this I am using My Twitter Library from Andres Scheffer, to which
  I
  pass my white listed account user name and password to get all the data.
  *Now
  which Oauth library should I prefer that will meet my requirement?*
 
  2. *How Oauth is going to work*? - I am doubtful that how Oauth is
  going to
  work in my case, until now any user can enter his user name and was able
  to
  get his result. now will I have to take Oauth from each searched user to
  show his result?
 
  If it is so how can I use my white listed account log ins to get 20k
  calls.
 
  Please clear my doubts.
 
  Thank you in advance.




-- 


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

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


[twitter-dev] Re: Need Help!! - How Oauth will work in my case?

2010-08-23 Thread Justin
You'll have to change clients, but you can obtain the required tokens
to do the same calls. Changing auth schemes shouldn't change what you
can get out of the API. Once you setup your user's app/ids the same
whitelist applies. I just finished my conversion yesterday and
everything's working the same.

I use this now:
http://github.com/abraham/twitteroauth/tree/master/twitteroauth/

Go up a directory from there to see samples.







On Aug 21, 8:47 am, Rushikesh Bhanage rishibhan...@gmail.com wrote:
 Hi there,

 I have a white-listed account, but the rate-limit has decreased from 20k
 before 5 days to 12k right now. Initially I thought that this might be due
 to twitter running over-capacity because I was busy in finishing part of app
 to launch it in two days. But i just read one mail from Justin who is having
 same problem, now I realized that this cut off might be due to basic auth. I
 was also aware about the basic oauth shutting down, but didn't click the
 mind.

 We can switch to Oauth, but here are some doubts:

 1. *What my app does*? - in my app, when any twitter user enters his name-
 we crawl his data thru userstatus method, then we crawl his all the
 followers and show him his real followers.
    For this I am using My Twitter Library from Andres Scheffer, to which I
 pass my white listed account user name and password to get all the data. *Now
 which Oauth library should I prefer that will meet my requirement?*

 2. *How Oauth is going to work*? - I am doubtful that how Oauth is going to
 work in my case, until now any user can enter his user name and was able to
 get his result. now will I have to take Oauth from each searched user to
 show his result?

 If it is so how can I use my white listed account log ins to get 20k calls.

 Please clear my doubts.

 Thank you in advance.


[twitter-dev] Re: Need help with PayPal security requirements

2010-06-23 Thread xantiss
OAuth does not use any real login credentials, if you consider login
credentials as a username/password set. Unless you're using xAuth, I
don't think you'll need to worry too much.

On Jun 17, 4:17 am, Jonathon Hill jhill9...@gmail.com wrote:
 I'm trying to get approval from PayPal to use their Preapproval API,
 and to do so my application must meet several requirements. I won't
 post the entire list here, because it isn't applicable to Twitter,
 however since users log in to my application via Twitter OAuth several
 of them are applicable:

 

 A1. User passwords must conform to industry best practices for content

 Generally, the length should be at least 6 characters, and contain at
 least one alpha and one numeric. Candidate passwords which meet the
 static syntactical requirements should also be passed across a
 dictionary of common passwords, and rules – no passwords of
 “blink182”, or passwords which are the same as the user-ID, for
 example.

 

 A6. A control must be implemented that prevents the brute force attack
 of login credentials.

 A common attack against web sites is to attempt to login in with a
 variety of different commonly used passwords for a given login id.
 There must be some method used to ensure that one is unable to perform
 this sort of attack. A common solution is to lock login attempts on an
 account for some period of time. In order to ensure that these
 mechanisms do not generate a means of denial of service attacks
 against accounts, these lockouts should cancel after a period of time
 (a few hours is typical).

 

 A7. A control must be implemented that prevents brute force guessing
 of passwords, especially if the attack is originating from a botnet.

 Typically, this will require collecting metadata about logons, logging
 them into a central log store, and then performing real-time analytics
 against that data. If a brute force attack is detected, a strong
 CAPTCHA (resistant against machine/scripted attacks) would be switched
 on. There are other implementation techniques, but this is the least
 invasive from a user experience perspective. Note – this is
 conceptually and functionally different from A6.

 

 B1. Login credentials must only be collected on pages that implement
 https with Extended Validation (EV) certificates.

 In order to allow customers to verify that they are truly connected to
 the partner site and to encourage general good practices, login
 credentials must be collected on pages that are https enabled, and
 using Extended Validation (EV) certificates.

 

 So, my questions are:

 1. Would you guys be willing to add to your API to allow enforcing
 tighter password requirements as needed?

 2. Will you upgrade your SSL certificate on api.twitter.com to one
 with Extended Validation? It seems like this would be relatively easy
 and inexpensive to do, and beneficial to all.

 3. How doeshttps://api.twitter.com/oauth/authenticaterespond to
 brute-force attacks on login credentials?

 Thanks!

 Jonathon Hill
 @compwright
 @rainmakerapp


[twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-07 Thread Mad Euchre
It turns out you were right with this and John was right with the
POST. Thanks to all who replied. As soon as I changed
(request.readuntilend()) to (request.readline()) the data started
flowing in.

I don't want to muddy the water on this thread but I will by asking
the next predictable problem.  If I have  query string that is ?
track=peter,paul,mary, etc for 1000 terms..won't that exceed some
http limit on length? How does one track about 1000 terms on a single
stream connection? even if there is a method called
request.query(track=peter,paul,mary,etc) isn't that just a substitute
for putting it on the actual URL thus still exceding some length
limit?

Thanks,

 peter

On Mar 5, 4:38 pm, Mark McBride mmcbr...@twitter.com wrote:
 I think this is slightly backwards.  You want to use the GET method, but set
 up the URI you have (with the track=Microsoft parameter).  You will also
 need to authenticate.

 Note that this is a streaming API.  I don't know VB all that well, but
 there's a reasonable chance that this call only returns data when the HTTP
 call has finished.  The streaming API will *never* finish, so you'll need to
 parse data as it's available.  Without looking at VB doc I have no idea how
 you would set that up.

   ---Mark

 http://twitter.com/mccv



 On Fri, Mar 5, 2010 at 9:54 AM, Mad Euchre mad.ukrain...@gmail.com wrote:
  Thanks.

  Now I'm using the post method.

  How should I use the track parameter? Something like this?

   address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
  track=Microsoft)

  I'm getting connected but no data  that matches Microsoft is streaming
  over.No data for that matter.

  I'm passing my name and pw in the request.credentials method. The
  server returned a 200 OK when I added the credentials but not when it
  was in the URL alone.

  ie; address = New Uri(http://stream.twitter.com/1/statuses/
  filter.json?track=Microsoft - name:pw

  Thanks,

  Peter

  On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
   The text file approach only applies to POST parameters set from the curl
   command, and in no other case.

   When creating an HTTP client from within a program, you should be able to
   configure the POST parameters via method calls. If you can't, it's a
  pretty
   worthless HTTP library. Each client library is different, check your
  docs.

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

   On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com
  wrote:
This is the VB code I would use to start any http stream

           request = DirectCast(WebRequest.Create(http://
stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
           request.Credentials = New NetworkCredential(name, pw)
           ' Get response
           response = DirectCast(request.GetResponse(),
HttpWebResponse)

           ' Get the response stream into a reader
           reader = New StreamReader(response.GetResponseStream())

The streaming api documentation says to create a file called track.txt
and add text similar to this without the quotes.   track=peter, paul,
mary

Then use curl @track.txthttp://
  stream.twitter.com/1/statuses/filter.json
- name:pw

I can't believe I have to shell out to DOS and run the curl command
line.

My direct question is how do others incorportate the @track.txt in the
VB.Net web request?

Maybe something like this?

   http://stream.twitter.com/1/statuses/filter.json-name:pw?
track.txt

Thanks- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -


Re: [twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-07 Thread John Kalucki
There is indeed a hard limit to the length of URLs. POST parameters,
however, can be quite large. We have many clients that send parameters with
hundreds of thousands to millions of terms, so this is broadly possible.,
Your HTTP client may or many not support this scale.

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



On Sun, Mar 7, 2010 at 5:57 PM, Mad Euchre mad.ukrain...@gmail.com wrote:

 It turns out you were right with this and John was right with the
 POST. Thanks to all who replied. As soon as I changed
 (request.readuntilend()) to (request.readline()) the data started
 flowing in.

 I don't want to muddy the water on this thread but I will by asking
 the next predictable problem.  If I have  query string that is ?
 track=peter,paul,mary, etc for 1000 terms..won't that exceed some
 http limit on length? How does one track about 1000 terms on a single
 stream connection? even if there is a method called
 request.query(track=peter,paul,mary,etc) isn't that just a substitute
 for putting it on the actual URL thus still exceding some length
 limit?

 Thanks,

  peter

 On Mar 5, 4:38 pm, Mark McBride mmcbr...@twitter.com wrote:
  I think this is slightly backwards.  You want to use the GET method, but
 set
  up the URI you have (with the track=Microsoft parameter).  You will also
  need to authenticate.
 
  Note that this is a streaming API.  I don't know VB all that well, but
  there's a reasonable chance that this call only returns data when the
 HTTP
  call has finished.  The streaming API will *never* finish, so you'll need
 to
  parse data as it's available.  Without looking at VB doc I have no idea
 how
  you would set that up.
 
---Mark
 
  http://twitter.com/mccv
 
 
 
  On Fri, Mar 5, 2010 at 9:54 AM, Mad Euchre mad.ukrain...@gmail.com
 wrote:
   Thanks.
 
   Now I'm using the post method.
 
   How should I use the track parameter? Something like this?
 
address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
   track=Microsoft)
 
   I'm getting connected but no data  that matches Microsoft is streaming
   over.No data for that matter.
 
   I'm passing my name and pw in the request.credentials method. The
   server returned a 200 OK when I added the credentials but not when it
   was in the URL alone.
 
   ie; address = New Uri(http://stream.twitter.com/1/statuses/
   filter.json?track=Microsoft - name:pw
 
   Thanks,
 
   Peter
 
   On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
The text file approach only applies to POST parameters set from the
 curl
command, and in no other case.
 
When creating an HTTP client from within a program, you should be
 able to
configure the POST parameters via method calls. If you can't, it's a
   pretty
worthless HTTP library. Each client library is different, check your
   docs.
 
-John Kaluckihttp://twitter.com/jkalucki
Infrastructure, Twitter Inc.
 
On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com
 
   wrote:
 This is the VB code I would use to start any http stream
 
request = DirectCast(WebRequest.Create(http://
 stream.twitter.com/1/statuses/filter.json - name:pw),
 HttpWebRequest)
request.Credentials = New NetworkCredential(name,
 pw)
' Get response
response = DirectCast(request.GetResponse(),
 HttpWebResponse)
 
' Get the response stream into a reader
reader = New StreamReader(response.GetResponseStream())
 
 The streaming api documentation says to create a file called
 track.txt
 and add text similar to this without the quotes.   track=peter,
 paul,
 mary
 
 Then use curl @track.txthttp://
   stream.twitter.com/1/statuses/filter.json
 - name:pw
 
 I can't believe I have to shell out to DOS and run the curl command
 line.
 
 My direct question is how do others incorportate the @track.txt in
 the
 VB.Net web request?
 
 Maybe something like this?
 
http://stream.twitter.com/1/statuses/filter.json-name:pw?
 track.txt
 
 Thanks- Hide quoted text -
 
- Show quoted text -- Hide quoted text -
 
  - Show quoted text -



[twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-05 Thread Mad Euchre
Thanks.

Now I'm using the post method.

How should I use the track parameter? Something like this?

 address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
track=Microsoft)

I'm getting connected but no data  that matches Microsoft is streaming
over.No data for that matter.

I'm passing my name and pw in the request.credentials method. The
server returned a 200 OK when I added the credentials but not when it
was in the URL alone.

ie; address = New Uri(http://stream.twitter.com/1/statuses/
filter.json?track=Microsoft - name:pw

Thanks,

Peter








On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
 The text file approach only applies to POST parameters set from the curl
 command, and in no other case.

 When creating an HTTP client from within a program, you should be able to
 configure the POST parameters via method calls. If you can't, it's a pretty
 worthless HTTP library. Each client library is different, check your docs.

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



 On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com wrote:
  This is the VB code I would use to start any http stream

             request = DirectCast(WebRequest.Create(http://
  stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
             request.Credentials = New NetworkCredential(name, pw)
             ' Get response
             response = DirectCast(request.GetResponse(),
  HttpWebResponse)

             ' Get the response stream into a reader
             reader = New StreamReader(response.GetResponseStream())

  The streaming api documentation says to create a file called track.txt
  and add text similar to this without the quotes.   track=peter, paul,
  mary

  Then use curl @track.txthttp://stream.twitter.com/1/statuses/filter.json
  - name:pw

  I can't believe I have to shell out to DOS and run the curl command
  line.

  My direct question is how do others incorportate the @track.txt in the
  VB.Net web request?

  Maybe something like this?

 http://stream.twitter.com/1/statuses/filter.json- name:pw?
  track.txt

  Thanks- Hide quoted text -

 - Show quoted text -


Re: [twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-05 Thread Mark McBride
I think this is slightly backwards.  You want to use the GET method, but set
up the URI you have (with the track=Microsoft parameter).  You will also
need to authenticate.

Note that this is a streaming API.  I don't know VB all that well, but
there's a reasonable chance that this call only returns data when the HTTP
call has finished.  The streaming API will *never* finish, so you'll need to
parse data as it's available.  Without looking at VB doc I have no idea how
you would set that up.

  ---Mark

http://twitter.com/mccv


On Fri, Mar 5, 2010 at 9:54 AM, Mad Euchre mad.ukrain...@gmail.com wrote:

 Thanks.

 Now I'm using the post method.

 How should I use the track parameter? Something like this?

  address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
 track=Microsoft)

 I'm getting connected but no data  that matches Microsoft is streaming
 over.No data for that matter.

 I'm passing my name and pw in the request.credentials method. The
 server returned a 200 OK when I added the credentials but not when it
 was in the URL alone.

 ie; address = New Uri(http://stream.twitter.com/1/statuses/
 filter.json?track=Microsoft - name:pw

 Thanks,

 Peter








 On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
  The text file approach only applies to POST parameters set from the curl
  command, and in no other case.
 
  When creating an HTTP client from within a program, you should be able to
  configure the POST parameters via method calls. If you can't, it's a
 pretty
  worthless HTTP library. Each client library is different, check your
 docs.
 
  -John Kaluckihttp://twitter.com/jkalucki
  Infrastructure, Twitter Inc.
 
 
 
  On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com
 wrote:
   This is the VB code I would use to start any http stream
 
  request = DirectCast(WebRequest.Create(http://
   stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
  request.Credentials = New NetworkCredential(name, pw)
  ' Get response
  response = DirectCast(request.GetResponse(),
   HttpWebResponse)
 
  ' Get the response stream into a reader
  reader = New StreamReader(response.GetResponseStream())
 
   The streaming api documentation says to create a file called track.txt
   and add text similar to this without the quotes.   track=peter, paul,
   mary
 
   Then use curl @track.txthttp://
 stream.twitter.com/1/statuses/filter.json
   - name:pw
 
   I can't believe I have to shell out to DOS and run the curl command
   line.
 
   My direct question is how do others incorportate the @track.txt in the
   VB.Net web request?
 
   Maybe something like this?
 
  http://stream.twitter.com/1/statuses/filter.json- name:pw?
   track.txt
 
   Thanks- Hide quoted text -
 
  - Show quoted text -



Re: [twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-05 Thread Andrew Badera
You need a client returning incremental HTTP responses. I don't think
WebResponse does that. TcpClient definitely does, that's what I'm
using in C#.

∞ Andy Badera
∞ +1 518-641-1280 Google Voice
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=andrew%20badera



On Fri, Mar 5, 2010 at 4:38 PM, Mark McBride mmcbr...@twitter.com wrote:
 I think this is slightly backwards.  You want to use the GET method, but set
 up the URI you have (with the track=Microsoft parameter).  You will also
 need to authenticate.
 Note that this is a streaming API.  I don't know VB all that well, but
 there's a reasonable chance that this call only returns data when the HTTP
 call has finished.  The streaming API will *never* finish, so you'll need to
 parse data as it's available.  Without looking at VB doc I have no idea how
 you would set that up.

   ---Mark

 http://twitter.com/mccv


 On Fri, Mar 5, 2010 at 9:54 AM, Mad Euchre mad.ukrain...@gmail.com wrote:

 Thanks.

 Now I'm using the post method.

 How should I use the track parameter? Something like this?

  address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
 track=Microsoft)

 I'm getting connected but no data  that matches Microsoft is streaming
 over.No data for that matter.

 I'm passing my name and pw in the request.credentials method. The
 server returned a 200 OK when I added the credentials but not when it
 was in the URL alone.

 ie; address = New Uri(http://stream.twitter.com/1/statuses/
 filter.json?track=Microsoft - name:pw

 Thanks,

 Peter








 On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
  The text file approach only applies to POST parameters set from the curl
  command, and in no other case.
 
  When creating an HTTP client from within a program, you should be able
  to
  configure the POST parameters via method calls. If you can't, it's a
  pretty
  worthless HTTP library. Each client library is different, check your
  docs.
 
  -John Kaluckihttp://twitter.com/jkalucki
  Infrastructure, Twitter Inc.
 
 
 
  On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com
  wrote:
   This is the VB code I would use to start any http stream
 
              request = DirectCast(WebRequest.Create(http://
   stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
              request.Credentials = New NetworkCredential(name, pw)
              ' Get response
              response = DirectCast(request.GetResponse(),
   HttpWebResponse)
 
              ' Get the response stream into a reader
              reader = New StreamReader(response.GetResponseStream())
 
   The streaming api documentation says to create a file called track.txt
   and add text similar to this without the quotes.   track=peter, paul,
   mary
 
   Then use curl
   @track.txthttp://stream.twitter.com/1/statuses/filter.json
   - name:pw
 
   I can't believe I have to shell out to DOS and run the curl command
   line.
 
   My direct question is how do others incorportate the @track.txt in the
   VB.Net web request?
 
   Maybe something like this?
 
  http://stream.twitter.com/1/statuses/filter.json- name:pw?
   track.txt
 
   Thanks- Hide quoted text -
 
  - Show quoted text -




[twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-05 Thread Mad Euchre
I switch to post after reading John's response.

When creating an HTTP client from within a program, you should be able
to
configure the POST parameters via method calls. If you can't, it's a
pretty
worthless HTTP library. Each client library is different, check your
docs.

-John Kalucki

On Mar 5, 4:38 pm, Mark McBride mmcbr...@twitter.com wrote:
 I think this is slightly backwards.  You want to use the GET method, but set
 up the URI you have (with the track=Microsoft parameter).  You will also
 need to authenticate.

 Note that this is a streaming API.  I don't know VB all that well, but
 there's a reasonable chance that this call only returns data when the HTTP
 call has finished.  The streaming API will *never* finish, so you'll need to
 parse data as it's available.  Without looking at VB doc I have no idea how
 you would set that up.

   ---Mark

 http://twitter.com/mccv



 On Fri, Mar 5, 2010 at 9:54 AM, Mad Euchre mad.ukrain...@gmail.com wrote:
  Thanks.

  Now I'm using the post method.

  How should I use the track parameter? Something like this?

   address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
  track=Microsoft)

  I'm getting connected but no data  that matches Microsoft is streaming
  over.No data for that matter.

  I'm passing my name and pw in the request.credentials method. The
  server returned a 200 OK when I added the credentials but not when it
  was in the URL alone.

  ie; address = New Uri(http://stream.twitter.com/1/statuses/
  filter.json?track=Microsoft - name:pw

  Thanks,

  Peter

  On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
   The text file approach only applies to POST parameters set from the curl
   command, and in no other case.

   When creating an HTTP client from within a program, you should be able to
   configure the POST parameters via method calls. If you can't, it's a
  pretty
   worthless HTTP library. Each client library is different, check your
  docs.

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

   On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com
  wrote:
This is the VB code I would use to start any http stream

           request = DirectCast(WebRequest.Create(http://
stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
           request.Credentials = New NetworkCredential(name, pw)
           ' Get response
           response = DirectCast(request.GetResponse(),
HttpWebResponse)

           ' Get the response stream into a reader
           reader = New StreamReader(response.GetResponseStream())

The streaming api documentation says to create a file called track.txt
and add text similar to this without the quotes.   track=peter, paul,
mary

Then use curl @track.txthttp://
  stream.twitter.com/1/statuses/filter.json
- name:pw

I can't believe I have to shell out to DOS and run the curl command
line.

My direct question is how do others incorportate the @track.txt in the
VB.Net web request?

Maybe something like this?

   http://stream.twitter.com/1/statuses/filter.json-name:pw?
track.txt

Thanks- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -


Re: [twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-05 Thread Mark McBride
Let me clarify... You can do one of

1) Use GET, and specify the parameters as part of the URL query string
(e.g. 
http://stream.twitter.com/1/statuses/filter.json?track=Microsofthttp://stream.twitter.com/1/statuses/filter.json?
track=Microsoft
)
2) Use POST, and pass your arguments in through some VB method.  In this
case the URL will be
http://stream.twitter.com/1/statuses/filter.jsonhttp://stream.twitter.com/1/statuses/filter.json?
track=Microsoft


  ---Mark

http://twitter.com/mccv


On Fri, Mar 5, 2010 at 2:55 PM, Mad Euchre mad.ukrain...@gmail.com wrote:

 I switch to post after reading John's response.

 When creating an HTTP client from within a program, you should be able
 to
 configure the POST parameters via method calls. If you can't, it's a
 pretty
 worthless HTTP library. Each client library is different, check your
 docs.

 -John Kalucki

 On Mar 5, 4:38 pm, Mark McBride mmcbr...@twitter.com wrote:
  I think this is slightly backwards.  You want to use the GET method, but
 set
  up the URI you have (with the track=Microsoft parameter).  You will also
  need to authenticate.
 
  Note that this is a streaming API.  I don't know VB all that well, but
  there's a reasonable chance that this call only returns data when the
 HTTP
  call has finished.  The streaming API will *never* finish, so you'll need
 to
  parse data as it's available.  Without looking at VB doc I have no idea
 how
  you would set that up.
 
---Mark
 
  http://twitter.com/mccv
 
 
 
  On Fri, Mar 5, 2010 at 9:54 AM, Mad Euchre mad.ukrain...@gmail.com
 wrote:
   Thanks.
 
   Now I'm using the post method.
 
   How should I use the track parameter? Something like this?
 
address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
   track=Microsoft)
 
   I'm getting connected but no data  that matches Microsoft is streaming
   over.No data for that matter.
 
   I'm passing my name and pw in the request.credentials method. The
   server returned a 200 OK when I added the credentials but not when it
   was in the URL alone.
 
   ie; address = New Uri(http://stream.twitter.com/1/statuses/
   filter.json?track=Microsoft - name:pw
 
   Thanks,
 
   Peter
 
   On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
The text file approach only applies to POST parameters set from the
 curl
command, and in no other case.
 
When creating an HTTP client from within a program, you should be
 able to
configure the POST parameters via method calls. If you can't, it's a
   pretty
worthless HTTP library. Each client library is different, check your
   docs.
 
-John Kaluckihttp://twitter.com/jkalucki
Infrastructure, Twitter Inc.
 
On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com
 
   wrote:
 This is the VB code I would use to start any http stream
 
request = DirectCast(WebRequest.Create(http://
 stream.twitter.com/1/statuses/filter.json - name:pw),
 HttpWebRequest)
request.Credentials = New NetworkCredential(name,
 pw)
' Get response
response = DirectCast(request.GetResponse(),
 HttpWebResponse)
 
' Get the response stream into a reader
reader = New StreamReader(response.GetResponseStream())
 
 The streaming api documentation says to create a file called
 track.txt
 and add text similar to this without the quotes.   track=peter,
 paul,
 mary
 
 Then use curl @track.txthttp://
   stream.twitter.com/1/statuses/filter.json
 - name:pw
 
 I can't believe I have to shell out to DOS and run the curl command
 line.
 
 My direct question is how do others incorportate the @track.txt in
 the
 VB.Net web request?
 
 Maybe something like this?
 
http://stream.twitter.com/1/statuses/filter.json-name:pw?
 track.txt
 
 Thanks- Hide quoted text -
 
- Show quoted text -- Hide quoted text -
 
  - Show quoted text -



[twitter-dev] Re: Need Help

2009-11-03 Thread JDG
don't supply a callback function to twitter, and you'll get a pin.

Why would you want to use Pin-based auth for the web, though?

On Tue, Nov 3, 2009 at 03:22, mr.aaqib - IIUI mr.aa...@gmail.com wrote:


 Hi,

 I wanna know can we use PIN# authentication for web applications?? As
 far as my understanding PIN# authentication can be used only in
 desktop applications...


 Any help will be highly appreciated.



 Regards
 Aaqib Iqbal




-- 
Internets. Serious business.


[twitter-dev] Re: need help with OAuth library usage in cocoa app

2009-07-24 Thread Isaiah


My example was built right as the pin code method was invented/ 
implemented in the API.  So my example still uses the Browser method  
that doesn't require a pin code.


If you go to your application settings page in twitter and set your  
Application Type to be Browser you should be good to go.


As I understand it the PIN code was invented to help clients that  
couldn't detect if the browser had been sent to the success callback  
URL.  However, my example doesn't have this issue.
My example embeds the browser and communicates directly with it to  
determine when the callback URL is sent.  This technique obviates the  
need for the pin code.


I like to think of my example as a hybrid app -- neither purely a  
desktop client nor really a web app -- but a little bit of both in the  
right places.  ;-)


I've considered adding the pin code, but it seemed to further  
complicate an already challenging UI without adding any value.


If you have any other issues with the example code, please feel free  
to email me directly.  I'd be happy to help out.


Isaiah

YourHead Software
supp...@yourhead.com
http://www.yourhead.com



On Jul 24, 2009, at 12:04 AM, Fares Farhan wrote:



Dear Twitter developers,

First, I apologize if I misplace the question.

I've cloned Isaiah's git repository of his AOuth implementation from
http://github.com/yourhead/OAuth_ObjC_Test_App/tree/master

but I experienced an issue that after the web sheet closed, there is
no place that I can put the PIN retrieved from the authentication
result, or anywhere in the code that I need to pass the oauth_verifier
parameter along with other params.

the debugger said that ther is Operation could not be completed.
(NSURLErrorDomain error -1012.)

Thank you in advance for any response,

Cheers,

Fares




[twitter-dev] Re: need help with OAuth library usage in cocoa app

2009-07-24 Thread Fares Farhan

Thank you for your prompt reply Isaiah,

Thank you also for the offer of emailing you directly, but I think
your code is also precious for other newbie like me who want to know
more about this OAuth thing :)
About changing application type to be Browser, then there is
Callback URL: box that I have to fill, which I have no idea what do
I have to fill in there.
But I tried it anyway, and same result.

Fares

On Jul 24, 10:58 pm, Isaiah supp...@yourhead.com wrote:
 My example was built right as the pin code method was invented/
 implemented in the API.  So my example still uses the Browser method  
 that doesn't require a pin code.

 If you go to your application settings page in twitter and set your  
 Application Type to be Browser you should be good to go.

 As I understand it the PIN code was invented to help clients that  
 couldn't detect if the browser had been sent to the success callback  
 URL.  However, my example doesn't have this issue.
 My example embeds the browser and communicates directly with it to  
 determine when the callback URL is sent.  This technique obviates the  
 need for the pin code.

 I like to think of my example as a hybrid app -- neither purely a  
 desktop client nor really a web app -- but a little bit of both in the  
 right places.  ;-)

 I've considered adding the pin code, but it seemed to further  
 complicate an already challenging UI without adding any value.

 If you have any other issues with the example code, please feel free  
 to email me directly.  I'd be happy to help out.

 Isaiah

 YourHead Software
 supp...@yourhead.comhttp://www.yourhead.com

 On Jul 24, 2009, at 12:04 AM, Fares Farhan wrote:



  Dear Twitter developers,

  First, I apologize if I misplace the question.

  I've cloned Isaiah's git repository of his AOuth implementation from
 http://github.com/yourhead/OAuth_ObjC_Test_App/tree/master

  but I experienced an issue that after the web sheet closed, there is
  no place that I can put the PIN retrieved from the authentication
  result, or anywhere in the code that I need to pass the oauth_verifier
  parameter along with other params.

  the debugger said that ther is Operation could not be completed.
  (NSURLErrorDomain error -1012.)

  Thank you in advance for any response,

  Cheers,

  Fares


[twitter-dev] Re: need help with OAuth library usage in cocoa app

2009-07-24 Thread Isaiah

Thank you for your prompt reply Isaiah,


No worries.  Glad to help out.



Thank you also for the offer of emailing you directly, but I think
your code is also precious for other newbie like me who want to know
more about this OAuth thing :)


It wasn't so easy to figure out a nice way to do this stuff.  I  
figured it would be a good thing to share.  Glad it's helped.



About changing application type to be Browser, then there is
Callback URL: box that I have to fill, which I have no idea what do
I have to fill in there.
But I tried it anyway, and same result.


The callback URL can be any URL you like.  After a successful  
authorization this is the URL that's loaded.  You should specify the  
URL both in the twitter app setup and also as a constant in the  
YHTwitter.m file on line 25:

#define kYHOAuthTwitterCallbackSuccessURL   @http://twitter.com/;

Through the browser delegate methods the client will know that the  
callback URL was reached and the authorization was granted by the  
user.  This triggers the example app to close the browser window and  
save the OAuth info to the keychain.


Although I would imagine you would want to change it to your own web  
site for practical reasons, leaving it as http://twitter.com/ should  
*work* at least for testing purposes.

Isaiah

YourHead Software
supp...@yourhead.com
http://www.yourhead.com




On Jul 24, 2009, at 1:06 PM, Fares Farhan wrote:


Thank you for your prompt reply Isaiah,

Thank you also for the offer of emailing you directly, but I think
your code is also precious for other newbie like me who want to know
more about this OAuth thing :)
About changing application type to be Browser, then there is
Callback URL: box that I have to fill, which I have no idea what do
I have to fill in there.
But I tried it anyway, and same result.

Fares

On Jul 24, 10:58 pm, Isaiah supp...@yourhead.com wrote:
My example was built right as the pin code method was invented/
implemented in the API.  So my example still uses the Browser method
that doesn't require a pin code.

If you go to your application settings page in twitter and set your
Application Type to be Browser you should be good to go.

As I understand it the PIN code was invented to help clients that
couldn't detect if the browser had been sent to the success callback
URL.  However, my example doesn't have this issue.
My example embeds the browser and communicates directly with it to
determine when the callback URL is sent.  This technique obviates the
need for the pin code.

I like to think of my example as a hybrid app -- neither purely a
desktop client nor really a web app -- but a little bit of both in the
right places.  ;-)

I've considered adding the pin code, but it seemed to further
complicate an already challenging UI without adding any value.

If you have any other issues with the example code, please feel free
to email me directly.  I'd be happy to help out.

Isaiah

YourHead Software
supp...@yourhead.comhttp://www.yourhead.com

On Jul 24, 2009, at 12:04 AM, Fares Farhan wrote:



Dear Twitter developers,

First, I apologize if I misplace the question.

I've cloned Isaiah's git repository of his AOuth implementation from
http://github.com/yourhead/OAuth_ObjC_Test_App/tree/master

but I experienced an issue that after the web sheet closed, there is
no place that I can put the PIN retrieved from the authentication
result, or anywhere in the code that I need to pass the oauth_verifier
parameter along with other params.

the debugger said that ther is Operation could not be completed.
(NSURLErrorDomain error -1012.)

Thank you in advance for any response,

Cheers,

Fares



[twitter-dev] Re: need help with OAuth library usage in cocoa app

2009-07-24 Thread Fares Farhan

Magic!

Now it works.. thanks a ton Isaiah :)

On Jul 25, 4:40 am, Isaiah supp...@yourhead.com wrote:
  Thank you for your prompt reply Isaiah,

 No worries.  Glad to help out.

  Thank you also for the offer of emailing you directly, but I think
  your code is also precious for other newbie like me who want to know
  more about this OAuth thing :)

 It wasn't so easy to figure out a nice way to do this stuff.  I  
 figured it would be a good thing to share.  Glad it's helped.

  About changing application type to be Browser, then there is
  Callback URL: box that I have to fill, which I have no idea what do
  I have to fill in there.
  But I tried it anyway, and same result.

 The callback URL can be any URL you like.  After a successful  
 authorization this is the URL that's loaded.  You should specify the  
 URL both in the twitter app setup and also as a constant in the  
 YHTwitter.m file on line 25:
 #define kYHOAuthTwitterCallbackSuccessURL       @http://twitter.com/;

 Through the browser delegate methods the client will know that the  
 callback URL was reached and the authorization was granted by the  
 user.  This triggers the example app to close the browser window and  
 save the OAuth info to the keychain.

 Although I would imagine you would want to change it to your own web  
 site for practical reasons, leaving it ashttp://twitter.com/should  
 *work* at least for testing purposes.
 Isaiah

 YourHead Software
 supp...@yourhead.comhttp://www.yourhead.com



  On Jul 24, 2009, at 1:06 PM, Fares Farhan wrote:

  Thank you for your prompt reply Isaiah,

  Thank you also for the offer of emailing you directly, but I think
  your code is also precious for other newbie like me who want to know
  more about this OAuth thing :)
  About changing application type to be Browser, then there is
  Callback URL: box that I have to fill, which I have no idea what do
  I have to fill in there.
  But I tried it anyway, and same result.

  Fares

  On Jul 24, 10:58 pm, Isaiah supp...@yourhead.com wrote:
  My example was built right as the pin code method was invented/
  implemented in the API.  So my example still uses the Browser method
  that doesn't require a pin code.

  If you go to your application settings page in twitter and set your
  Application Type to be Browser you should be good to go.

  As I understand it the PIN code was invented to help clients that
  couldn't detect if the browser had been sent to the success callback
  URL.  However, my example doesn't have this issue.
  My example embeds the browser and communicates directly with it to
  determine when the callback URL is sent.  This technique obviates the
  need for the pin code.

  I like to think of my example as a hybrid app -- neither purely a
  desktop client nor really a web app -- but a little bit of both in the
  right places.  ;-)

  I've considered adding the pin code, but it seemed to further
  complicate an already challenging UI without adding any value.

  If you have any other issues with the example code, please feel free
  to email me directly.  I'd be happy to help out.

  Isaiah

  YourHead Software
  supp...@yourhead.comhttp://www.yourhead.com

  On Jul 24, 2009, at 12:04 AM, Fares Farhan wrote:

  Dear Twitter developers,

  First, I apologize if I misplace the question.

  I've cloned Isaiah's git repository of his AOuth implementation from
 http://github.com/yourhead/OAuth_ObjC_Test_App/tree/master

  but I experienced an issue that after the web sheet closed, there is
  no place that I can put the PIN retrieved from the authentication
  result, or anywhere in the code that I need to pass the oauth_verifier
  parameter along with other params.

  the debugger said that ther is Operation could not be completed.
  (NSURLErrorDomain error -1012.)

  Thank you in advance for any response,

  Cheers,

  Fares