Last active
August 29, 2015 14:07
-
-
Save humandb/e47df0167070d77712f5 to your computer and use it in GitHub Desktop.
Delivery Service - S3 to Youtube API call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"items" : [ | |
{ | |
"source" : { | |
"uri" : "s3://path/to/file.mp4", | |
"metadata" : {} | |
}, | |
"destination" : { | |
"uri" : "youtube://owner/channel-id", | |
"metadata" : { | |
"title" : "Test title", | |
"description": "Test description", | |
"tags": ["tag", "tag2"], | |
"privacyStatus" : "public", | |
"ownership" : { | |
"list": [], | |
"mode": "exclude" | |
}, | |
"matchPolicy": { | |
"contentType" : "audio", | |
"action" : "monetize", | |
"territories": { | |
"list" : [ "ES", "PT"], | |
"mode": "include" | |
} | |
}, | |
"usagePolicy" : { | |
"contentType" : "audiovisual", | |
"action" : "block", | |
"territories" : { | |
"list" : [], | |
"mode": "exclude" | |
} | |
} | |
} | |
} | |
} | |
] | |
} |
I was thinking exactly about the same thing, the change is the API would be minimal, something like,
"matchPolicies": [
{
"contentType" : "audio",
"action" : "monetize",
"territories": {
"list" : [ "ES", "PT"],
"mode": "include"
}
},
{
"contentType" : "audio",
"action" : "block",
"territories": {
"list" : [ "US", "CA"],
"mode": "include"
}
}
],
Cool as long as platform bear in mind this might happen eventually in their DB model, the change for them would be a single argument to an array later - which i guess is fine
Note to self, embeddable.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should we be adding an embeddable true/false into this for next sprint?