HomePlayerVPNFAQ
Log in
ErrorMobile

Developer

Nanomid Player - Api to send and delete playlist

API REST Nanomid Player


API Usage

You can query the nanomid backend via a REST API. It can be used for various operations such as sending a new playlist or deleting all playlists of a device.

HTTPS is mandatory. Nanomid only responds to encrypted traffic so your data stays safe.

Send a list

Method: POST
Content Type: application / json

Endpoint

https://nanomid.com/api​/Partner​/PlayListFromOtp

POST - Payload Example


POST Example

{
"title": "Sample PlayList"
"url":"http://nanomid.com/playlistpath"
"quickCode": "ABCDEF"
"hiddenInfo": "true" }

POST: ​/api​/Partner​/PlayListFromOtp

Property nameGenreExampleDescription
titleString"Sample PlayList"The title of the list to be uploaded
urlString"http://nanomid.com/playlistpath"The URL of the list to be uploaded
quickCodeString"ABCDEF"The OTP code to be inserted to send the list
hiddenInfobooleantrueIf the variable is set to true it hides the list information

Delete all playlists


DELETE: ​/api/Partner/PlayListFromOtp/:quickCode
Property nameGenreExampleDescription
quickCodeString"ABCDEF"OTP code for deleting all playlists
Status di risposta
Property nameGenreDescription
200StatusCodeCall went successful
400StatusCodeInput error
404StatusCodeInvalid OTP code. Player not found
500StatusCodeServer error (Very rare)
Request example

curl -X POST "https://nanomid.com/api/Partner/PlayListFromOtp" -H "accept: */*" -H "Content-Type: application/json" -d "{\"title\":\"string\",\"url\":\"string\",\"quickCode\":\"string\",\"hiddenInfo\":true}

Nanomid VPN Pass acts as a reverse proxy to your server. The service provider needs to set up their webserver to get the actual IP of the client and not that of our proxy.

Here is an example for nginx webserver.

Nginx

Insert the following directives into the nginx.conf file


http {
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
real_ip_recursive on;
}

This way your webserver or proxy will receive the actual client IP and not that of our servers.


If the service user has a firewall, they can obtain the IP addresses of all our servers from the following endpoint

https://nanomid.com/api/ipv4