Re: OAuth Documentation Preview

2009-02-09 Thread atebits

> For an end user, OAuth is generally speaking much friendlier for pretty much
> every application type, iPhone, desktop, or web.

>From my chair, OAuth is a fantastic solution to authenticate *other
web apps*.  OAuth anywhere else, desktop, iPhone, laundry machine,
makes me want to chip away a hole in my skull with a dull screwdriver,
jab a straw into my head, and drink my own brain matter.

No, seriously.  When I launch a desktop app, I want to type in my
username and password.  That's it.  If I launch a Twitter client on my
iPhone, I don't want to have to quit the frickin' app to authenticate
in Safari, then go *back* to the app when I'm done.  Sure I could
bring up an embedded web view, but UIWebView is a flakey hunk of junk,
and it's no more secure than letting the user type the password into a
native field directly because I would *own the web view and can get at
any info the users types in anyway*.

Hell, it's not even any more secure on the desktop... I just install a
key listener and wait for you to type in a password into your browser.

Ok, I'm holding myself back from ranting.  I guess my point is this:
OAuth sucks hardcore for everything except other web apps.

Oh, and Twitter guys: I can't thank you guys enough for keeping around
basic auth.  Thank you thank you thank you.


Re: External submit box

2009-02-09 Thread Pliggs

Ok, I gave that a shot, but an error message saying it couldn't be
posted.

I set up an example at http://www.faqpal.com/twitter/insertTwitterMsg.php



On Feb 9, 7:36 pm, Chad Etzel  wrote:
> You could modify your linked example by changing
>
> $twitter_username ='yourTwitterUserName';
> $twitter_psw ='yourTwitterPassword';
>
> to:
>
> $twitter_username =$_POST["username"];
> $twitter_psw =$_POST["password"];
>
> and adding a 'username' textbox and a 'password' textbox in the tweet form
>
> -Chad
>
> On Mon, Feb 9, 2009 at 6:27 PM, Pliggs  wrote:
>
> > Hi,
>
> > I am trying to find info about creating a submission box similar to
> > what "TweetBurner.com" uses, but it won't be used for what they are
> > using it for.
>
> > Is it possible to have a form on my website that the user can enter
> > their username/password and a message and have it post to their
> > account Twitter?
>
> > Or would be this be a limitation of the API?
>
> > The closest example I could find is
> >http://woork.blogspot.com/2007/10/twitter-send-message-from-php-page
> > but that one is limited as far as not allowing visitors to enter their
> > username/password.
>
> > Thanks for any guidance you can offer.
>
> > Darrell M.


friends timeline problem

2009-02-09 Thread Diane Slater
Does anyone else see the friends_timeline not working as expected?

I have 5 tweets total (toucancrm) ,  3 of which are replies.

When I go to my home page on the web, I only see the non-replies, and the
latest post (3 tweets).

When I use the API to retrieve friends_timeline, I only get 2 tweets, the
non replies. Shouldn't I see that same 3 updates with the API as I do on the
home page? The API says:

Returns the 20 most recent statuses posted by the authenticating user and
that user's friends. This is the equivalent of /home on the Web.

But mine doesn't sync up.

I also really don't understand why my home page shows 3 updates, which
twitter.com/toucancrm shows 5. Why don't the @replies show up when you click
the link for home?

Thanks for any help clearing this up!

Toucan


Re: OAuth Documentation Preview

2009-02-09 Thread Shannon Whitley

The consumer key and consumer secret are required to open the
conversation with Twitter.  How can this be handled with a desktop app
unless the app talks to a web proxy?  You wouldn't embed the key/
secret in the code (especially if it's open source).



On Feb 9, 1:12 pm, Blaine Cook  wrote:
> On Feb 9, 4:37 pm, Shannon Whitley  wrote:
>
> > It's not clear to me how desktop apps will authenticate.  Will each
> > author need to maintain a website to perform the authentication?  I
> > don't see how it can be done otherwise.
>
> OAuth was designed with explicit desktop application support in mind.
> To see how it works in practice, try using a desktop Flickr Uploader
> or iMovie's YouTube integration.
>
> Normally your app will open a browser window (all modern environments
> do this seamlessly) and ask the user to authorize the application.
> Once they've done that, they should be told to go back to the
> application (close the browser window) and continue the setup process
> (usually by just clicking "Continue" or OK so that the desktop app
> knows that it's OK to exchange the request token for the access
> token).
>
> b.


Re: OAuth Documentation Preview

2009-02-09 Thread Cameron Kaiser

> For an end user, OAuth is generally speaking much friendlier for pretty much
> every application type, iPhone, desktop, or web.

Citation please :)

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- The less we know, the better we feel. -- David Bowie, "Miracle Goodnight" --


Re: OAuth Documentation Preview

2009-02-09 Thread Nicholas Moline
For an end user, OAuth is generally speaking much friendlier for pretty much
every application type, iPhone, desktop, or web.  The only applications that
might possibly have a usability barrier (and as I said before, a quite
slight one if you just make your own workaround as I just suggested) are
command line applications, and because it's only really feasible to use
command line applications with a single user, the curl login for you method
I mentioned should work just fine.

On Mon, Feb 9, 2009 at 3:30 PM, funkatron  wrote:

>
> Those are all technical issues. I'm talking about usability issues for
> non-technical users. However, none of what I'd have to say is
> different than what I've already said on the topic, and I'm sure
> things will work out fine in time.
>
> --
> Ed Finkler
> http://funkatron.com
> AIM: funka7ron
> ICQ: 3922133
> Skype: funka7ron
>
>
> On Feb 9, 5:11 pm, Nicholas Moline  wrote:
> > Assuming Twitter keeps to a long/no expiration model for the OAuth tokens
> > (as I understand it, it currently is set to not expire in the beta), or
> > better yet, have a choice method for how long the token will last, for
> users
> > accessing a site that accesses twitter, have a short expiration (an hour
> or
> > a day), but have the option to create a token for client side
> applications
> > that don't expire, then there shouldn't be a problem.  You have your
> client
> > program check to see if your token is valid, if it is not, spit out the
> url
> > to get a new token, then you just paste your token back into your app's
> > information and it's good for another 6 months or forever or whatever.
> > It should even be possible to have your script get the token for you, for
> > your own purposes if you store your login information, you can have your
> > script access the url, get the token, and save it.
> >
> > There should be no real reason to save end user's login information, they
> > should grant you access for the time periods that they access the site,
> it's
> > much more secure that way overall, and if Twitter keeps to a long
> expiration
> > model, saving those tokens to act for a period of time should be fine.
> >
> > On Mon, Feb 9, 2009 at 2:03 PM, funkatron  wrote:
> >
> > > I still maintain that this works fine for knowledgeable web dev folks
> > > (who seem to be the people who get excited about OAuth), but *will*
> > > confuse users who don't understand the tech involved, and/or aren't
> > > comfortable jumping between apps. In addition, the process becomes
> > > even more problematic with apps that don't run on a modern windowing
> > > platform (like CLIs, mobile devices, and the like).
> >
> > > If you have hard numbers from usability studies that prove my
> > > suspicions unfounded, that would be *great*. I'd love to be wrong.
> >
> > > --
> > > Ed Finkler
> > >http://funkatron.com
> > > AIM: funka7ron
> > > ICQ: 3922133
> > > Skype: funka7ron
> >
> > > On Feb 9, 4:12 pm, Blaine Cook  wrote:
> > > > OAuth was designed with explicit desktop application support in mind.
> > > > To see how it works in practice, try using a desktop Flickr Uploader
> > > > or iMovie's YouTube integration.
> >
> > > > Normally your app will open a browser window (all modern environments
> > > > do this seamlessly) and ask the user to authorize the application.
> > > > Once they've done that, they should be told to go back to the
> > > > application (close the browser window) and continue the setup process
> > > > (usually by just clicking "Continue" or OK so that the desktop app
> > > > knows that it's OK to exchange the request token for the access
> > > > token).
> >
> > > > b.
> >
> >
>


Re: External submit box

2009-02-09 Thread Chad Etzel

You could modify your linked example by changing

$twitter_username ='yourTwitterUserName';
$twitter_psw ='yourTwitterPassword';

to:

$twitter_username =$_POST["username"];
$twitter_psw =$_POST["password"];

and adding a 'username' textbox and a 'password' textbox in the tweet form

-Chad

On Mon, Feb 9, 2009 at 6:27 PM, Pliggs  wrote:
>
> Hi,
>
> I am trying to find info about creating a submission box similar to
> what "TweetBurner.com" uses, but it won't be used for what they are
> using it for.
>
> Is it possible to have a form on my website that the user can enter
> their username/password and a message and have it post to their
> account Twitter?
>
> Or would be this be a limitation of the API?
>
> The closest example I could find is
> http://woork.blogspot.com/2007/10/twitter-send-message-from-php-page.html
> but that one is limited as far as not allowing visitors to enter their
> username/password.
>
> Thanks for any guidance you can offer.
>
> Darrell M.
>


Re: OAuth Documentation Preview

2009-02-09 Thread funkatron

Those are all technical issues. I'm talking about usability issues for
non-technical users. However, none of what I'd have to say is
different than what I've already said on the topic, and I'm sure
things will work out fine in time.

--
Ed Finkler
http://funkatron.com
AIM: funka7ron
ICQ: 3922133
Skype: funka7ron


On Feb 9, 5:11 pm, Nicholas Moline  wrote:
> Assuming Twitter keeps to a long/no expiration model for the OAuth tokens
> (as I understand it, it currently is set to not expire in the beta), or
> better yet, have a choice method for how long the token will last, for users
> accessing a site that accesses twitter, have a short expiration (an hour or
> a day), but have the option to create a token for client side applications
> that don't expire, then there shouldn't be a problem.  You have your client
> program check to see if your token is valid, if it is not, spit out the url
> to get a new token, then you just paste your token back into your app's
> information and it's good for another 6 months or forever or whatever.
> It should even be possible to have your script get the token for you, for
> your own purposes if you store your login information, you can have your
> script access the url, get the token, and save it.
>
> There should be no real reason to save end user's login information, they
> should grant you access for the time periods that they access the site, it's
> much more secure that way overall, and if Twitter keeps to a long expiration
> model, saving those tokens to act for a period of time should be fine.
>
> On Mon, Feb 9, 2009 at 2:03 PM, funkatron  wrote:
>
> > I still maintain that this works fine for knowledgeable web dev folks
> > (who seem to be the people who get excited about OAuth), but *will*
> > confuse users who don't understand the tech involved, and/or aren't
> > comfortable jumping between apps. In addition, the process becomes
> > even more problematic with apps that don't run on a modern windowing
> > platform (like CLIs, mobile devices, and the like).
>
> > If you have hard numbers from usability studies that prove my
> > suspicions unfounded, that would be *great*. I'd love to be wrong.
>
> > --
> > Ed Finkler
> >http://funkatron.com
> > AIM: funka7ron
> > ICQ: 3922133
> > Skype: funka7ron
>
> > On Feb 9, 4:12 pm, Blaine Cook  wrote:
> > > OAuth was designed with explicit desktop application support in mind.
> > > To see how it works in practice, try using a desktop Flickr Uploader
> > > or iMovie's YouTube integration.
>
> > > Normally your app will open a browser window (all modern environments
> > > do this seamlessly) and ask the user to authorize the application.
> > > Once they've done that, they should be told to go back to the
> > > application (close the browser window) and continue the setup process
> > > (usually by just clicking "Continue" or OK so that the desktop app
> > > knows that it's OK to exchange the request token for the access
> > > token).
>
> > > b.
>
>


External submit box

2009-02-09 Thread Pliggs

Hi,

I am trying to find info about creating a submission box similar to
what "TweetBurner.com" uses, but it won't be used for what they are
using it for.

Is it possible to have a form on my website that the user can enter
their username/password and a message and have it post to their
account Twitter?

Or would be this be a limitation of the API?

The closest example I could find is
http://woork.blogspot.com/2007/10/twitter-send-message-from-php-page.html
but that one is limited as far as not allowing visitors to enter their
username/password.

Thanks for any guidance you can offer.

Darrell M.


Re: OAuth Documentation Preview

2009-02-09 Thread Nicholas Moline
Assuming Twitter keeps to a long/no expiration model for the OAuth tokens
(as I understand it, it currently is set to not expire in the beta), or
better yet, have a choice method for how long the token will last, for users
accessing a site that accesses twitter, have a short expiration (an hour or
a day), but have the option to create a token for client side applications
that don't expire, then there shouldn't be a problem.  You have your client
program check to see if your token is valid, if it is not, spit out the url
to get a new token, then you just paste your token back into your app's
information and it's good for another 6 months or forever or whatever.
It should even be possible to have your script get the token for you, for
your own purposes if you store your login information, you can have your
script access the url, get the token, and save it.

There should be no real reason to save end user's login information, they
should grant you access for the time periods that they access the site, it's
much more secure that way overall, and if Twitter keeps to a long expiration
model, saving those tokens to act for a period of time should be fine.

On Mon, Feb 9, 2009 at 2:03 PM, funkatron  wrote:

>
> I still maintain that this works fine for knowledgeable web dev folks
> (who seem to be the people who get excited about OAuth), but *will*
> confuse users who don't understand the tech involved, and/or aren't
> comfortable jumping between apps. In addition, the process becomes
> even more problematic with apps that don't run on a modern windowing
> platform (like CLIs, mobile devices, and the like).
>
> If you have hard numbers from usability studies that prove my
> suspicions unfounded, that would be *great*. I'd love to be wrong.
>
> --
> Ed Finkler
> http://funkatron.com
> AIM: funka7ron
> ICQ: 3922133
> Skype: funka7ron
>
>
>
>
> On Feb 9, 4:12 pm, Blaine Cook  wrote:
> > OAuth was designed with explicit desktop application support in mind.
> > To see how it works in practice, try using a desktop Flickr Uploader
> > or iMovie's YouTube integration.
> >
> > Normally your app will open a browser window (all modern environments
> > do this seamlessly) and ask the user to authorize the application.
> > Once they've done that, they should be told to go back to the
> > application (close the browser window) and continue the setup process
> > (usually by just clicking "Continue" or OK so that the desktop app
> > knows that it's OK to exchange the request token for the access
> > token).
> >
> > b.
>


Re: Issues with following

2009-02-09 Thread pnoeric

I figured it out-- we weren't allowed to follow any more people, but
the API wasn't giving us any more error messages.

If we manually follow people, we get the error message (which,
incidentally, is hosed on Mac Firefox-- I can file a separate bug
report for that, if y'all want). So that's how I know we hit the
limit.

But the real bug here seems to be that the API returns no error code
of any kind, so my app didn't realize there was an issue.

Should I file a bug report for this?

E




On Feb 4, 6:38 pm, dougw  wrote:
> Eric,
> Please do provide some basic recreate steps... not much to go on here.
>
> @dougw
>
> On Feb 4, 9:08 pm,pnoeric wrote:
>
> > I've been having some strange issues with following new people-- I'm
> > issuing the createFriendship call as always, Twitter doesn't appear to
> > be returning any error or other result code, but then when I manually
> > check on my account, we're not following the new person. I didn't see
> > anything specific in the Twitter status blog-- could it be some kind
> > of known API issue?
>
> > Sorry I don't have more specifics right now, I can work on providing a
> > sample case if you want.
>
> > best
> > Eric


Re: Help with If-Modified-Since and C#

2009-02-09 Thread rhysmeister

Hi Gustavo,

The If-Modified-Since is a http header not a url parameter. You want
to user the 'since' parameter...

 string url = "http://twitter.com/statuses/replies.xml?since="; +
HttpUtility.UrlEncode("True, 09 Feb 2009 14:00:00 GMT")

Also your http formatted date is wrong.

Regards,

Rhys





On Feb 9, 11:57 am, Gustavo Melo  wrote:
> Hello Guys,Som1 had some code snippets using If-Modified-Since in C#?
> Whatever, header or parameter...
> I want to get only replies TODAY starting of my parameter with some HOUR
>
> Example:
> I had 10 replies today (1 am -> 10 am) and i want only (5 am -> 10 am)
>
> I'm trying this:
>
> string url = "http://twitter.com/statuses/replies.xml?If-Modified-Since="; +
> HttpUtility.UrlEncode("True, 09 Feb 2009 14:00:00 GMT")
>
> --
> Analista Desenvolvedorwww.espacodj.com


Re: Post message to a group using API

2009-02-09 Thread Alex Payne

That's not really the way Twitter works. Generally, you update your
own account and people follow you. You post once, multiple people
read. That's how messages on Twitter spread to more than one person.

On Mon, Feb 9, 2009 at 13:59, Anikanchan Raut  wrote:
> I want to send a message to multiple Tweeter users.
>
> On Mon, Feb 9, 2009 at 4:57 PM, Alex Payne  wrote:
>>
>> Is your intention to update on behalf of multiple accounts, or to send
>> a message TO multiple users?
>>
>> On Mon, Feb 9, 2009 at 13:48, Anikanchan Raut 
>> wrote:
>> > What I meant to ask was if I could post a message to multiple users in
>> > one
>> > go. Also, if I can do it through the API and not the web interface.
>> > Thanks.
>> >
>> > Nik
>> >
>> > On Mon, Feb 9, 2009 at 4:45 PM, Chad Etzel  wrote:
>> >>
>> >> Define "group" ?  There are many different interpretations.
>> >> -Chad
>> >>
>> >> On Mon, Feb 9, 2009 at 4:20 PM, Anikanchan 
>> >> wrote:
>> >> >
>> >> > I am trying to figure out if I can post a message to a group on
>> >> > twitter using its API. If you can share any information in this
>> >> > regard, it would greatly help and be appreciated. Thanks.
>> >> >
>> >> > Nik
>> >> >
>> >
>> >
>> >
>> > --
>> >
>> > ~The best thing to be is to be yourself.
>> >
>>
>>
>>
>> --
>> Alex Payne - API Lead, Twitter, Inc.
>> http://twitter.com/al3x
>
>
>
> --
>
> ~The best thing to be is to be yourself.
>



-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


Re: Post message to a group using API

2009-02-09 Thread Chad Etzel

http://jazzychad.net/twgroups/ may suite your needs...

-chad

On Mon, Feb 9, 2009 at 5:05 PM, Cameron Kaiser  wrote:
>
>> I, too, am a newbie to this "Tweeter," tell me more!
>
> Naughty. :-P
>
> --
>  personal: http://www.cameronkaiser.com/ 
> --
>  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
> -- Eggheads unite! You have nothing to lose but your yolks. -- Adlai Stevenson
>


Re: Post message to a group using API

2009-02-09 Thread Cameron Kaiser

> I, too, am a newbie to this "Tweeter," tell me more!

Naughty. :-P

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Eggheads unite! You have nothing to lose but your yolks. -- Adlai Stevenson


Re: OAuth Documentation Preview

2009-02-09 Thread funkatron

I still maintain that this works fine for knowledgeable web dev folks
(who seem to be the people who get excited about OAuth), but *will*
confuse users who don't understand the tech involved, and/or aren't
comfortable jumping between apps. In addition, the process becomes
even more problematic with apps that don't run on a modern windowing
platform (like CLIs, mobile devices, and the like).

If you have hard numbers from usability studies that prove my
suspicions unfounded, that would be *great*. I'd love to be wrong.

--
Ed Finkler
http://funkatron.com
AIM: funka7ron
ICQ: 3922133
Skype: funka7ron




On Feb 9, 4:12 pm, Blaine Cook  wrote:
> OAuth was designed with explicit desktop application support in mind.
> To see how it works in practice, try using a desktop Flickr Uploader
> or iMovie's YouTube integration.
>
> Normally your app will open a browser window (all modern environments
> do this seamlessly) and ask the user to authorize the application.
> Once they've done that, they should be told to go back to the
> application (close the browser window) and continue the setup process
> (usually by just clicking "Continue" or OK so that the desktop app
> knows that it's OK to exchange the request token for the access
> token).
>
> b.


Re: Post message to a group using API

2009-02-09 Thread Andrew Badera
I, too, am a newbie to this "Tweeter," tell me more!

On Mon, Feb 9, 2009 at 5:01 PM, Anikanchan Raut wrote:

> Sorry, I am a newbie to Tweeter. What is a DM?
>
>
> On Mon, Feb 9, 2009 at 4:57 PM, Cameron Kaiser wrote:
>
>>
>> > What I meant to ask was if I could post a message to multiple users in
>> one
>> > go.
>>
>> If you mean multiple DMs, no.
>>
>> --
>>  personal:
>> http://www.cameronkaiser.com/ --
>>  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
>> ckai...@floodgap.com
>> -- And if I claim to be a wise man/it surely means that I don't know. --
>> Kansas
>>
>
>
>
> --
>
> ~The best thing to be is to be yourself.
>


Re: Post message to a group using API

2009-02-09 Thread Cameron Kaiser

> Sorry, I am a newbie to Tweeter. What is a DM?

A DM is a Twitter direct message.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Proponents of other opinions will be merrily beaten to a bloody pulp. --


Re: Post message to a group using API

2009-02-09 Thread Anikanchan Raut
Sorry, I am a newbie to Tweeter. What is a DM?

On Mon, Feb 9, 2009 at 4:57 PM, Cameron Kaiser  wrote:

>
> > What I meant to ask was if I could post a message to multiple users in
> one
> > go.
>
> If you mean multiple DMs, no.
>
> --
>  personal:
> http://www.cameronkaiser.com/ --
>  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
> ckai...@floodgap.com
> -- And if I claim to be a wise man/it surely means that I don't know. --
> Kansas
>



-- 

~The best thing to be is to be yourself.


Re: Post message to a group using API

2009-02-09 Thread Anikanchan Raut
I want to send a message to multiple Tweeter users.

On Mon, Feb 9, 2009 at 4:57 PM, Alex Payne  wrote:

>
> Is your intention to update on behalf of multiple accounts, or to send
> a message TO multiple users?
>
> On Mon, Feb 9, 2009 at 13:48, Anikanchan Raut 
> wrote:
> > What I meant to ask was if I could post a message to multiple users in
> one
> > go. Also, if I can do it through the API and not the web interface.
> Thanks.
> >
> > Nik
> >
> > On Mon, Feb 9, 2009 at 4:45 PM, Chad Etzel  wrote:
> >>
> >> Define "group" ?  There are many different interpretations.
> >> -Chad
> >>
> >> On Mon, Feb 9, 2009 at 4:20 PM, Anikanchan 
> wrote:
> >> >
> >> > I am trying to figure out if I can post a message to a group on
> >> > twitter using its API. If you can share any information in this
> >> > regard, it would greatly help and be appreciated. Thanks.
> >> >
> >> > Nik
> >> >
> >
> >
> >
> > --
> >
> > ~The best thing to be is to be yourself.
> >
>
>
>
> --
> Alex Payne - API Lead, Twitter, Inc.
> http://twitter.com/al3x
>



-- 

~The best thing to be is to be yourself.


Re: Post message to a group using API

2009-02-09 Thread Alex Payne

Is your intention to update on behalf of multiple accounts, or to send
a message TO multiple users?

On Mon, Feb 9, 2009 at 13:48, Anikanchan Raut  wrote:
> What I meant to ask was if I could post a message to multiple users in one
> go. Also, if I can do it through the API and not the web interface. Thanks.
>
> Nik
>
> On Mon, Feb 9, 2009 at 4:45 PM, Chad Etzel  wrote:
>>
>> Define "group" ?  There are many different interpretations.
>> -Chad
>>
>> On Mon, Feb 9, 2009 at 4:20 PM, Anikanchan  wrote:
>> >
>> > I am trying to figure out if I can post a message to a group on
>> > twitter using its API. If you can share any information in this
>> > regard, it would greatly help and be appreciated. Thanks.
>> >
>> > Nik
>> >
>
>
>
> --
>
> ~The best thing to be is to be yourself.
>



-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


Re: Post message to a group using API

2009-02-09 Thread Cameron Kaiser

> What I meant to ask was if I could post a message to multiple users in one
> go.

If you mean multiple DMs, no.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- And if I claim to be a wise man/it surely means that I don't know. -- Kansas


Re: Post message to a group using API

2009-02-09 Thread Anikanchan Raut
What I meant to ask was if I could post a message to multiple users in one
go. Also, if I can do it through the API and not the web interface. Thanks.

Nik

On Mon, Feb 9, 2009 at 4:45 PM, Chad Etzel  wrote:

>
> Define "group" ?  There are many different interpretations.
> -Chad
>
> On Mon, Feb 9, 2009 at 4:20 PM, Anikanchan  wrote:
> >
> > I am trying to figure out if I can post a message to a group on
> > twitter using its API. If you can share any information in this
> > regard, it would greatly help and be appreciated. Thanks.
> >
> > Nik
> >
>



-- 

~The best thing to be is to be yourself.


Re: OAuth Documentation Preview

2009-02-09 Thread Cameron Kaiser

> > It's not clear to me how desktop apps will authenticate. _Will each
> > author need to maintain a website to perform the authentication? _I
> > don't see how it can be done otherwise.
> 
> OAuth was designed with explicit desktop application support in mind.
> To see how it works in practice, try using a desktop Flickr Uploader
> or iMovie's YouTube integration.
> 
> Normally your app will open a browser window (all modern environments
> do this seamlessly) and ask the user to authorize the application.
> Once they've done that, they should be told to go back to the
> application (close the browser window) and continue the setup process
> (usually by just clicking "Continue" or OK so that the desktop app
> knows that it's OK to exchange the request token for the access
> token).

With all due respect, *not* all modern environments do this seamlessly. How
would a script in somebody's cron job do that? Or a text-mode client? They
all have to authenticate and they are not in an environment where a browser
is easily available, if it is available at all.

Even for those apps that do have the ability to open a browser, which I grant
will be many and possibly even most, it does present a UX problem with
differing interfaces and it may be hard for some apps to *find* the generated
credentials to use.

Noteworthy things on this topic, from Google of all companies:

http://sites.google.com/site/oauthgoog/UXFedLogin/nobrowser
"Authorizing rich-client devices without a web browser"

http://sites.google.com/site/oauthgoog/UXFedLogin/desktopapps
"UX research on desktop apps using federated login and/or OAuth"

These are not easy problems to solve, and even Google does not have a
seamless solution.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- With a rubber duck, one's never alone. -- Douglas Adams, "HGTTG" ---


Re: Post message to a group using API

2009-02-09 Thread Chad Etzel

Define "group" ?  There are many different interpretations.
-Chad

On Mon, Feb 9, 2009 at 4:20 PM, Anikanchan  wrote:
>
> I am trying to figure out if I can post a message to a group on
> twitter using its API. If you can share any information in this
> regard, it would greatly help and be appreciated. Thanks.
>
> Nik
>


Re: Post message to a group using API

2009-02-09 Thread Alex Payne

Twitter doesn't currently have the concept of groups - just users
following other users.

On Mon, Feb 9, 2009 at 13:20, Anikanchan  wrote:
>
> I am trying to figure out if I can post a message to a group on
> twitter using its API. If you can share any information in this
> regard, it would greatly help and be appreciated. Thanks.
>
> Nik
>



-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


Post message to a group using API

2009-02-09 Thread Anikanchan

I am trying to figure out if I can post a message to a group on
twitter using its API. If you can share any information in this
regard, it would greatly help and be appreciated. Thanks.

Nik


Re: OAuth Documentation Preview

2009-02-09 Thread Blaine Cook

On Feb 9, 4:37 pm, Shannon Whitley  wrote:
> It's not clear to me how desktop apps will authenticate.  Will each
> author need to maintain a website to perform the authentication?  I
> don't see how it can be done otherwise.

OAuth was designed with explicit desktop application support in mind.
To see how it works in practice, try using a desktop Flickr Uploader
or iMovie's YouTube integration.

Normally your app will open a browser window (all modern environments
do this seamlessly) and ask the user to authorize the application.
Once they've done that, they should be told to go back to the
application (close the browser window) and continue the setup process
(usually by just clicking "Continue" or OK so that the desktop app
knows that it's OK to exchange the request token for the access
token).

b.


"nefarious bug"

2009-02-09 Thread hotmilkgt

*after two weeks of submitting my previous request*
I've troubled shoot with her on this problem for 2 weeks now. we
unfollow/refollowed each other about a dozen times. changed twitter
clients on the iphone, followed using 40404 and using web only and
reset up device update a few times.

I consider myself to be a very patient person but this nefarious bug
that @caroline told me about is causing a lot of problems. First: my
gf unfollows me and several of her friends automatically. Second:
sometimes when i go to twitter.com/peach_ I get the message that she
does not exist. Third: She can't receive device update from most of
her friends. She's gone through the whole call ATT and see if 40404 is
blocked, and you guys clearing cache on her account and she even had a
message that showed that you guys were working on her device update on
her account. But so far, nothing has changed. If anything, she's
automatically unfollowing more people now and the user does not exist
message is also showing up more frequently. Happened to me twice over
the weekend. I know you guys have a lot of users and if this issue is
not just pertaining to her. Please look into this bug. Thanks.


Re: Counting tweets without caching Twitter?

2009-02-09 Thread Chad Etzel

Ah, then it sounds like you need The Firehose (tm).  Or ask the
twitscoop guys how they're getting their data (which I am now curious
about).
-chad

On Mon, Feb 9, 2009 at 1:50 PM, Jennie Lees  wrote:
>
> Aye, that'd work if I knew the terms in advance, but I'm hoping to do
> something more dynamic that could work for any term. Thanks for the
> suggestion though!
>
> Jen
>
> On Mon, Feb 9, 2009 at 4:23 PM, Chad Etzel  wrote:
>>
>> If you are just looking for keeping track of the number of tweets, and
>> not concerned about keeping them around for later data processing, you
>> can poll the search API every so often for your terms of interest and
>> just update your counters on the fly.
>>
>> pseudo code:
>>
>> let TOTAL = 0
>> let BUCKET = array of timeslices
>>
>> Do Forever
>>  Poll Search API for 
>>  let C = number of results
>>  TOTAL := TOTAL + C
>>  let BUCKET[i] be the current timeslice bucket (e.g. 11-12)
>>  BUCKET[i] := BUCKET[i] + C
>>  Store TOTAL and BUCKET[i] back to database
>>  Sleep for a bit
>> End Do
>>
>>
>> Not sure if this would be close to fitting your needs, but something
>> to start with maybe...
>> -Chad
>>
>> On Mon, Feb 9, 2009 at 10:52 AM, Jennie Lees  wrote:
>>>
>>> Hi all,
>>>
>>> I'm looking for a way to find the number of tweets matching a certain
>>> term, both overall and as a time series (e.g. how many results between
>>> 11:00 and 12:00 - I want to monitor changes over time).
>>>
>>> I can't really see an obvious way to do this beyond making a local
>>> copy of every tweet and searching those, then counting the results. I
>>> believe that's what TwitScoop does, but I can't help but think this
>>> isn't the most efficient way.
>>>
>>> Has anyone found another approach?
>>>
>>> Jen
>>>
>>
>


Re: Counting tweets without caching Twitter?

2009-02-09 Thread Jennie Lees

Aye, that'd work if I knew the terms in advance, but I'm hoping to do
something more dynamic that could work for any term. Thanks for the
suggestion though!

Jen

On Mon, Feb 9, 2009 at 4:23 PM, Chad Etzel  wrote:
>
> If you are just looking for keeping track of the number of tweets, and
> not concerned about keeping them around for later data processing, you
> can poll the search API every so often for your terms of interest and
> just update your counters on the fly.
>
> pseudo code:
>
> let TOTAL = 0
> let BUCKET = array of timeslices
>
> Do Forever
>  Poll Search API for 
>  let C = number of results
>  TOTAL := TOTAL + C
>  let BUCKET[i] be the current timeslice bucket (e.g. 11-12)
>  BUCKET[i] := BUCKET[i] + C
>  Store TOTAL and BUCKET[i] back to database
>  Sleep for a bit
> End Do
>
>
> Not sure if this would be close to fitting your needs, but something
> to start with maybe...
> -Chad
>
> On Mon, Feb 9, 2009 at 10:52 AM, Jennie Lees  wrote:
>>
>> Hi all,
>>
>> I'm looking for a way to find the number of tweets matching a certain
>> term, both overall and as a time series (e.g. how many results between
>> 11:00 and 12:00 - I want to monitor changes over time).
>>
>> I can't really see an obvious way to do this beyond making a local
>> copy of every tweet and searching those, then counting the results. I
>> believe that's what TwitScoop does, but I can't help but think this
>> isn't the most efficient way.
>>
>> Has anyone found another approach?
>>
>> Jen
>>
>


Re: Request Limit

2009-02-09 Thread Jesse Stay
Thanks guys - it's good to have clarification on that.

Jesse

On Mon, Feb 9, 2009 at 11:24 AM, Alex Payne  wrote:

>
> Yes, that method works whether you're whitelisted or not.
>
> On Sun, Feb 8, 2009 at 14:16, Abraham Williams <4bra...@gmail.com> wrote:
> > I guess this could have been clearer but I ran almost 3000 authenticated
> > requests and the rate_limit_status counted fine so it is probable that it
> > will count fin into the 20k range.
> >
> > On Sun, Feb 8, 2009 at 02:11, Abraham Williams <4bra...@gmail.com>
> wrote:
> >>
> >> I've not tested in the 20k range but it counts into the 2k range. So you
> >> should be fine.
> >
> >
> > --
> > | Abraham Williams | http://the.hackerconundrum.com
> > | Web608 | Community Evangelist | http://web608.org
> > | This email is: [] blogable [x] ask first [] private
> >
>
>
>
> --
> Alex Payne - API Lead, Twitter, Inc.
> http://twitter.com/al3x
>


Re: Request Limit

2009-02-09 Thread Alex Payne

Yes, that method works whether you're whitelisted or not.

On Sun, Feb 8, 2009 at 14:16, Abraham Williams <4bra...@gmail.com> wrote:
> I guess this could have been clearer but I ran almost 3000 authenticated
> requests and the rate_limit_status counted fine so it is probable that it
> will count fin into the 20k range.
>
> On Sun, Feb 8, 2009 at 02:11, Abraham Williams <4bra...@gmail.com> wrote:
>>
>> I've not tested in the 20k range but it counts into the 2k range. So you
>> should be fine.
>
>
> --
> | Abraham Williams | http://the.hackerconundrum.com
> | Web608 | Community Evangelist | http://web608.org
> | This email is: [] blogable [x] ask first [] private
>



-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


Re: avatar URL returned by API different then what twitter web page returns

2009-02-09 Thread Matt Sanford

Hi there,

I think Cameron was asking since knowing if it changed or not,  
and if that change was via the API or web will help find the error.  
Since this seems like a bug from the description please open an issue  
at http://code.google.com/p/twitter-api/issues for it. Please include  
how the image was updated so I can fix it quicker.


Thanks;
  — Matt Sanford / @mzsanford

On Feb 9, 2009, at 08:40 AM, CodeWarden wrote:



Whether they did or didn't change it, the one that the twitter API is
returning is the one that doesn't work.  If they changed it, you would
think that the one returned by the API would be the correct one, and
perhaps the one accessed through the twitter web site might get
cached.

-Paul


On Feb 8, 12:14 am, Cameron Kaiser  wrote:
Take a look at @SuperGeeks.   The URL for the avatar image  
returned by

the API (xml or json), gets a 404 when you try to retrieve it.


That same user has a different Avatar URL when looking at my  
timeline

from the twitter web site, still goes to amazon but different URL...


Did they recently change their avatar? This might be a caching  
interaction.


--
 personal:http://www.cameronkaiser.com/--
  Cameron Kaiser * Floodgap Systems *www.floodgap.com*  
ckai...@floodgap.com
-- Friends don't let friends use Windows.  
-




Re: Custom User Agent

2009-02-09 Thread Rob Ashton

Are you looking for this?

http://apiwiki.twitter.com/FAQ#HowdoIget“fromMyApp”appendedtoupdatessentfrommyAPIapplication

Regards,

Rob

On Feb 9, 9:04 am, "R.Sebastian"  wrote:
> I'm trying to fix a custom User Agent for a long time, using the API
> in PHP and Curl.
>
> This is my script:
>
>                  $curl_handle = curl_init();
>                 curl_setopt($curl_handle, CURLOPT_URL, "$url");
>                 curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
>                 curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
>                 curl_setopt($curl_handle, CURLOPT_POST, 1);
>                 curl_setopt($curl_handle, CURLOPT_USERAGENT, ' *Flog 
> (http://www.
> 17031986.nl)');
>                 curl_setopt($curl_handle, CURLOPT_POSTFIELDS, 
> "status=$message");
>                 curl_setopt($curl_handle, CURLOPT_USERPWD, 
> "$username:$password");
>                 $buffer = curl_exec($curl_handle);
>                 curl_close($curl_handle);
>                 }
>
> ?>
>
> I want to add the custom user agent, but if i post a message (which
> works), Twitter says the user agent is "via web" instead of my custom
> agent. Does anyone knows the answer? Thanks!


Re: avatar URL returned by API different then what twitter web page returns

2009-02-09 Thread CodeWarden

Whether they did or didn't change it, the one that the twitter API is
returning is the one that doesn't work.  If they changed it, you would
think that the one returned by the API would be the correct one, and
perhaps the one accessed through the twitter web site might get
cached.

-Paul


On Feb 8, 12:14 am, Cameron Kaiser  wrote:
> > Take a look at @SuperGeeks.   The URL for the avatar image returned by
> > the API (xml or json), gets a 404 when you try to retrieve it.
>
> > That same user has a different Avatar URL when looking at my timeline
> > from the twitter web site, still goes to amazon but different URL...
>
> Did they recently change their avatar? This might be a caching interaction.
>
> --
>  personal:http://www.cameronkaiser.com/--
>   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
> -- Friends don't let friends use Windows. 
> -


Re: Help with If-Modified-Since and C#

2009-02-09 Thread Gustavo Melo
I try this too:
HttpWebRequest http = (HttpWebRequest)WebRequest.Create(url);
http.IfModifiedSince = DateTime.Now;

This code will give to me only replies that was new on 24 hours behind?
In this case too, return all (all days) replies that i had.

On Mon, Feb 9, 2009 at 2:57 PM, Gustavo Melo  wrote:

> Hello Guys,Som1 had some code snippets using If-Modified-Since in C#?
> Whatever, header or parameter...
> I want to get only replies TODAY starting of my parameter with some HOUR
>
> Example:
> I had 10 replies today (1 am -> 10 am) and i want only (5 am -> 10 am)
>
> I'm trying this:
>
> string url = "http://twitter.com/statuses/replies.xml?If-Modified-Since=";
> + HttpUtility.UrlEncode("True, 09 Feb 2009 14:00:00 GMT")
>
> --
> Analista Desenvolvedor
> www.espacodj.com
>



-- 
Analista Desenvolvedor
www.espacodj.com


Help with If-Modified-Since and C#

2009-02-09 Thread Gustavo Melo
Hello Guys,Som1 had some code snippets using If-Modified-Since in C#?
Whatever, header or parameter...
I want to get only replies TODAY starting of my parameter with some HOUR

Example:
I had 10 replies today (1 am -> 10 am) and i want only (5 am -> 10 am)

I'm trying this:

string url = "http://twitter.com/statuses/replies.xml?If-Modified-Since="; +
HttpUtility.UrlEncode("True, 09 Feb 2009 14:00:00 GMT")

-- 
Analista Desenvolvedor
www.espacodj.com


Re: Custom User Agent

2009-02-09 Thread R.Sebastian

Thank you guys,

But after seeying the rules for an own source, i discovered that it's
not going to happen for my situation, considering it's a blog. Thanks
for this URL tough (http://twitter.com/help/request_source), i'll keep
that one in mind!

Rene

On Feb 9, 5:24 pm, Matt Sanford  wrote:
> Hello again,
>
>      The entry in the FAQ is named " How do I get “from [MyApp]”  
> appended to updates sent from my API application?":
>
> http://apiwiki.twitter.com/FAQ#HowdoIget%E2%80%9CfromMyApp%E2%80%9Dap...
>
>      And it asks you to request a source at:
>
> http://twitter.com/help/request_source
>
>      Once you have a source you can pass it in using the source  
> parameter. So instead of setting the user-agent you will append  
> &source=value to your post body (where value is the value you get  
> during registration).
>
> Thanks;
>    — Matt
>
> On Feb 9, 2009, at 08:14 AM, R.Sebastian wrote:
>
>
>
> > Hey Matt,
>
> > I searched for it in the F.A.Q. , but i could not get a real answer
> > when i searched for source. Also when i changed "curl_setopt
> > ($curl_handle, CURLOPT_USERAGENT, '*Flog (http://www.17031986.nl)');"
> > into " curl_setopt($curl_handle, CURLOPT_SOURCE, '*Flog (http://www.
> > 17031986.nl)');  " , but still, no results.. Could you give me a more
> > advanced answer maybe?
>
> > Thanks!


Re: Custom User Agent

2009-02-09 Thread Mario Menti
On Mon, Feb 9, 2009 at 4:09 PM, R.Sebastian  wrote:

>
> Sorry, i'm not that of a hero with API's e.d.
>
> I couldn't really find it at the F.A.Q., if you search for source i
> can't find a matching answer.
>
>
http://apiwiki.twitter.com/FAQ#HowdoIget"fromMyApp"appendedtoupdatessentfrommyAPIapplication


Re: Custom User Agent

2009-02-09 Thread Matt Sanford

Hello again,

The entry in the FAQ is named " How do I get “from [MyApp]”  
appended to updates sent from my API application?":


http://apiwiki.twitter.com/FAQ#HowdoIget%E2%80%9CfromMyApp%E2%80%9DappendedtoupdatessentfrommyAPIapplication

And it asks you to request a source at:

http://twitter.com/help/request_source

Once you have a source you can pass it in using the source  
parameter. So instead of setting the user-agent you will append  
&source=value to your post body (where value is the value you get  
during registration).


Thanks;
  — Matt

On Feb 9, 2009, at 08:14 AM, R.Sebastian wrote:



Hey Matt,

I searched for it in the F.A.Q. , but i could not get a real answer
when i searched for source. Also when i changed "curl_setopt
($curl_handle, CURLOPT_USERAGENT, '*Flog (http://www.17031986.nl)'); "
into " curl_setopt($curl_handle, CURLOPT_SOURCE, '*Flog (http://www.
17031986.nl)');  " , but still, no results.. Could you give me a more
advanced answer maybe?

Thanks!




Re: Counting tweets without caching Twitter?

2009-02-09 Thread Chad Etzel

If you are just looking for keeping track of the number of tweets, and
not concerned about keeping them around for later data processing, you
can poll the search API every so often for your terms of interest and
just update your counters on the fly.

pseudo code:

let TOTAL = 0
let BUCKET = array of timeslices

Do Forever
  Poll Search API for 
  let C = number of results
  TOTAL := TOTAL + C
  let BUCKET[i] be the current timeslice bucket (e.g. 11-12)
  BUCKET[i] := BUCKET[i] + C
  Store TOTAL and BUCKET[i] back to database
  Sleep for a bit
End Do


Not sure if this would be close to fitting your needs, but something
to start with maybe...
-Chad

On Mon, Feb 9, 2009 at 10:52 AM, Jennie Lees  wrote:
>
> Hi all,
>
> I'm looking for a way to find the number of tweets matching a certain
> term, both overall and as a time series (e.g. how many results between
> 11:00 and 12:00 - I want to monitor changes over time).
>
> I can't really see an obvious way to do this beyond making a local
> copy of every tweet and searching those, then counting the results. I
> believe that's what TwitScoop does, but I can't help but think this
> isn't the most efficient way.
>
> Has anyone found another approach?
>
> Jen
>


Re: Custom User Agent

2009-02-09 Thread Cameron Kaiser

> I searched for it in the F.A.Q. , but i could not get a real answer
> when i searched for source. Also when i changed "curl_setopt
> ($curl_handle, CURLOPT_USERAGENT, '*Flog (http://www.17031986.nl)'); "
> into " curl_setopt($curl_handle, CURLOPT_SOURCE, '*Flog (http://www.
> 17031986.nl)');  " , but still, no results.. Could you give me a more
> advanced answer maybe?

What Matt is referring to is this:

How do I get from [MyApp] appended to updates sent from my API application?

Just fill out this handy form!  Note that you must have a Twitter account and
must be signed in to submit the form. We only approve applications and sites
that appear legitimate and in the best interest of Twitter, Inc. and our
community. We do not approve requests to link to personal sites and weblogs,
marketing materials, or anything that rubs us the wrong way.

"handy form" => http://twitter.com/help/request_source

They send you a source back, and you put that in your app.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Honesty is the best policy, but insanity is a better defense. --


Re: Custom User Agent

2009-02-09 Thread R.Sebastian

Sorry, i'm not that of a hero with API's e.d.

I couldn't really find it at the F.A.Q., if you search for source i
can't find a matching answer.

But, i tried chaning this:
curl_setopt($curl_handle, CURLOPT_USERAGENT, '*Flog (http://www.
17031986.nl)');

To:
curl_setopt($curl_handle, CURLOPT_SOURCE, '*Flog (http://www.
17031986.nl)');

To bad, cause that didn't work Does anyone of you guys have a more
advanced answer?

Thanks!

On 9 feb, 16:54, Matt Sanford  wrote:
> Hello,
>
>      The "from web" is called a source in Twitter developer jargon.  
> Check out the FAQ athttp://apiwiki.twitter.com/FAQfor information on  
> getting your own.
>
> Thanks;
>    — Matt Sanford
>
> On Feb 9, 2009, at 01:04 AM, R.Sebastian wrote:
>
>
>
> > I'm trying to fix a custom User Agent for a long time, using the API
> > in PHP and Curl.
>
> > This is my script:
>
> >  >                $curl_handle = curl_init();
> >            curl_setopt($curl_handle, CURLOPT_URL, "$url");
> >            curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
> >            curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
> >            curl_setopt($curl_handle, CURLOPT_POST, 1);
> >            curl_setopt($curl_handle, CURLOPT_USERAGENT, ' *Flog (http://www.
> > 17031986.nl)');
> >            curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message");
> >            curl_setopt($curl_handle, CURLOPT_USERPWD, 
> > "$username:$password");
> >            $buffer = curl_exec($curl_handle);
> >            curl_close($curl_handle);
> >            }
>
> > ?>
>
> > I want to add the custom user agent, but if i post a message (which
> > works), Twitter says the user agent is "via web" instead of my custom
> > agent. Does anyone knows the answer? Thanks!


Re: Custom User Agent

2009-02-09 Thread R.Sebastian

Hey Matt,

I searched for it in the F.A.Q. , but i could not get a real answer
when i searched for source. Also when i changed "curl_setopt
($curl_handle, CURLOPT_USERAGENT, '*Flog (http://www.17031986.nl)'); "
into " curl_setopt($curl_handle, CURLOPT_SOURCE, '*Flog (http://www.
17031986.nl)');  " , but still, no results.. Could you give me a more
advanced answer maybe?

Thanks!


Counting tweets without caching Twitter?

2009-02-09 Thread Jennie Lees

Hi all,

I'm looking for a way to find the number of tweets matching a certain
term, both overall and as a time series (e.g. how many results between
11:00 and 12:00 - I want to monitor changes over time).

I can't really see an obvious way to do this beyond making a local
copy of every tweet and searching those, then counting the results. I
believe that's what TwitScoop does, but I can't help but think this
isn't the most efficient way.

Has anyone found another approach?

Jen


Re: OAuth Documentation Preview

2009-02-09 Thread Cameron Kaiser

> It's not clear to me how desktop apps will authenticate.  Will each
> author need to maintain a website to perform the authentication?  I
> don't see how it can be done otherwise.

Certain apps that have a web view potential could do it by redirecting to
the provider, but yes, this is the point that Ed and I were making that
desktop apps have a big problem navigating the workflow (first going to the
provider with a browser, and second, looking for the credentials; most apps
will be constrained, and some apps can't start a browser at all).

However, Alex stated in a previous message that they are considering some
legacy options for desktop applications; I imagine we'll hear more about
that as the OAuth formal rollout becomes imminent.

Usual "I don't speak or work for Twitter" applies.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Quote me as saying I was misquoted. -- Groucho Marx 


Re: Custom User Agent

2009-02-09 Thread Matt Sanford

Hello,

The "from web" is called a source in Twitter developer jargon.  
Check out the FAQ at http://apiwiki.twitter.com/FAQ for information on  
getting your own.


Thanks;
  — Matt Sanford

On Feb 9, 2009, at 01:04 AM, R.Sebastian wrote:



I'm trying to fix a custom User Agent for a long time, using the API
in PHP and Curl.

This is my script:

http://www.
17031986.nl)');
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, 
"status=$message");
curl_setopt($curl_handle, CURLOPT_USERPWD, 
"$username:$password");
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
}

?>

I want to add the custom user agent, but if i post a message (which
works), Twitter says the user agent is "via web" instead of my custom
agent. Does anyone knows the answer? Thanks!




Re: OAuth Documentation Preview

2009-02-09 Thread Shannon Whitley

It's not clear to me how desktop apps will authenticate.  Will each
author need to maintain a website to perform the authentication?  I
don't see how it can be done otherwise.


On Feb 6, 9:52 pm, Matt Sanford  wrote:
> Hi all,
>
>     We launched our OAuth code to production yesterday with employee-
> only access to check for any problems that didn't show up during our
> testing. We've been running it through it's paces and fully plan to
> have it open to the closed beta group by next week. If you didn't hear
> back from Alex and I don't worry, we're working to expand the beta
> once things are a bit more stable. As part of a company meeting today
> I presented OAuth to the people who haven't been working on it via a
> demo app I wrote … it was exciting times to see this run on
> production. I think of the application developers on this list as an
> extension of our team so I don't want to wait until next week to send
> you the documentation. I wrote up a quick how-to sort of thing on the
> wiki about writing a very simple OAuth app for Ruby on Rals. Check it
> out athttp://bit.ly/api-oauth-ruby.
>     With any luck we can add some more examples and things during this
> beta period, most notably in PHP since that seems to be the majority
> of the questions on the list.
>
> Thanks;
>    — Matt Sanford


Custom User Agent

2009-02-09 Thread R.Sebastian

I'm trying to fix a custom User Agent for a long time, using the API
in PHP and Curl.

This is my script:

http://www.
17031986.nl)');
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, 
"status=$message");
curl_setopt($curl_handle, CURLOPT_USERPWD, 
"$username:$password");
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
}

?>

I want to add the custom user agent, but if i post a message (which
works), Twitter says the user agent is "via web" instead of my custom
agent. Does anyone knows the answer? Thanks!


Re: OAuth Documentation Preview

2009-02-09 Thread Matt Sanford

Hi Jesse,

Currently we don't have any plans to expire access tokens. That  
may change in the future but even if it does I suspect it will be a  
long duration.


Thanks;
  — Matt Sanford

On Feb 7, 2009, at 10:20 PM, Jesse Stay wrote:

How long do the access tokens last?  Are they permanent, or do they  
have an expiration after which we'll have to re-authenticate the user?


Thanks,

Jesse

On Fri, Feb 6, 2009 at 10:52 PM, Matt Sanford   
wrote:


Hi all,

   We launched our OAuth code to production yesterday with employee-
only access to check for any problems that didn't show up during our
testing. We've been running it through it's paces and fully plan to
have it open to the closed beta group by next week. If you didn't hear
back from Alex and I don't worry, we're working to expand the beta
once things are a bit more stable. As part of a company meeting today
I presented OAuth to the people who haven't been working on it via a
demo app I wrote … it was exciting times to see this run on
production. I think of the application developers on this list as an
extension of our team so I don't want to wait until next week to send
you the documentation. I wrote up a quick how-to sort of thing on the
wiki about writing a very simple OAuth app for Ruby on Rals. Check it
out at http://bit.ly/api-oauth-ruby.
   With any luck we can add some more examples and things during this
beta period, most notably in PHP since that seems to be the majority
of the questions on the list.

Thanks;
  — Matt Sanford





Re: Not able to make a request for a specific twitter id :(

2009-02-09 Thread Matt Sanford

Hi there,

We have an open ticket on this bug (http://code.google.com/p/twitter-api/issues/detail?id=162 
) and it's slated to be fixed when we change the URLs for the next  
version of the API. Please visit the issue list and mark it with a  
star to keep track and let us know it's a priority for you.


Thanks;
  — Matt Sanford

On Feb 8, 2009, at 01:07 PM, Blankman wrote:



Hey all:
So, I had been racking my brain as to why my user update code wasn't
working right. Basically, I was getting double entries for screen
names. It took me a while, but I figured out what the issue is.
Basically, the twitter API method: users/show/id.format, looks up the
screen_name field before it looks up the id field. Thus, when one puts
in a request for say "1", it looks up the screen name first. Since
someone has the screen name "1", that is the account that gets
returned. The problem is that we need to look up the id "1". Any one
also realized this and has a fix? I tried to find it in the groups
somewhere but couldn't. Help as always is a great thing and much
appreciated.

Just offering a potential fix or two, make two explicit API calls
available. That way one doesn't break other peoples code and one can
still migrate to the new more explicit version. The other potential
option would be to provide a new param to the call ... something like
force_id or force_screen_name, that when present the API would be
forced to use that id or screen_name respectively to do the lookup.

If you are wondering why it matters? Here is why I care :) When we get
the statuses, we don't get the screen name we get the
in_reply_to_user_id which is an id. Thus, we are missing a piece of
information that we need to do the lookup for that user. If I take the
id and do the look-up the status that is returned is for the screen
name :(

Here is a link to an example of what I mean:
http://pastebin.com/m5d3b7713

Also, sorry if this is a re-asking of the question that people have
already found and answer to cause someone asked it :(