API Documentation Methods Following methods are supported by TwitnGo.com API
Method: api/posttwitter Posts user's status update with photo to Twitter.com URL: http://twitngo.com/api/posttwitter Response Format: XML HTTP Method: POST Requires Authentication Parameters: Yes Parameters: - username: usename for the Twitter account
- password: password for the Twitter account
- photo: jpg or png photo
- status: status update text
Response: XML Example
<?xml version="1.0" encoding="UTF-8"?> <result> <success>Status has been posted</success> <url>http://twitngo.com/t/422</url> </result>Note:
- All parameters are required
- While submitting the request, set the form enctype to multipart/form-data
Method: api/posts Returns the 20 most recent statuses posted for a userURL: http://twitngo.com/api/posts/id/username Response Format: XML/ATOM HTTP Method: GET Requires Authentication Parameters: No Example: http://twitngo.com/api/posts/id/vivekpuriExtrasPhoto Links You dont need make any api call to get links for photos posted as part of a status update. For any status update, it is pretty straightforward to get the photo link.
Example: Status Link: http://twitngo.com/p/432 Photo Links:
- Small Image(100px X 100px): http://d.twitngo.com/photos/432_s
- Medium Image(200px X 200px): http://d.twitngo.com/photos/432_m
- Large Image(500px X 333px): http://d.twitngo.com/photos/432_l
- Full Image: http://d.twitngo.com/photos/432_f
Note- Remember to set your HTTP_USER_AGENT for easier troubleshooting
- Email vp at twitngo dot com to get your application name to show up next to the status updates
|
|