Function: getDataContainerTableList

Returns all Datacontainers and their tables with field definition. The contents of the tables are NOT included in the output.

Request-program-example for getDataContainerTableList
<?php

    # Your source code before
    # ...

    $contentdockApiKey = 'YourAPIKey';
    $contentdockClientSubdomain = 'YourContentDockSubDomain';
    $yourProgramAgent = 'YourProgramAgent';

    $query =  json_encode ( 
                array ( 
                  "query" => 
                    array (
                      "command" => "getDataContainerTableList",
                      "param" => 
                        array (
                          $contentdockApiKey, 
                          $contentdockClientSubdomain, 
                          $yourProgramAgent 
                        )
                    )
                )
              );

    $requestData = array ( "data" => $query );

    $requestUrl = 'https://www.contentdock.com/api';

    $curl = curl_init ( $requestUrl );
    curl_setopt ( $curl, CURLOPT_POST, true );
    curl_setopt ( $curl, CURLOPT_POSTFIELDS, http_build_query ( $requestData ) );
    curl_setopt ( $curl, CURLOPT_USERAGENT,'contentDockAPI/1.0');
    curl_setopt ( $curl, CURLOPT_RETURNTRANSFER, true );

    $response = curl_exec ( $curl );
    curl_close ( $curl );
?>

More information


Feedback or Questions

We are always happy to help you with questions about the code or other questions.

Was this page helpful? Yes No

Topics on this page