Java Bindings

7 views
Skip to first unread message

Wolfman

unread,
Mar 10, 2010, 11:33:15 PM3/10/10
to Sorenson Media Developer Group
Hi all,

I have started working with the Sorenson Java API today. And quickly I
realized that a lot of the functionality is not available. I was able
to use Accounts, Assets and Metrics but all the either items did not
seem to be available. Categories, Groups, Metadata (big one for us),
Subaccounts and Tags do not seem to be available in our IDE after
loading all the bindings in.

Can you provide an example or indicate if there are new bindings
coming soon for Java to implement the remainder of these items. Also
is there a way to retrieve comments that have been entered on an asset
for the review/approval process? And can you see the status (approved
or revised)? These will all be critical to our workflow with Sorenson
360.

Thanks,
Mark

Kevin Baker

unread,
Mar 12, 2010, 4:29:55 PM3/12/10
to Sorenson Media Developer Group
Hello,

On Mar 10, 8:33 pm, Wolfman <dos...@telus.net> wrote:
> Hi all,
>
> I have started working with the Sorenson Java API today. And quickly I
> realized that a lot of the functionality is not available. I was able
> to use Accounts, Assets and Metrics but all the either items did not
> seem to be available. Categories, Groups, Metadata (big one for us),
> Subaccounts and Tags do not seem to be available in our IDE after
> loading all the bindings in.

Yes, the current Java bindings do not have full coverage of the
RESTful API at this time. We will continue to release updates to the
bindings as they are complete. I will check back with the team to find
out when we will have the next update to the bindings.

You an however access all public Sorenson 360 features via the RESTful
API today. Let me know if you have any questions around this.


>
> Can you provide an example or indicate if there are new bindings
> coming soon for Java to implement the remainder of these items.


Here is some code, this code has some dependencies on our utils, but
should point you in the right direct:

public ArrayList<Asset> getAssets(int offset, int quantity) throws
ThreeSixtyException {
ThreeSixtyServiceResult assetResult =
Utils.postToServiceUrl(this.getCustomerID(), this.getToken(), "/assets?
offset=" + offset + "&quantity="
+ quantity, null, null, false, "GET");

String assetJSON = "";

try {
assetJSON = Utils.postToUrl("/api/getMediaList?offset=" +
offset + "&quantity=" + quantity + "&accountId=" +
this.getCustomerID()
+ "&sessionId=" + this.getSessionID() +
"&status=Live&sort=uploadDate", "", null, false);
} catch (Exception ex) {
throw new ThreeSixtyException(ex.getMessage());
}
return Asset.JSONToAssetList(assetJSON, this.getSessionID(),
this.isSubaccount(), this.getSubaccountId());
}

> Also
> is there a way to retrieve comments that have been entered on an asset
> for the review/approval process?

We do not currently have an API for this. Very good suggestion
though. Is this something you would want read only support on, or
would you want to be able to write new comments via API as well?

>And can you see the status (approved or revised)? These will all be critical to our workflow with Sorenson 360.

We do not currently have an API for access to review and approval
status. Again great idea. How would you like to see this implemented?
In general we can be pretty responsive on updates to the RESTful API.


>
> Thanks,
> Mark

Mark Dostie

unread,
Mar 12, 2010, 5:08:50 PM3/12/10
to sorenson-med...@googlegroups.com
Hi Kevin,

Thanks for the pointers and I'll start implementing some of the other
bindings.

Thanks,
Mark


Hello,

String assetJSON = "";


>
> Thanks,
> Mark

--
Check out Sorenson Media Developer docs, videos and articles at
http://developers.sorensonmedia.com

You received this message because you are subscribed to the Google
Groups "Sorenson Media Developers" group.
To post to this group, send email to
sorenson-med...@googlegroups.com
To unsubscribe from this group, send email to
sorenson-media-dev...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sorenson-media-developers?hl=en

Mark Dostie

unread,
Mar 12, 2010, 5:17:51 PM3/12/10
to sorenson-med...@googlegroups.com
Hi Kevin,

To answer your questions (I had not read all the way down)...

>We do not currently have an API for this. Very good suggestion
>though. Is this something you would want read only support on, or
>would you want to be able to write new comments via API as well?

For us the key would be to be able to read the comments down. I suspect
being able to write them would be very handy in the future though.

>We do not currently have an API for access to review and approval
>status. Again great idea. How would you like to see this implemented?
>In general we can be pretty responsive on updates to the RESTful API.

Since you can have multiple commentors and comments it would be best to
retrieve the Asset (as) and then be able to retrieve an ArrayList of
CommentInfo from it. CommentInfo would then contain, the date it was
received, the name of the commenter and the string of the comment itself.

A great feature I also suggested before is a button on the 360 screen called
"Paste timecode" which adds the time code that the video is at currently
into the comment (preferably as a seperate column) and then the person can
comment on it. For us this is critical to be able to see what the timecode
of the comment was. Makes it faster for us to correct the issue.

Also in Squeeze it would be a huge help if it could compress from JPG or TGA
files (numbered sequentially).

My goal is using the API is to create a "versioning" system, where I can
post Version 1, get comments, revise it and then Post Version 2. I want to
maintain the comments (perhaps by downloading them to our system) from
Version 1 to show they have been addressed. So through the API we would
manage each asset so there is only the latest version of the movie but all
the comments from the previous ones are maintained.

Thanks,
Mark


Mark Dostie

unread,
Mar 12, 2010, 5:37:30 PM3/12/10
to sorenson-med...@googlegroups.com
Hi Kevin,

In using the Java bindings it seems the "write" actions are not working. I
tried asset.setDescription but the description does not change. And I also
tried asset.delete but the asset is not deleted when I go into it. Its like
I am in a read-only mode.

Thanks,
Mark

-----Original Message-----
From: sorenson-med...@googlegroups.com
[mailto:sorenson-med...@googlegroups.com]On Behalf Of Kevin
Baker
Sent: Friday, March 12, 2010 1:30 PM
To: Sorenson Media Developer Group
Subject: [sorenson-dev] Re: Java Bindings


Hello,

String assetJSON = "";


>
> Thanks,
> Mark

--

Kevin Baker

unread,
Mar 12, 2010, 5:54:09 PM3/12/10
to Sorenson Media Developer Group
Mark,

This is GREAT feedback.

We will be continuing to extend the API's based on feedback, so keep
it coming.

I will update this thread when we have these features.

-- Kevin

Kevin Baker

unread,
Mar 12, 2010, 6:02:07 PM3/12/10
to Sorenson Media Developer Group
Ok,

Let me review with one of our Java developers to see what is going on
there.

So you are able to "read" data just not updates of any kind?

Thanks Mark,

-- kevin

> Check out Sorenson Media Developer docs, videos and articles athttp://developers.sorensonmedia.com

Mark Dostie

unread,
Mar 12, 2010, 6:06:46 PM3/12/10
to sorenson-med...@googlegroups.com
Yes thats right...

ArrayList assetList = acct.getAssets(offset, numToRetrieve);

Iterator i = assetList.iterator();

while (i.hasNext()) {
Asset a = (Asset) i.next();

if (a.getDescription().indexOf("UCT") != -1) {

a.deleteAsset();
}
}

The deleteAsset seems to get ignored...

Mark Dostie

unread,
Apr 6, 2010, 11:21:11 AM4/6/10
to sorenson-med...@googlegroups.com
Hi Kevin,

I was wondering if there was any progress on this issue (failed updates) and
if there was a new version of the Java bindings with more of the coding
available soon? Really interested in the metadata process for a big project
coming up in May 2010.

Mark Dostie

unread,
Aug 19, 2010, 1:03:24 PM8/19/10
to sorenson-med...@googlegroups.com
Hi Kevin,

Any progress on the RESTful API around comments or the Java bindings for
accessing the API - seems like nothing has happened since March 2010??

Thanks,
Mark

-----Original Message-----
From: sorenson-med...@googlegroups.com
[mailto:sorenson-med...@googlegroups.com]On Behalf Of Kevin
Baker
Sent: Friday, March 12, 2010 1:30 PM
To: Sorenson Media Developer Group
Subject: [sorenson-dev] Re: Java Bindings


Hello,

String assetJSON = "";


>
> Thanks,
> Mark

--

abruno

unread,
Aug 20, 2010, 11:53:28 AM8/20/10
to Sorenson Media Developer Group
Hi Mark:

We should have these two ready in two weeks for sure.

Ana
> Check out Sorenson Media Developer docs, videos and articles athttp://developers.sorensonmedia.com

Mark Dostie

unread,
Aug 20, 2010, 12:30:52 PM8/20/10
to sorenson-med...@googlegroups.com
Hi Ana,

Can you provide a date? We have been told since March that it will be in 2-3
weeks and we have seen nothing at all.

abruno

unread,
Aug 20, 2010, 1:34:50 PM8/20/10
to Sorenson Media Developer Group
Mark:

The Groups API binding will be ready on August 30th. The Comments API
will be ready on September 1st.

Ana
> Check out Sorenson Media Developer docs, videos and articles athttp://developers.sorensonmedia.com

Mark Dostie

unread,
Sep 1, 2010, 2:56:19 PM9/1/10
to sorenson-med...@googlegroups.com
Hi Ana,

Can I download the Groups API/Comments API today? Where is the new version
located?

abruno

unread,
Sep 1, 2010, 5:00:39 PM9/1/10
to Sorenson Media Developer Group
Hi Mark:

You can download the Groups API this Friday, preferably EOD.

Thanks,
Ana
> Check out Sorenson Media Developer docs, videos and articles athttp://developers.sorensonmedia.com

Mark Dostie

unread,
Sep 1, 2010, 10:15:16 PM9/1/10
to sorenson-med...@googlegroups.com
And what about the Comments API which was coming today? I have been waiting
since March for that one.

abruno

unread,
Sep 3, 2010, 12:07:29 PM9/3/10
to Sorenson Media Developer Group
Hi Mark:

The Comments API is almost done. We have had to occupy ourselves in
other projects. I will give you a date as soon as I get one.

Ana
> Check out Sorenson Media Developer docs, videos and articles athttp://developers.sorensonmedia.com

Mark Dostie

unread,
Sep 3, 2010, 12:20:11 PM9/3/10
to sorenson-med...@googlegroups.com
Can I download the Groups API today?

abruno

unread,
Sep 7, 2010, 4:10:19 PM9/7/10
to Sorenson Media Developer Group
Hi Mark:

We have implemented a Folder API that can be used like the Group API.
Please use this new API. This API allows for one account to own a
folder that has one to many assets. Here is an overview of the
methods:

public static ArrayList<Folder> getFolderList(Account acct)
public static Folder getFolder(Account acct, String folderId)
public static Folder createFolder(Account acct, String newFolderName)
public static boolean deleteFolder(Account acct, String folderID)
public static Folder updateFolder(Account acct, String folderID,
String newFolderName) {
public static boolean addAssetToFolder(Account acct, String folderID,
String assetID)
public static boolean deleteAssetFromFolder(Account acct, String
folderID, String assetID)
public static ArrayList<String> getAssetList(Account acct, String
folderID)

The updated binding can be downloaded from the current URL:
http://developer.sorensonmedia.com/download/java. We will be updating
the developer site with documentation on this soon.

Ana
> Check out Sorenson Media Developer docs, videos and articles athttp://developers.sorensonmedia.com

Mark Dostie

unread,
Sep 7, 2010, 4:13:44 PM9/7/10
to sorenson-med...@googlegroups.com
How does this combine with the 360 Groups? Ie. if I have a group called
"Client5" how do I move all assets which have "_client5" in the name into
folder that only client 5 has access to in 360?

abruno

unread,
Sep 10, 2010, 5:53:48 PM9/10/10
to Sorenson Media Developer Group
Hi Mark:

We will have the Groups API ready by Monday and you can also use the
Folder API for more functionality.

Ana
> ...
>
> read more »

Mark Dostie

unread,
Feb 15, 2011, 5:44:43 PM2/15/11
to sorenson-med...@googlegroups.com
Hi Ana,

Can you provide me the link to download the Java bindings?

Thanks,
Mark

-----Original Message-----
From: sorenson-med...@googlegroups.com
[mailto:sorenson-med...@googlegroups.com]On Behalf Of abruno
Sent: Friday, August 20, 2010 8:53 AM

Reply all
Reply to author
Forward
0 new messages