Endpoints
The viewneo API provides RESTful endpoints for managing media files, playlists, devices, and other resources.
Interactive API Documentation
Section titled “Interactive API Documentation”The complete endpoint reference is available through the interactive Swagger UI:
https://cloud.viewneo.com/doc/apiSwagger UI allows you to:
- Browse all available endpoints with their HTTP methods
- View request parameters and response schemas
- Test endpoints directly in your browser
- See example request and response payloads
Base URL
Section titled “Base URL”All endpoints use the following base URL:
https://cloud.viewneo.com/api/v1.0/Common Endpoints
Section titled “Common Endpoints”| Method | Endpoint | Description |
|---|---|---|
| GET | /playlist | List all playlists |
| POST | /playlist | Create a new playlist |
| GET | /playlist/{id} | Get a specific playlist |
| PUT | /playlist/{id} | Update a playlist |
| DELETE | /playlist/{id} | Delete a playlist |
| GET | /mediafile | List all media files |
| POST | /mediafile | Create/upload a media file |
| GET | /device | List all devices |
| GET | /devicegroup | List all device groups |
Sending Data
Section titled “Sending Data”The API expects data in JSON format. Include the following headers:
Content-Type: application/jsonAuthorization: Bearer YOUR_ACCESS_TOKENExample: Create a Playlist
Section titled “Example: Create a Playlist”curl -X POST \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ -d '{"name": "My Playlist", "comment": "Created via API"}' \ 'https://cloud.viewneo.com/api/v1.0/playlist'Response:
{ "name": "My Playlist", "comment": "Created via API", "company_id": 221, "updated_at": "2017-01-24 16:37:20", "created_at": "2017-01-24 16:37:20", "id": 16047}