API:addClientFile - Add file to client profile

Add file (with data) to client profile. File can be admin only, or accessible by client. Returned is newly created file id

Required parameters

client_id
Client ID to upload this file for
data
Base64 encoded file data
name
How this file should appear in interface
filename
Original filename with extension, ie: quote.pdf

Optional parameters

admin_only
Set this param to 1 if this file should be visible for administrators only

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=addClientFile&client_id=CLIENT_ID&data=DATA&name=NAME&filename=FILENAME

Response

   {
      "success": true,
      "file_id": "4",
      "call": "addClientFile",
      "server_time": 1354718392,
      "info": [
         "New file uploaded"
      ]
   }