http://api.twipl.net/2/upload.format
xml, json
POST
X-OAUTH-AUTHORIZATION (Required)
Fields to post in
(post data should be formatted as multipart/form-data)
| Parameter | Description |
| key | Your Twipl API Key (required) |
| message | Message (optional) Message to post to twitter |
| media1~20 | The file to upload(required) , Binary image data |
| ip | IP Address (optional) |
| source | Uploader’s name (optional), service, applications or person's name |
| lat | Latitude(optional), Location Tag (You must enter your latitude and longitude.) |
| long | Longitude(optional), Location Tag (You must enter your latitude and longitude.) |
When an upload is successful, following xml is returned.
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<mediaid>abc123456</mediaid>
<mediaurl>http://twipl.net/abc123456</mediaurl>
</response>
http://api.twipl.net/1/uploadAndPost.format
xml, json
POST
Fields to post in
(post data should be formatted as multipart/form-data)
| Parameter | Description |
| key | Your Twipl API Key (required) |
| oauth_token | The Twitter OAuth token for the user (required) |
| oauth_secret | The Twitter OAuth secret for the user (required) |
| message | Message (optional or required) Message posting to twitter (If no media attached, message parameter to be required) |
| media1~20 | The file to upload(required) , Binary image data |
| ip | IP Address (optional) |
| source | Uploader’s name (optional), service, applications or person's name |
| lat | Latitude(optional), Location Tag (You must enter your latitude and longitude.) |
| long | Longitude(optional), Location Tag (You must enter your latitude and longitude.) |
When an uppload and posting is successful, following xml is returned.
(file attached, posting to twipl and twitter)
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<statusid>12345678</statusid>
<userid>12345678</userid>
<mediaid>abc123</mediaid>
<mediaurl>http://twipl.net/abc123</mediaurl>
</response>
‘mediaid’ is posting ID
When an posting is successful, the following xml is returned:
(message only. No files attached, Posting to twitter)
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<statusid>12345678</statusid>
<userid>12345678</userid>
</response>
http://api.twipl.net/1/upload.format
xml, json
POST
Fields to post in
(post data should be formatted as multipart/form-data)
| Parameter | Description |
| key | Your Twipl API Key (required) |
| oauth_token | The Twitter OAuth token for the user (required) |
| oauth_secret | The Twitter OAuth secret for the user (required) |
| message | Message (optional) Message to post to twitter |
| media1~20 | The file to upload(required) , Binary image data |
| ip | IP Address (optional) |
| source | Uploader’s name (optional), service, applications or person's name |
| lat | Latitude(optional), Location Tag (You must enter your latitude and longitude.) |
| long | Longitude(optional), Location Tag (You must enter your latitude and longitude.) |
When an upload is successful, following xml is returned.
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<mediaid>abc123456</mediaid>
<mediaurl>http://twipl.net/abc123456</mediaurl>
</response>
<size> : : mini, thumb, view, large (select size)
<image-id> : this is the ID of the Twipl photo
api.twipl.net/show/mini/aa(You can get 68x68px thumbnail image.)
api.twipl.net/show/thumb/aa(You can get 128x128px thumbnail image.)
api.twipl.net/show/view/aa(You can get maximum 500px widths image.)
api.twipl.net/show/large/aa(You can get maximum 1280px widths image.)
* Note : if you use a Twipl thumbnail, the photo must link back to its original photo page or a link
to the original photo page must be provided somewhere within context to the thumbnail
| Error Code | Description |
| 400 | Bad Request if one of the required parameters is missing. |
| 401 | Authentication credentials were missing or incorrect. |
| 502 | Twitter is down or being upgraded. |
| 1002 | Image not found No photo specified. The media required parameter was missing. |
| 1003 | Message not found |
| 1004 | Invalid image type (jpg, gif, png formats are upload able.) |
| 1005 | User exceeded upload limit. Image larger than 5MB |
| 1006 | User exceeded upload limit. Image more than 20 files. |
| 1007 | General upload failure |
| 1008 | IP address notation is frustrating.(ex. 255.255.255.255) |
| 1009 | Location Tag error Latitude and longitude notation is frustrating. The latitude whose valid range is -90 to 90. The longitude whose valid range is -180 to 180 |
| 1012 | Invalid Twipl API Key |
| 1013 | Missing Consumer Key or Consumer Secret |
When an uppload and posting is fail, following xml is returned.
<?xml version="1.0" encoding="UTF-8"?>
<response status="fail">
<code>401</code>
<description><![CDATA[ Authentication credentials were missing or incorrect ]]></description>
</response>