[Brasil-PM] RES: twittar usando Perl

Márcio V. Matos cromo.jml em gmail.com
Quarta Setembro 8 07:02:14 PDT 2010


Opa,

Semana passada o Twitter enviou um e-mail para os usuários da API
informando da mudança:

Starting August 31, all applications will be required to use “OAuth”
to access your Twitter account.

What's OAuth?

OAuth is a technology that enables applications to access Twitter on
your behalf with your approval without asking you directly for your
password.
Desktop and mobile applications may still ask for your password once,
but after that request, they are required to use OAuth in order to
access your timeline or allow you to tweet.
What does this mean for me?

Applications are no longer allowed to store your password.
If you change your password, the applications will continue to work.
Some applications you have been using may require you to reauthorize
them or may stop functioning at the time of this change.
All applications you have authorized will be listed at
http://twitter.com/settings/connections.
You can revoke access to any application at any time from the list.


Basicamente é usar o Net::OAuth do CPAN para fazer a autenticação, é
necessário também que você tenha a sua API cadastrada no Twitter pois
necessitará do Secret Token para autenticar.

Fuçando no Wiki da API tem alguns exemplos de como fazer:

http://apiwiki.twitter.com/OAuth-Examples

Nesse artigo mostra como fazer isso em Perl, tem vários exemplos, só
não pude testar ainda:

http://staynalive.com/articles/social-coding-how-to-code-twitters-oauth-using-netoauth-and-perl/

[]s

2010/9/8 Cícero Liz <cicero em leismunicipais.com.br>
>
> Você possui algum exemplo?
>
>


Mais detalhes sobre a lista de discussão Brasil-PM