Snap Share API - V1.0 Manual ---------------------------- Endpoint: https://tomandtim.com/snap_share/api/vi/ Rate Limits: Please see the 'X-RateLimit-RemainingRequests' Header for how many requests you have left. /upload.php Expects a HTML form with "fileUpload" as a file element or "textUpload" as a text element. On 200 Success returns the ID of the Uploaded Data. Plase make sure the fileUpload contains the content type mime within the form boundry. Possible Errors: *400 * - No File Attached * - There was an error uploading the file * *500 * - There was an error uploading the file * - Unknown Backend Error * *413 * - File is too Large Max size is 5242880 bytes (5M) * *429 * - Too Many Requests, You have exceeded your allowance. * *507 * - At Capacity. No more memory avaliable to upload file. (Try again later) /download.php?id=xxxxxxxxx On 200 Success Downloads a file from the File Store, takes a id parameter of the 9 digit file code. Possible Errors: *400 * - No id parameter was givven * *404 * - File was not found or has expired. * *500 * - There was an error downloading the file * - Unknown Backend Error /head.php?id=xxxxxxxxx On 200 Success returns meta data about the file but not the file data, takes a id parameter of the 9 digit file code. Possible Errors: *400 * - No id parameter was givven * *404 * - File was not found or has expired. * *500 * - Unknown Backend Error /preview.php?id=xxxxxxxxx On 200 Success returns a preview of the requested id. Will only display images or text. Possible Errors: *400 * - No id parameter was givven * *404 * - File was not found or has expired. * *500 * - Unknown Backend Error /stats.php Displays Stastics about the service such as total uploads and downloads.