Print and Video Logo Endpoints

GET Video Logo

Returns Partners Video Logo file.

Endpoint /v2.0/Partners(PartnerID)/videologo
Method GET
Request Body Sample N/A

Response Body Sample: Video Logo Exists

File Content

Response Body Sample: Video Logo Does Not Exist

{
    "@odata.context": "https://apistg.aprimodm.com/v2.0/$metadata#Edm.String",
    "value": "This partner does not have a video logo set."
}

GET Print Logo

Returns Partners Print Logo file.

Endpoint /v2.0/Partners(PartnerID)/printlogo
Method GET
Request Body Sample N/A

Response Body Sample: Print Logo Exists

File Content

Response Body Sample: Video Logo Does Not Exist

{
    "@odata.context": "https://apistg.aprimodm.com/v2.0/$metadata#Edm.String",
    "value": "This partner does not have a Print logo set."
}

GET Digital Logo

Returns Partners Digital Logofile.

Endpoint /v2.0/Partners(PartnerID)/digitallogo
Method GET
Request Body Sample N/A

Response Body Sample: Print Logo Exists

File Content

Response Body Sample: Video Logo Does Not Exist

{
    "@odata.context": "https://apistg.aprimodm.com/v2.0/$metadata#Edm.String",
    "value": "This partner does not have a Digital logo set."
}

POST Digital Logo

Adds a Partners Digital Logo. You may only add logos for partners who do not already have one set.

Endpoint /v2.0/Partners(PartnerUserID)/digitallogo
Method POST
Request Body You must pass 2 x-www-form-urlencoded parameters:

Base64FileData: Contains the base64 representation of the logo file.

Name: Contains the filename.

Request Body Sample:

Name=aprimologo.png&Base64FileData=iVBORw0KGgoAAAANSUhEUgAABDgAAAH/CAMAAACFG50WAAADAFBMVEVHcExmZmZnZ2ZnZ2Z3vB9mZmZ(shortened for brevity - not a valid image)

Response Body Sample: Digital Logo Uploaded Successfully

{
    "@odata.context": "http://localhost:59093/v2.0/$metadata#Edm.String",
    "value": "File : /images/digitallogo1/c4a23106-26ee-4cdf-917a-b37aa8d5d3ed.png  has successfully uploaded.
}

Response Body Sample Forbidden (403): Invalid File Type

{
    "@odata.context": "https://apistg.aprimodm.com/v2.0/$metadata#Edm.String",
    "value": "We only allowed listed extensions .png, .jpeg, .jpg, .gif, .ico, .bmp."
}

POST Video Logo

Adds a Partners Digital Logo. You may only add logos for partners who do not already have one set.

 

Endpoint /v2.0/Partners(PartnerID)/videologo
Method POST
Request Body You must pass 2 x-www-form-urlencoded parameters:

Base64FileData: Contains the base64 representation of the logo file.

Name: Contains the filename.

Request Body Sample:

Name=aprimologo.wmv&Base64FileData=iVBORw0KGgoAAAANSUhEUgAABDgAAAH/CAMAAACFG50WAAADAFBMVEVHcExmZmZnZ2ZnZ2Z3vB9mZmZ(shortened for brevity - not a valid image)

Response Body Sample: Video Logo Uploaded Successfully

{
    "@odata.context": "http://localhost:59093/v2.0/$metadata#Edm.String",
    "value": "File : /images/VideoLogos1/c4a23106-26ee-4cdf-917a-b37aa8d5d3ed.png  has successfully uploaded. "
}

Response Body Sample Forbidden (403): Invalid File Type

{
    "@odata.context": "https://apistg.aprimodm.com/v2.0/$metadata#Edm.String",
    "value": "We only allowed listed extensions .png."
}

Response Body Sample Forbidden (403): Invalid File Size

{
    "@odata.context": "https://apistg.aprimodm.com/v2.0/$metadata#Edm.String",
    "value": "Please upload file between minimum 1200 and maximum 1360 width. uploaded file Width is 1500 "
}

POST Print Logo

Adds a Partners Digital Logo. You may only add logos for partners who do not already have one set.

Endpoint /v2.0/Partners(PartnerID)/printlogo
Method POST
Request Body You must pass 2 x-www-form-urlencoded parameters:

Base64FileData: Contains the base64 representation of the logo file.

Name: Contains the filename.

Request Body Sample:

Name=aprimologo.png&Base64FileData=iVBORw0KGgoAAAANSUhEUgAABDgAAAH/CAMAAACFG50WAAADAFBMVEVHcExmZmZnZ2ZnZ2Z3vB9mZmZ(shortened for brevity - not a valid image)

Response Body Sample: Print Logo Uploaded Successfully

{
    "@odata.context": "http://localhost:59093/v2.0/$metadata#Edm.String",
    "value": "File : /images/Printlogo1/c4a23106-26ee-4cdf-917a-b37aa8d5d3ed.png  has successfully uploaded."
}

Response Body Sample Forbidden (403): Invalid File Type

{
    "@odata.context": "https://apistg.aprimodm.com/v2.0/$metadata#Edm.String",
    "value": "We only allowed listed extensions .jpeg, .jpg, .gif, .ico, .bmp, .eps."
}