Dashboard > MAMBO Web Services API > Home > Sample code - Deprecated
  MAMBO Web Services API Log In   View a printable version of the current page.  
  Sample code - Deprecated
Added by Minh Tran, last edited by Amit Tyagi on Apr 03, 2008  (view change)
Labels: 
(None)

How to run the example:

Note - Deprecated - Use this instead Sample Codes
Please give the assigned licenseKey and accountHexCode
Requirements
Please have a java 1.5 runtime JRE or JDK installed
Steps
  1. Extract the attached WebServiceExample.zip file anywhere (in our case C:\a)
  2. Go in the extracted directory (in our case C:\a)
  3. Edit the config.properties file. Make sure to set the licenseKey and accountHexCode with the values given to you.
  4. Follow the steps below

C:\a>java -jar WebServiceExample.jar -u "C:\Lady.wmv"
Auth Token Generated: [a71a0161-bdc8-4a89-94dd-68aad6948fa1]
Upload Request had been send to server. Just wait for the Response
File Uploaded successfully
File is uploaded to Folder [5466]
Logged Out Auth Token: [a71a0161-bdc8-4a89-94dd-68aad6948fa1]

Get the folder id above [5466] and put as part of the argument in the next command as shown below

C:\a>java -jar WebServiceExample.jar -g 5466
Auth Token Generated: [09724d75-ec7a-41b7-ba7b-ada03f6c8abd]
Transcoding Request had been send to server for AssetMaster [5619]
Logged Out Auth Token: [3eacb0a9-306b-45e1-9269-898735339e9f]

The following command can be ran on the assetMasterId to get the transcoded assetId and it's associated URL. You might have to run multiple times. You will only get back the assetId when the transcoding is completed

C:\a>java -jar WebServiceExample.jar -l 5619
Auth Token Generated: [a75b1198-d8c2-47c1-920f-608c21d70255]
Asset Id: 9348
Streaming URL: http://72.18.204.38:9081/mediaserver?k=Ytc7QyJQP1qtfdLzjd2+92FF21wApA391xzomvs8u5TmWvBSqZ2KKNHqB9Vk3/Ok
Logged Out Auth Token: [a75b1198-d8c2-47c1-920f-608c21d70255]

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.5 Build:#520 Jun 27, 2006) - Bug/feature request - Contact Administrators