ballerinax/xero.files Ballerina library

1.5.1

Overview

This is a generated connector for Xero Files API v2.16.1 OpenAPI specification. The Files API provides access to the files, folders, and the association of files within a Xero organisation. It can be used to upload/download files, manage folders and associate files to invoices, contacts, payments etc.

Prerequisites

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

Quickstart

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

Step 1: Import connector

First, import the ballerinax/xero.files module into the Ballerina project.

Copy
import ballerinax/xero.files;

Step 2: Create a new connector instance

Create a files:ClientConfig with the access token obtained, and initialize the connector with it.

Copy
files:ClientConfig clientConfig = {
    auth: {
        token: <ACCESS_TOKEN>
    }
};
files:Client baseClient = check new Client(clientConfig);

Step 3: Invoke connector operation

  1. You can get all the files by providing Xero tenant identifier as parameter.

    Copy
    files:Files response = check baseClient->getFiles(<Xero_Identifier_For_Tenant>);
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/xero.files;Copy

Metadata

Released date: over 1 year ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 1

Current verison: 0


Weekly downloads


Source repository


Keywords

Content & Files/Documents

Cost/Paid


Contributors

Other versions

See more...