ballerinax/xero.files Ballerina library

1.5.2

Overview

The Xero Files API v2.16.1 connector(https://developer.xero.com/documentation/api/files/overview) 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.

Key Features

  • Programmatic access to create and manage resources via REST API
  • Handle payments, billing, and financial transactions
  • Manage user accounts and profiles
  • Secure authentication with API key or OAuth support

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

Other versions

See more...

Metadata

Released date: 3 days ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 36

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/Xero

Area/Storage & File Management

Content & Files/Documents

Cost/Paid


Contributors