How to run the example:
| Please give the assigned licenseKey and accountHexCode |
| Please have a java 1.5 runtime JRE or JDK installed |
- Extract the attached WebServiceExample.zip file anywhere (in our case C:\a)
- Go in the extracted directory (in our case C:\a)
- Edit the config.properties file. Make sure to set the licenseKey and accountHexCode with the values given to you.
- 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]