Api-documents-title

Description

Uploads files to FileSocial and publishes them on Twitter

Url

http://filesocial.com/api/uploadAndPost

HTTP Method(s):

POST

Parameters:

  • - username (required)
  • - password (required)
  • - message (optional)
  • - file (required)

Response example

<rsp status="ok">
  <mediaid>gim7o2</mediaid>
  <mediaurl>http://filesocial.com/gim7o2</mediaurl>
</rsp>

Curl example

curl -F "file=@test1M.bin"
-F "username=username"
-F "password=password"
-F "message=testing... 1M via curl"
-H "Expect:"
http://filesocial.com/api/upload