Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2014-12-15 12:28:01

bolanda
Member
Registered: 2014-12-15
Posts: 2

CMS integration

We are integrating using the JSON API but we cannot seem to get any
published file data.

We are enabling the client to browse the folders and files via our CMS
(which is working fine) and then downloading the file to add to our
CMS image library.

We are doing the login then using:

Folders.GetTopLevelFolders
Files_GetAssetsForParent
Files_GetAssetDetails with the publishedFiles key in 'fields'

but this isn't returning anything in the published files array.

You support team tell me we need to publish the file first via the API but how do we do this?

Offline

#2 2014-12-15 12:43:26

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: CMS integration

Hi,

You can publish files using Downloads.PublishAssetByDownloadSize. I would suggest you look at the docs on publishing https://www.thirdlight.com/docs/display … ish+to+URL for an overview of what it means in IMS - fundamentally you publish a specific variant of a file, and GetAssetDetails returns any variants that have already been published when the `publishedFiles` key is specified.

Dominic

Offline

Board footer