- How do I get Twitter to display something other than "from Perl Net::Twitter"?
-
If you set the source paramter to
api, twitter will display "from API", and if you set it to the empty string, twitter will display, "from web".$nt = Net::Twitter->new(netrc=>1,legacy=>0,ssl=>1,source=>'api'); $nt->update('A post with the source parameter overridden.'); # result: http://twitter.com/semifor_test/status/6541105458 $nt = Net::Twitter->new(netrc=>1,legacy=>0,ssl=>1,source=>''); $nt->update('A post with the source parameter overridden.'); # result: http://twitter.com/semifor_test/status/6541257224If you want something other than "Net::Twitter", "API", or "web", you need to register an application and use OAuth authentication. If you do that, you can have any name you choose for the application printed as the source. Since rolling out OAuth, Twitter has stopped issuing new registered source parameters, only existing register source parameters are valid.
Created
February 14, 2010 19:24
-
-
Save semifor/304203 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment