Share photos on Facebook, Twitter
Click here to login or sign up.   
 
 
API Documentation

Method: uploadAndPost
http://frin.ly/api/uploadAndPost

Use this method to upload an image to Frinly and send a status update to Twitter with the media link.

Post data must be formatted as multipart/form-data:
Media (required): Binary image data
Username (required): Twitter username
Password (required): Twitter password
Message (optional): Status update to post to Twitter. The URL of the image is automatically added.

Example Response:
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok">
  <statusid>1111</statusid >
  <userid>11111</userid >
  <mediaid>demo123</mediaid>
  <mediaurl>http://frin.ly/demo123</mediaurl>
</rsp>

Method: upload
http://frin.ly/api/upload

Use this method to upload an image to Frinly. No status update is made on Twitter.

Post data must be formatted as multipart/form-data:
Media (required): Binary image data
Username (required): Twitter username
Password (required): Twitter password

Example Response:
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok">
  <mediaid>demo123</mediaid>
  <mediaurl>http://frin.ly/demo123</mediaurl>
</rsp>

Error Codes
Example Response:
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="fail">
  <err code="1001" msg="Invalid twitter username or password" />
</rsp>
Error Codes:
1001: Invalid twitter username or password
1002: Image not found
1003: Invalid image type
1004: Image larger than 4MB

Image thumbnails:
Use this method to show Frinly images within your app.

Format: http://frin.ly/show[thumb|large]/<image-id>

Example URL: http://frin.ly/show/thumb/jo-fvnlc
If you use those thumbnails, please link them to the corresponding image URL

Example Backlink:
<a href="http://frin.ly/jo-fvnlc">
  <img src="http://frin.ly/show/thumb/jo-fvnlc">
</a>