can't set licenseType, displayCredit?

2 replies [Last post]
Joined: 08/20/2009
Points: 3

hi

I'm using the PHP implementation to add entries after uploading via the KSU, and I've got everything working apart from the licenseType, which I just can't set. licenseType in ps2 is just a string, right?

Also, is there a way to use the PHP framework to set a displayCredit instead of credit? I'd like users to be able to dynamically set the name that's credited to a submission.

Cheers.

Joined: 01/05/2009
Points: 1697

Hi,

license type is not a string, it is an int field defined an enum: KalturaLicenseType

See the definition: (from the generator schema).

<enum name="KalturaLicenseType">
<const name="UNKNOWN" value="-1"/>
<const name="NONE" value="0"/>
<const name="COPYRIGHTED" value="1"/>
<const name="PUBLIC_DOMAIN" value="2"/>
<const name="CREATIVECOMMONS_ATTRIBUTION" value="3"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_SHARE_ALIKE" value="4"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_NO_DERIVATIVES" value="5"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL" value="6"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL_SHARE_ALIKE" value="7"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL_NO_DERIVATIVES" value="8"/>
<const name="GFDL" value="9"/>
<const name="GPL" value="10"/>
<const name="AFFERO_GPL" value="11"/>
<const name="LGPL" value="12"/>
<const name="BSD" value="13"/>
<const name="APACHE" value="14"/>
<const name="MOZILLA" value="15"/>
</enum>

For the credit - you can only set the user name and the creditUserName fields.

Make sure you're using the latest api_v3 client library.

Joined: 08/20/2009
Points: 3

so is it possible to get an UploadTokenId from the KSU then, or is it now redundant since it implements partner services v2?