ZUJONOW
Book a demo
Book a demo
    Realtime communication
  • →   Tutorial

APIs

  2. Upload file
  3. List all files
  4. Show file details
  5. Delete file

1. Create new url

curl --L --X POST 'https://api.zujonow.com/v1/files' \
--header 'Authorization: `jwt token goes here`'

Response

{
"url": "https://storage-api.zujonow.com/v1/files"
}

2. Upload file

curl --L --X POST 'https://storage-api.zujonow.com/v1/files' \
--header 'Authorization: `jwt token goes here`' \
--form 'file=mock-video.mp4"'

Response

{
"meta": {
"resolution": {
"width": 720,
"height": 1280
},
"format": "mov,mp4,m4a,3gp,3g2,mj2",
"duration": 20.032
},
"jobId": null,
"filePath": "files/videos/6052e0064b442a2f16018373.mp4",
"size": 3965342,
"type": "video",
"createdAt": "2021-03-18T05:07:18.771Z",
"updatedAt": "2021-03-18T05:07:18.771Z",
"fileUrl": "https://cdn.zujonow.com/files/videos/6052e0064b442a2f16018373.mp4",
"id": "6052e0064b442a2f16018374"
}

3. List all files

Query parameters

  • page: Current page you are on
  • perPage: Number of record you want on per page.
curl --L --X GET 'https://api.zujonow.com/v1/files' \
--header 'Authorization: `jwt token goes here`'

Response

{
"pageInfo": {
"currentPage": 1,
"perPage": 20,
"lastPage": 52
},
"data": [
{
"meta": {
"resolution": {
"width": 720,
"height": 1280
},
"format": "mov,mp4,m4a,3gp,3g2,mj2",
"duration": 20.032
},
"jobId": null,
"filePath": "files/videos/6052e0064b442a2f16018373.mp4",
"size": 3965342,
"type": "video",
"createdAt": "2021-03-18T05:07:18.771Z",
"updatedAt": "2021-03-18T05:07:18.771Z",
"fileUrl": "https://cdn.zujonow.com/files/videos/6052e0064b442a2f16018373.mp4",
"id": "6052e0064b442a2f16018374"
},
...
]
}

3. Show file details

Path parameters

  • id : The unique identifier for the file (id from file object).
curl --L --X GET 'https://api.zujonow.com/v1/files/6052e0064b442a2f16018374' \
--header 'Authorization: `jwt token goes here`'

Response

{
"meta": {
"resolution": {
"width": 720,
"height": 1280
},
"format": "mov,mp4,m4a,3gp,3g2,mj2",
"duration": 20.032
},
"jobId": null,
"filePath": "files/videos/6052e0064b442a2f16018373.mp4",
"size": 3965342,
"type": "video",
"createdAt": "2021-03-18T05:07:18.771Z",
"updatedAt": "2021-03-18T05:07:18.771Z",
"fileUrl": "https://cdn.zujonow.com/files/videos/6052e0064b442a2f16018373.mp4",
"id": "6052e0064b442a2f16018374"
}

5. Delete file

Path parameters

  • id : The unique identifier for the file (id from file object).
curl --L --X DELETE 'https://api.zujonow.com/v1/files/6040761e4fcb7e3b28cfdb11' \
--header 'Authorization: `jwt token goes here`'

Response

{
"meta": {
"resolution": {
"width": 720,
"height": 1280
},
"format": "mov,mp4,m4a,3gp,3g2,mj2",
"duration": 20.032
},
"jobId": null,
"filePath": "files/videos/6052ea0f2dbbd93351b7bdf5.mp4",
"size": 3965342,
"type": "video",
"createdAt": "2021-03-18T05:50:11.677Z",
"updatedAt": "2021-03-18T05:50:11.677Z",
"fileUrl": "https://cdn.zujonow.com/files/videos/6052ea0f2dbbd93351b7bdf5.mp4",
"id": "6052ea132dbbd93351b7bdf6"
}

ZUJONOW

Make your app engaging.

+918401688331

API/SDKRealtime communicationLive streamingOn Demand VideoContent delivery

Copyright © 2021 ZUJONOW