Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter REST change "from API" to something meaningful

Tags:

rest

twitter

When using simple request to post to Twitter the messages are signed with "sent from API". Is there a way to change that to the actual name of your application? Is it another post parameter or something else?

like image 730
Bostone Avatar asked Jul 10 '09 22:07

Bostone


2 Answers

This is covered in the Twitter API FAQ

If you would like tweets from your application to recieve a source parameter, please register an application and implement OAuth authentication. We will automatically include your application as the source for any tweets sent from your application.

like image 84
John Sheehan Avatar answered Nov 08 '22 04:11

John Sheehan


If you are writing a desktop Twitter client and you want your application's name to show up instead of "From API", you have to use OAUth.

If you want to use OAuth in your desktop Twitter application, you have to go through Twitter's PIN workflow (i.e., sending the user to the Twitter website to authenticate).

The confirmation step is part of the reason Twitter is using OAuth. There's no getting around it.

There are several libraries out there that implement OAuth for Twitter so you're not reinventing the wheel.

like image 35
DWRoelands Avatar answered Nov 08 '22 04:11

DWRoelands