TN y la gente v3

Methods for tn y la gente

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"
}

 

TN y la gente - Workflow

Step 1 - Upload content to AWS S3 Bucket

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

Important: Ask for credentials and source bucket.

 Step 2 - List content from S3 Bucket 

Genoa API endpoint: https://doc.vodgc.net/books/tn-y-la-gente-v3/page/tn-y-la-gente#bkmrk-change-youtube-conte

Important: Ask for credentials and source bucket.

Step 3 - Select content and process in Genoa

Genoa API endpoint: https://doc.vodgc.net/books/tn-y-la-gente-v3/page/tn-y-la-gente#bkmrk-send-to-genoa-conten

Step 4 - UNE (Upload Notification Endpoint)

This is a webhook  to be notified when the content was processed correctly.

https://doc.vodgc.net/books/api/page/api-v1#bkmrk-une-%28upload-notifica

Step 5 - List TN y La Gente Category

Genoa API endpoint: https://doc.vodgc.net/books/genoa-api-v3/page/categories#bkmrk-get-content-in-a-cat