User Tools

Site Tools


api:iptv:radiochannel:uploadlogo

API : IPTV : Radio Channel : Upload logo

Introduction

This request is used to upload a logo for the channel. Supported formats are JPG and PNG.

The picture will be stored as a 400×225 pixels PNG, if the uploaded picture does not conform to this size, it will be scaled and cropped to fit the size.

The upload must be performed as a multipart/form-data post request.

Request

URL https://api.telecomx.dk/iptv/radiochannel/CHANNEL_ID/logo
Method POST
Access level MANAGER or OWNER if customer has feature IPTVBUSINESS
RESELLER if customer has IPTVBUSINESS or IPTVPRIVATE
ADMIN
Params CHANNEL_ID Id of the channel to upload the logo to
Body file Binary image data

Request example

POST https://api.telecomx.dk/iptv/radiochannel/1234567890ABCDEF1234578/logo

Response

Json object
success Boolean True on success.

Example

{
  success: true,
  logo: '123456789012345678901234,
  logoUrl: 'https:/api.telecomx.dk/iptv/radiochannel/12345678901234567890ABCD/logo
}

Errors

Error code Message Description
404 id Not found
404 file The file was missing or invalid
422 file Filetype must be PNG or JPG
403 access_denied Insufficient access level
500 internal_error Failed to scale/crop image
500 internal_error <unspecified>
api/iptv/radiochannel/uploadlogo.txt · Last modified: 2017/04/27 05:27 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki