served 932,683 videos today
Encoding and storage | Content management | User-generated content | Web Services API | Network of CDNs | About us


Web Services API

Access and update your content remotely with the VISUALPLANT Web Services API.

Two service types ⇒
 
 

To create titles with the VP API you need an understanding of the W3C SOAP protocol and an environment capable of processing SOAP requests. You will also need a VP account. During set-up our team prepares a transcoding profile with recipes (output formats) according to your needs.

Root VP SOAP URL: http://webservices.visualplant.net/soap/EncodingServer.php
WSDL: http://webservicesstaging.visualplant.net/soap/EncodingServer.php?wsdl


Overview and process:

1. To create a new title, begin by calling CreateTitleID(). Declare your publisher name (Publisher) and Passkey (Passkey) and do so on all subsequent API calls. The response will populate TitleID from VPSoapMetaData.

2. Next, you can call AssociateMetaData() with the TitleID from step 1 to populate the title with the optional metadata: Title , Description , Tags , ReleaseDate and UserID.

3. Then, call GetUploadLocation(). The response will populate UploadServer , UploadType , UploadUsername and UploadPassword from VPSoapUpload. Declare a NotificationURL only if you need to override the one established during set-up.

4. Now, use SubmitRequest() to add the title to the transcoding queue. Upload your source file (video, audio or image file) according to UploadServer and UploadType (S3 or FTP).

5. For each format processed, the VP API will send notifications to your notification URL (NotificationURL), in order of priority. The most important formats will be encoded and notified first—which is useful to allow your users to share uploads quickly while less-used formats finish encoding in the background.

List structure:

Function Description Parameter Elements Response
CreateTitleID() Returns the Title ID for the title to be created. VPSoapEncodingServer Required:
Publisher
Passkey
VPSoapMetaData
AssociateMetaData() Adds optional metadata for the title. VPSoapMetaData Required:
Publisher
Passkey
TitleID

Optional:
Title
Description
Tags
ReleaseDate
UserID

VPSoapServerObj
GetUploadLocation() Returns the type, location and credentials to upload the source file. VPSoapServerObj Required:
Publisher
Passkey

Optional or automatic:
PassThrough
NotificationURL
Message

VPSoapServerResponse
SubmitRequest() Returns Job IDs and starts the encoding process. VPSoapServerObj Required:
Publisher
Passkey

Optional or automatic:
InputUser
InputPass
OutputFileURL
OutputUser
OutputPass
OutputThumbPrefix
OutputThumbSuffix
PassThrough
NotificationURL
JobID
Message
UploadMethod

VPSoapServerObj
GetJobStatus() Returns the status of a transcoding job. VPSoapMetaDeta Required:
Publisher
Passkey
JobID
VPSoapServerObj

Element descriptions:

Publisher
The name of the publisher, e.g., your company or product name. Required in each API request.

Passkey
Your passkey for access to the API. Required in each API request.

InputFileURL
Where to upload the file (e.g. s3://bucketname/path.). Assigned by the API.

NotificationURL
The URL to your script to receive responses/notifications from the API. Populated by the API with option to overwrite.

JobID
The unique id to identify the transcoding job. Assigned by the API.

TitleID
The unique id to identify the title. Assigned by the API.

UserID
The unique id to identify the user who uploaded the title. Assigned by the API when using VISUALPLANT's user system. Optionally, you may use the field to assign a UserID from your own user system.

Title
A name or headline to describe the title.

Description
A complete description for the title.

OutputFileURL
The destination for encoded files after processing. Populated by the API.

OutputUser
The username to access the destination for encoded files after processing. Populated by the API.

OutputPass
The password to access the destination for encoded files after processing. Populated by the API.

OutputThumbPrefix
Optional prefix for thumbnail image files. Populated by the API.

OutputThumbSuffix
Optional suffix for thumbnail image files. Populated by the API.

PassThrough
Optional passthrough string for client use.

Message
Communicates messages from the API, such as errors. Populated by the API.


IP Address Security:
For security, clients may optionally assign IP addresses to their Passkeys authorized to return results from VISUALPLANT. Requests from non-authorized IP addresses will be blocked.

© VISUALPLANT LLC 2000-2010