Tools & APIs (v1)
Here is tools and APIs for box.lolis.love
If you want ask me about APIs or Tools don't be shy to email me: contact@lolis.love

Tools
ShareX import code (Test on 13.5.0): Click me or http://lolis.love/assets/shareXv1.txt

APIs
Upload a file:
To upload a file using:
POST https://lolis.love/v1/box/upload


Request fromdata:
Name Type Description
uploadType number 0 = file upload
1 = url upload
file file/string file or url to upload

Response:
Property Type Description
success boolean is upload success
message string upload result message
id string full upload file id (if success = true)

info object:
Property Type value
boxID number file box id
rawID string raw file id

Using raw method:
POST https://lolis.love/v1/box/upload/raw

Just add file as binary to body with Content-Type and Content-Length headers.
You will get response same as upload.

Limitation:
  • File with extenstion: .exe .msi .cpl .scr is not allowed!
  • Maximum upload size: 1GB (supporter up to 2GB)

View/Download a file:

To view/download using:
GET https://box.lolis.love/:id

If file not found or deleted it will return
Property Type value
success boolean false
message string file id :id not found / file id :id deleted


To request file meta using:
GET https://box.lolis.love/:id/meta

It's have response 2 object and 1 property.

Response:
Property Type value
success boolean is request success
fileMeta object this object meta is pull from header when upload and auto detected by server

fileMeta object:
Property Type value
id string file id
fullID string full file id
boxID number file box id
timeStamp number (long) upload timestamp
originFilename string orginal file name before upload
cleanFilename string clean file name after upload
uploadType number 0 = file upload
1 = url upload
2 = raw upload
contentType string upload content type
encoding string encoding type
md5 string file unique md5
size number file size (bytes)
view number file view counter