TwitrPix provides a set of API tools to allow developers to integrate TwitrPix into their applications. These APIs may change and new functionality added in the future.
If you have special needs or would like to be notified when our API's are updated, please drop us a note at hi@twitrpix.com.
All requests must post data as multipart/form-data unless sending media as base64 encoded.
- UTF-8 encoded
- Success returns HTTP 200 OK
- Error return HTTP 400 BAD REQUEST
<response>
<media>
<id>5kr</id>
<url>http://twitrpix.com/5kr</url>
<text>http://twitrpix.com/5kr [pic] My photo upload</text>
<thumb>http://img.twitrpix.com/thumb/5kr</thumb>
<full>http://img.twitrpix.com/5kr</full>
</media>
<user>
<id>5</id>
<screen_name>twitrpixsupport</screen_name>
<profile_url>http://twitrpix.com/user/twitrpixsupport</profile_url>
</user>
</response>
{
"response":{
"media":{
"id":"5kr",
"url":"http://twitrpix.com/5kr",
"text":"http://twitrpix.com/5kr [pic] My photo upload",
"thumb":"http://img.twitrpix.com/thumb/5kr",
"full":"http://img.twitrpix.com/5kr"
},
"user":{
"id":"5",
"screen_name":"twitrpixsupport",
"profile_url":"http://twitrpix.com/user/twitrpixsupport"
}
}
}
<?xml version="1.0" encoding="utf-8" ?> <response status="fail"> <error code="1001" msg="Unable to authenticate" /> </response>
{
"response":{
"status":"fail",
"error":{
"code":1001,
"msg":"Unable to authenticate"
}
}
}
999 - Invalid or missing API key 1000 - Unknown error 1001 - Unable to authenticate 1002 - Media not attached 1003 - Media not supported 1004 - Media exceeds maximum size
<response>
<media>
<id>5kr</id>
<url>http://twitrpix.com/5kr</url>
<text>http://twitrpix.com/5kr [pic] My photo upload</text>
<thumb>http://img.twitrpix.com/thumb/5kr</thumb>
<full>http://img.twitrpix.com/5kr</full>
</media>
<user>
<id>5</id>
<screen_name>twitrpixsupport</screen_name>
<profile_url>http://twitrpix.com/user/twitrpixsupport</profile_url>
</user>
</response>
{
"response":{
"media":{
"id":"5kr",
"url":"http://twitrpix.com/5kr",
"text":"http://twitrpix.com/5kr [pic] My photo upload",
"thumb":"http://img.twitrpix.com/thumb/5kr",
"full":"http://img.twitrpix.com/5kr"
},
"user":{
"id":"5",
"screen_name":"twitrpixsupport",
"profile_url":"http://twitrpix.com/user/twitrpixsupport"
}
}
}
<?xml version="1.0" encoding="utf-8" ?> <response status="fail"> <error code="1001" msg="Unable to authenticate" /> </response>
{
"response":{
"status":"fail",
"error":{
"code":1001,
"msg":"Unable to authenticate"
}
}
}
999 - Invalid or missing API key 1000 - Unknown error 1001 - Unable to authenticate 1002 - Media not attached 1003 - Media not supported 1004 - Media exceeds maximum size
<?xml version="1.0" encoding="UTF-8"?> <response status="ok"> <message>pong</message> </response>
<?xml version="1.0" encoding="UTF-8"?> <response status="ok"> <message>maintenance</message> </response>