Get your API keys
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API key from your Dashboard Profile at any time.
Tips : Always use the x-www-form-urlencode header when making POST, PUT, PATCH or DELETE requests to our API.
Good to know: We authenticate your request via Neodrive-Api header, see example below.
Make your first request
To make your first request, send an authenticated request to the file endpoint. This will get you list of your files.
List Files
GET
https://neodrive.my.id/api/v1/files
List of your uploaded files.
Searching File URL example : https://neodrive.my.id/api/v1/files?q=MySearch
Goto pagination URL example : https://neodrive.my.id/api/v1/files?page=1
Query Parameters
Name | Type | Description |
---|
| | |
| | Go To specific pagination (Optional) |
Name | Type | Description |
---|
| | <Your API KEY> (Required) |
{
"status": 200,
"items": [
{
"id": "d21ae110-8d4d-408d-a8f3-51bc7ee3d61a",
"name": "HTTP Injector.apk",
"url": "http://neodrive.my.id/f/d21ae110-8d4d-408d-a8f3-51bc7ee3d61a",
"driveid": "1ECxanAXnaZ0SwuGSUd2xd7vRYtz7Grf5",
"format": "apk",
"size": "50168768",
"md5": "fedabe11d8560364962d8dfd69b1cd8b",
"multiup": null,
"views": "0",
"downloads": "0"
}
],
"currentPage": 1,
"totalPage": 1
}
{
"status": 401,
"messages": {
"error": "Unauthorized"
}
}
Take a look at how you might call this method viacurl
:
curl --location --request GET 'https://neodrive.my.id/api/v1/files' \
--header 'neodrive-api: 625092296266470295046fd6bd9c44a5'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://neodrive.my.id/api/v1/files',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'neodrive-api: 625092296266470295046fd6bd9c44a5'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'get',
url: 'https://neodrive.my.id/api/v1/files',
headers: {
'neodrive-api': '625092296266470295046fd6bd9c44a5'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});