Videos TV & Movies Channels Community

veoh.license.create

Create a license.

Request URL

HTTP://www.veoh.com/rest/v1/?method=veoh.license.create&apiKey=[your api key]

HTTP method

POST

Arguments

name(Required)
The name of the license.
licenseType(Required)
The type of the license. It has to be one of the four values: 'subscriptionNoRecur', 'subscriptionRecur', 'videoOwn', or 'videoRental'
price(Required)
The price of the license. It has to be a valid float number.
userToken(Optional)
The userToken that represents the requester
j_username(Optional)
The username of the user making this request. It has to represent a valid user in the sysetm.Combined with the j_password, it will be used to provide one time authentication.
j_password(Optional)
The password of the user making this request. Combined with the j_username, it will be used to provide one time authentication.
timeUnits(Optional)
The timeUnits for the duration. It has to be one of the following values: 'minute', 'hour', 'day', 'week', 'month', 'year'
duration(Optional)
The duration of the license. It has to be a valid integer.

Example Response

#EXAMPLERESPONSE#

Error Codes

100 : rest.api.serviceUnavailable
The REST API service in temporarily unavailable
118 : rest.api.invalidApiKey
The api key provided in the url is not valid.
117 : rest.api.noApiKeyProvided
No api key has been provided in the request.
131 : rest.api.tooManyRequests
The number of requests made has exceeded the limit of this apiKey.
117 : rest.api.noApiKeyProvided
No api key has been provided in the request.
132 : rest.api.gapNotEnough
The request has to be made after a certain period of time associated with this apiKey
128 : rest.api.httpsReqired
HTTPS protocol is required for one time authentication.
247 : rest.user.invalidUserToken
The userToken provided in the request is not valid.
248 : rest.user.invalidUserTokenExpired
The userToken provided in the request has expired.
224 : rest.user.logginFailed
The username or the password provided in the request is not valid. Authentication failed.
103 : rest.api.writePermissionRequired
This operation requires WRITE permission
442 : rest.license.invalidName
???rest.license.invalidName???
430 : rest.license.invalidTimeUnits
The time unit provided in the request is not valid. A valid time unit has to be one of the following values: 'minute', 'hour', 'day', 'week', 'month', or 'year'.
431 : rest.license.invalidDuration
The duration provided in the request is not valid. It has to be a valid integer.
432 : rest.license.invalidPrice
The price provided in the request is not valid. It has to be a valid float number.

API Explorer

API Explorer : veoh.license.create

Copyright © 2008 Veoh Networks, Inc.  |  Terms of Use  |  Copyright  |  Privacy Policy