[twitter-dev] Re: Question About Post Commands

2009-08-07 Thread Andrew Badera
On Thu, Aug 6, 2009 at 11:33 PM, Dan Kurszewski dan.kurszew...@gmail.comwrote:


 Does anyone know if there is a way with VB.Net or C# to login to
 twitter, call 100 post commands, and then logout?

 Here is my code for making a single post command in VB.Net.  As you
 can see every time I call this function it has to login.  I would love
 to have an array of url's and/or data that need to be processed for
 the same username and password and having only one login.  I have
 tried rearranging things several different ways with no luck.

 Any help would be greatly appreciated.

 ---

Public Function ExecutePostCommand(ByVal url As String, ByVal
 username As String, ByVal password As String, _
ByVal data As String) As String
 *snip*
End Function



You're not logging in to anything -- there's no concept of a session in
play. What is your concern about supplying credentials with every call?

No, you can't batch your requests on the API side -- you're going to have to
make a call to the API for every post.

Have you looked into OAuth? You retrieve a single token for access, which
along with your consumer token you use over and over again to make requests
on behalf of a specific account. You still need to make an API call for
every POST action however.

Thanks-
- Andy Badera
- and...@badera.us
- Google me: http://www.google.com/search?q=andrew+badera
- This email is: [ ] bloggable [x] ask first [ ] private


[twitter-dev] Re: Question About Post Commands

2009-08-07 Thread Dan Kurszewski

My issue is the amount of time it takes to do a certain number of
friendship/destroy and friendship/create calls.  Right now I am using
the code from the original post.

Would the oAuth speed this up versus the posts that I am doing?

Does anyone else know a way to speed up a larger group of API calls?

Thanks,
Dan


[twitter-dev] Re: Question About Post Commands

2009-08-07 Thread JDG
If it's a desktop app, you could spawn some number of threads (say 10) and
make 10 post calls in each simultaneously.

On Fri, Aug 7, 2009 at 10:35, Dan Kurszewski dan.kurszew...@gmail.comwrote:


 My issue is the amount of time it takes to do a certain number of
 friendship/destroy and friendship/create calls.  Right now I am using
 the code from the original post.

 Would the oAuth speed this up versus the posts that I am doing?

 Does anyone else know a way to speed up a larger group of API calls?

 Thanks,
 Dan




-- 
Internets. Serious business.


[twitter-dev] Re: Question About Post Commands

2009-08-07 Thread Andrew Badera
On Fri, Aug 7, 2009 at 12:47 PM, JDG ghil...@gmail.com wrote:

 If it's a desktop app, you could spawn some number of threads (say 10) and
 make 10 post calls in each simultaneously.


Why does it have to be a desktop app? Most real web frameworks support
asynchronous calls. Desktop app, web app, whichever, spin off some threads
and go asynchronous.


Thanks-
- Andy Badera
- and...@badera.us
- Google me: http://www.google.com/search?q=andrew+badera
- This email is: [ ] bloggable [x] ask first [ ] private


[twitter-dev] Re: Question About Post Commands

2009-08-07 Thread Prashanth Sivarajan
Hi All,

I get the Twitter is over capacity page when I try to post a status. Is it
working for others now? or is it blocked following hte outage yesterday?

Prashanth

On Fri, Aug 7, 2009 at 1:16 PM, Andrew Badera and...@badera.us wrote:

 On Thu, Aug 6, 2009 at 11:33 PM, Dan Kurszewski 
 dan.kurszew...@gmail.comwrote:


 Does anyone know if there is a way with VB.Net or C# to login to
 twitter, call 100 post commands, and then logout?

 Here is my code for making a single post command in VB.Net.  As you
 can see every time I call this function it has to login.  I would love
 to have an array of url's and/or data that need to be processed for
 the same username and password and having only one login.  I have
 tried rearranging things several different ways with no luck.

 Any help would be greatly appreciated.

 ---

Public Function ExecutePostCommand(ByVal url As String, ByVal
 username As String, ByVal password As String, _
ByVal data As String) As String
 *snip*
End Function



 You're not logging in to anything -- there's no concept of a session in
 play. What is your concern about supplying credentials with every call?

 No, you can't batch your requests on the API side -- you're going to have
 to make a call to the API for every post.

 Have you looked into OAuth? You retrieve a single token for access, which
 along with your consumer token you use over and over again to make requests
 on behalf of a specific account. You still need to make an API call for
 every POST action however.

 Thanks-
 - Andy Badera
 - and...@badera.us
 - Google me: http://www.google.com/search?q=andrew+badera
 - This email is: [ ] bloggable [x] ask first [ ] private