API can only be reached by HTTPS. Trying to connect by HTTP will result in a 404 response.
HTTP response status codes are always included in HTTP header in accordance with the HTTP/1.1 standard.
Response from API is always a JSON object with folloing structure:
{ "status": "", "message": "", "errorMessage": "" }
"status" - HTTP/1.1 status code
"message" - If request is successful, data from endpoint
"errorMessage" - Error message from API or Taliad application.
Description:
Get file contents by file ID. Returns JSON object with web file data
Endpoint URI:
file/getWebFile.php
HTTP request method:
GET
Parameters:
fileId - File ID
Retured JSON message object:
fileName - Name of file
type - Type of file. Example: 'application/pdf', 'image/png', 'image/jpeg' etc..
size - File size in bytes
data - File contents base64 encoded
{ "status": "200",
"message": { "fileName":"photo.jpg",
"type":"image/jpeg",
"size":15467,
"data":"iVBORw0KGgoAA" },
"errorMessage": "" }
{ "status": "401",
"message": "",
"errorMessage": "Invalid api key" }
{ "status": "200",
"message": "",
"errorMessage": "No file exists for parameter 'fileId' value" }
{ "status": "403",
"message": "",
"errorMessage": "Access denied" }
Description:
Get city name by country code and zip code. Returned city name is capitalised.
End point URI:
location/getCity.php
HTTP request method:
GET
Parameters:
countryCode - ITU-T numeric country code
zipCode - Zip code without any spaces
Retured JSON message object:
Capitalised city name
{ "status": "200",
"message": "Nacka",
"errorMessage": "" }
{ "status": "401",
"message": "",
"errorMessage": "Invalid api key" }
{ "status": "200",
"message": "",
"errorMessage": "No zip codes for parameter 'countryCode' value" }
{ "status": "403",
"message": "",
"errorMessage": "Access denied" }