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
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
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
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
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
--
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
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
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...
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.
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
--
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.
Can I download the Groups API/Comments API today? Where is the new version
located?
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