Skip to main content

Get All Media

For getting all media you need to use the getMediaList and provide the page and limit for the pagination.

Get All Media Example

Check the example:

import { getMediaList } from 'react-native-altibbi';

getMediaList(1, 20).then((res) => {
console.log(res);
});

Responses

Status 200

Success

[
{
"id": "1234123",
"type": "image",
"name": "Test file",
"path": "doc/2024/02/05/60037901f47939872a6e1bdb9a65f604.png",
"extention": "png",
"size": "362875",
"url": "https://altibbi.com/Media/12123/2331.png"
}
]

Status 401

UnauthorizedHttpException represents an Unauthorized HTTP exception with status code 401.

{
"name": "Unauthorized",
"message": "Your request was made with invalid credentials",
"code": "0",
"status": "401",
"type": "yii\\\\web\\\\UnauthorizedHttpException"
}