History | Log In      
Issue Details (XML | Word | Printable)

Key: TFJ-8
Type: New Feature
Status: Closed
Resolution: Fixed
Priority: Minor
Assignee: Yusuke Yamamoto
Reporter: Yusuke Yamamoto
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Twitter4J

ability to set "source" parameter and request headers

Created: 29/Jun/07 10:45 AM   Updated: 16/Jul/07 02:22 PM
Component/s: Core
Affects Version/s: 1.0, 1.0.1
Fix Version/s: 1.0.2


 Description  « Hide
It is possible to link the Twitter client's site from the "from" field of the Twitter site.
It's done by adding "source" parameter when updating the status.
By default Twitter4J sets "Twitter4J" to the parameter.
It's nice to make it configurable.
- Twitter "from" field
http://groups.google.com/group/twitter-development-talk/msg/10220a29c0e89bdb

Additionally it is suggested to send "X-Twitter-Client", "X-Twitter-Client-Version" and "X-Twitter-Client-URL" as request headers.
Those parameters should be also configurable.
-Twitter Fan Wiki - Unofficial API Docs - Request Headers
http://twitter.pbwiki.com/API-Docs#RequestHeaders
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/fc7c8c14def349f9/f22907cecfee0de1?lnk=gst&q=X-Twitter-Client-URL&rnum=2#f22907cecfee0de1

 All   Comments   Change History   Subversion Commits      Sort Order:
Yusuke Yamamoto - [16/Jul/07 02:22 PM ]
added following methods to Twitter class:
    public void setSource(String source)
    public void setRequestHeader(String name,String value)