Simple File Storage

फ्रीमियम
द्वारा saq7 | अपडेट किया गया 15 days ago | Storage
लोकप्रियता

0 / 10

लेटेंसी

959ms

सेवा का स्तर

100%

Health Check

N/A

रीडमी

Simple File Storage API

SimpleAPIs is a file storage service that will allow you to store and retrieve any file.

  1. You upload a file
    
  2. We return a token
    
  3. You use that token to retrieve or delete the file
    

Easy Peasy.

Upload a file

Use this endpoint to upload a file.
The file needs to be uploaded using a multipart request.
This endpoint responds with 201 Created once your file has been successfully uploaded.

fetch('https://simple-file-storage.p.rapidapi.com/files', {
  method: 'POST',
  body: file,
  headers: {
    'Content-Type' : 'multipart/form-data',
    'Authorization' : `Bearer ${API_KEY}`
  }
})

Retrieve a file

Retrieves a single File referenced by its unique ID.


fetch(`https://simple-file-storage.p.rapidapi.com/files/${file_id}`, {
  method: 'GET',
  headers: {
    'Authorization' : `Bearer ${API_KEY}`
  }
})

Delete a file

Deletes a single File referenced by its unique ID.


fetch(`https://simple-file-storage.p.rapidapi.com/files/${file_id}`, {
  method: 'DELETE',
  headers: {
    'Authorization' : `Bearer ${API_KEY}`
  }
})
फॉलोवर: 1
API निर्माता:
S
saq7
saq7
API को रेट करने के लिए लॉग इन करें
रेटिंग: 5 - वोट: 1