User Tools

Site Tools


api:iptv:settings:uploadsmalllogo

API : IPTV : Settings : Upload small logo

Introduction

This request is used to upload a small logo for the customer, to be used in the top corner on STBs.

The picture will be stored as a 150×75 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/settings/CUSTOMER_ID/smalllogo
Method POST
Access level MANAGER or OWNER if customer has feature IPTVBUSINESS
RESELLER if customer has IPTVBUSINESS or IPTVPRIVATE
ADMIN
Params CUSTOMER_ID Id of the customer to upload the logo to
Body file Binary image data

Request example

POST https://api.telecomx.dk/iptv/settings/1234567890ABCDEF1234578/smalllogo

Response

Json object
success Boolean True on success.

Example

{
  success: true,
  smallLogo: '123456789012345678901234',
  smallLogoUrl: 'https:/api.telecomx.dk/iptv/settings/12345678901234567890ABCD/smalllogo'
}

Errors

Error code Message Description
404 id Not found
409 customer Customer cannot host common IPTV settings
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/settings/uploadsmalllogo.txt · Last modified: 2020/12/15 17:23 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki