You can easily control your Vid.lys presence on the web with our expiration controls. By specifying a start date, you can pre-schedule your campaigns to be available on the web when needed. These can be open ended, or used in combination with an expiration date. Want to get even fancier? You can specify a token to be used to protect your Vid.ly that is set to expire (or start) on a pre-defined date.
Here's a quick guide to get you started, sourced from: http://api.vid.ly/#AddMedia
This example is of an XML that will allow the start date of the vid.ly to be September 22, 2015.
<?xml version="1.0"?> <Query> <Action>AddMedia</Action> <userid>[userid]</userid> <userkey>[userkey]</userkey> <Source> <sourcefile>[sourcefile]</sourcefile> <Protect> <StartDate>2015-09-22 00:00:00</StartDate> </Protect> </Source> </Query>
XML sample of Vid.ly that will expire @ September 25, 2015.
<?xml version="1.0"?> <Query> <Action>AddMedia</Action> <userid>[userid]</userid> <userkey>[userkey]</userkey> <Source> <sourcefile>[sourcefile]</sourcefile> <Protect> <ExpirationDate>2015-09-25 00:00:00</ExpirationDate> </Protect> </Source> </Query>
XML Sample of Vid.ly that will allow the Vid.ly to be available on September 22,
but expire on the 25th of September 2015.
<?xml version="1.0"?> <Query> <Action>AddMedia</Action> <userid>[userid]</userid> <userkey>[userkey]</userkey> <Source> <sourcefile>[sourcefile]</sourcefile> <Protect> <StartDate>2015-09-22 00:00:00</StartDate> <ExpirationDate>2015-08-25 00:00:00</ExpirationDate> </Protect> </Source> </Query>
#####
Want to add another layer of control to who watches your Vid.lys? Protect them by a token that has a start date and/or end date. On the other hand, you don't have to set a start / end date for the token; it can be open ended, by leaving off date params.
All that is required is to send the GetSecurityToken request to the API and you will be provided with a token in the server response.
http://api.vid.ly/#GetSecurityToken
<?xml version="1.0"?> <Query> <Action>GetSecurityToken</Action> <UserID>[User ID]</UserID> <UserKey>[User key]</UserKey> <MediaShortLink>[MediaShortLink]</MediaShortLink> <AllowedFromDate>2012-03-11 10:00:00</AllowedFromDate> <AllowedToDate>2012-03-12 10:00:00</AllowedToDate> <ExpirationTimeSeconds>86400</ExpirationTimeSeconds> <AllowedIP>192.168.1.1,192.168.1.50-100,192.168.2.*</AllowedIP> </Query>
Please note that when you specify values for AllowedFromDate, AllowedToDate, ExpirationTimeSeconds and AllowedIP, you are applying these to the Token. These do not apply to the life of the Vid.ly link.