StationOrStationGroup/id/CreateFootageCategory
From Oxygen.next Wiki
Creates a Footage Category
URL: https://api.oxygennext.com/Station/{stationId}/CreateFootageCategory
Formats: xml, json
HTTP Method(s): POST
API rate limited (about Rate Limiting): true
Response (about HTTP Response Codes and Errors):
XML example (truncated):
<FootageCategory> <Created readonly="true">11/10/2009 7:14:04 PM</Created> <LastChange readonly="true">11/10/2009 7:14:04 PM</LastChange> <PlayoutOrder>Shuffle</PlayoutOrder> <PlayoutCount>1</PlayoutCount> <EnableDate>1/1/1753 12:00:00 AM</EnableDate> <DisableDate>12/31/9999 11:59:59 PM</DisableDate> <EnableTime>1/1/1753 12:00:00 AM</EnableTime> <DisableTime>12/31/9999 11:59:59 PM</DisableTime> <TimeOut>0</TimeOut> <Modus>Normal</Modus> <ContinuousPlayout>False</ContinuousPlayout> <FootageCategoryLink readonly="true">https://api.oxygennext.com/FootageCategory/14bf50af-46a8-47a8-83e1-25844d6b1b31</FootageCategoryLink> <Name>test</Name> <ActiveDays>https://api.oxygennext.com/FootageCategory/14bf50af-46a8-47a8-83e1-25844d6b1b31/ActiveDays</ActiveDays> <Channels>https://api.oxygennext.com/FootageCategory/14bf50af-46a8-47a8-83e1-25844d6b1b31/Channels</Channels> <Copy>https://api.oxygennext.com/FootageCategory/14bf50af-46a8-47a8-83e1-25844d6b1b31/CopyTo/{targetGuid}</Copy> <Footages>https://api.oxygennext.com/FootageCategory/14bf50af-46a8-47a8-83e1-25844d6b1b31/Footages</Footages> <Delete>https://api.oxygennext.com/FootageCategory/14bf50af-46a8-47a8-83e1-25844d6b1b31/Delete</Delete> <Move>https://api.oxygennext.com/FootageCategory/14bf50af-46a8-47a8-83e1-25844d6b1b31/MoveTo/{targetGuid}</Move> </FootageCategory>
Usage examples:
cURL (about cURL):
curl -F https://api.oxygennext.com/Station/e4fe7043-3071-4a4d-978c-5d5058b17674/CreateFootageCategory
Do you have an example to share in the language of your choice? Please share!
C# Example:
string newCat = string.Empty; newCat = newCat + "<FootageCategory>"; newCat = newCat + "<Name>" + title + "</Name>"; newCat = newCat + "<PlayoutOrder>" + playoutOrder + "</PlayoutOrder>"; newCat = newCat + "<PlayoutCount>" + playoutCount + "</PlayoutCount>"; newCat = newCat + "</FootageCategory>"; string result = webClient.UploadString(stationLink + "/CreateFootageCategory", newCat); XDocument footageCategory = XDocument.Parse(result); IEnumerable<XElement> query = from document in footageCategory.Elements("ListOfFootageCategory").Elements("FootageCategory") select document.Element("FootageCategoryLink"); foreach (XElement element in query) { return element.Value; } return null;
see also at Youtube Mashup Sample
