On Thu, Aug 6, 2009 at 11:33 PM, Dan Kurszewski <dan.kurszew...@gmail.com>wrote:

>
> 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

Reply via email to