TN y la gente

 

Upload media to S3 bucket using AWS API

You need to use a special user credentials in order to use this method. (Ask for the key and the secret)

https://docs.aws.amazon.com/AmazonS3/latest/API/bucket-policy-s3-sigv4-conditions.html

Get Content

This method fetch all content in tn y la gente bucket
Method: GET
URL: /api/v3/tn
Required Params:

access_token (string required)

Response example:
[
    "0a4OJMdmta1535642519027_video_.mp4",
    "1-1-1-17TRNR1498769757_1080P.mp4",
    "1-2-34343djaa.mp4",
    "10AzpcJLdl1535723389132_video_.mp4",
    "1536775005482-.-.-video.mp4",
    "1536776922177-.-.-video.mp4",
    "1536777010941-.-.-video.mp4"
]

 

Send to Genoa content

This method send to transcode content and process to genoa.
Method: POST
URL: /api/v3/tn
Required Params: (JSON)

access_token (string required)
cid (int required)
items ([] string required, name of file)
external_id (string optional, id of your platform)

Example request body: 
{
	"cid": 1312,
	"access_token": "0c0d8ec32efec8ccd707a8ebc40f9b0f8e76381bda872daf4297681dbb14389120181002561155",
    "external_id": "123@abc"
	"item": "0a4OJMdmta1535642519027_video_.mp4"
}
Response example:
{
  "name": "0a4OJMdmta1535642519027_video_.mp4",
  "info": "Sent it to Genoa successfully"
}
Error Response example:
{
  "name": "0a4OJMdmta1535642519027_video_.mp4",
  "info": "Unable to copy item from bucket"
}

 

No Comments

Back to top