Module alfresco

ballerinax/alfresco Ballerina library

1.3.1

Overview

This is a generated connector for Alfresco OpenAPI specification.

This Alfresco Content Services REST APIs enable you to access to the core features of Alfresco Content Services.

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the Alfresco connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/alfresco module into the Ballerina project.

Copy
import ballerinax/alfresco;

Step 2: Create a new connector instance

Create a alfresco:ClientConfig with the Bearer_Token obtained, and initialize the connector with it.

Copy
alfresco:ClientConfig clientConfig = {
    auth: {
        token: <Bearer_Token>
    }
};
alfresco:Client baseClient = check new (clientConfig, serviceURL);

Step 3: Invoke connector operation

  1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.

    Following is an example on how to get list of comments in a particular node.

    Retrieve list of comments in a particular node.

    Copy
    public function main() returns error? {
        alfresco:CommentPaging response = check baseClient->listComments(nodeId);
        log:printInfo(response.toString());
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/alfresco;Copy

Metadata

Released date: 12 months ago

Version: 1.3.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 2

Current verison: 1


Weekly downloads


Source repository


Keywords

Content & Files/Documents

Cost/Paid


Contributors

Other versions