Fileio

FREE
By stefan.skliarov
Updated 5 months ago
Storage
4.1/10
Popularity Score
331ms
Latency
100%
Success Rate

Fileio API Documentation

Ephemeral file sharing.

View API Details
POSTuploadFile
POSTuploadFile

Upload the file

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
fileFILE
REQUIREDFile to upload
Optional Parameters
expiresSTRING
OPTIONALThe query param expires must be a positive integer which, by default, represents the number of days until the file will be deleted (defaults to 14 days). If you follow it with w, it will be the number of weeks. m for months and y for years.
Code Snippet
unirest.post("https://Fileiostefan-skliarovV1.p.rapidapi.com/uploadFile")
.header("X-RapidAPI-Host", "Fileiostefan-skliarovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://Fileiostefan-skliarovV1.p.rapidapi.com/uploadFile
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://Fileiostefan-skliarovV1.p.rapidapi.com/uploadFile")
.header("X-RapidAPI-Host", "Fileiostefan-skliarovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication