Skip to main content
Browse Documentation

List components

Created by Alex Pop on 19 Dec 2019

Gets the components for a project.

list(versionStatus?: VersionStatus): Promise<Component[]>

Returns

A Promise that will resolve with an array of Component objects.

Parameters

Name Type Description
versionStatus string The version status, either published or latest. The default is latest.

Example

client.components.list('published')
  .then(result => {      
    console.log('API call result: ', result);              
  })
  .catch(error => {
    console.log('API call fetch error: ', error);      
});