Get a single content type

Requesting an individual content type can be achieved by using the get method on the client's contentTypes property.

get(contentTypeId: string): Promise<ContentType>


Name Type Description
contentTypeId string The id of the content type


A Promise that will resolve with the Content Type

<span id="content_type_name"></span>
(function(Zengenti) {
    // Create a client
    var client = Zengenti.Contensis.Client.create();

    $(function() {
        // Get the movie content type
        client.contentTypes.get('movie').then(function(movieContentType) {       


        }, function(error) {


results matching ""

    No results matching ""