Simple File Storage

フリーミアム
よって saq7 | 更新済み 15 days ago | Storage
人気

0 / 10

レイテンシー

959ms

サービスレベル

100%

Health Check

N/A

README

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