Module figshare

ballerinax/figshare Ballerina library

1.5.1

Overview

This is a generated connector for Figshare API v2.0.0 OpenAPI specification. Figshare is a repository where users can make all of their research outputs available in a citable, shareable and discoverable manner.

Prerequisites

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

Quickstart

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

Step 1: Import connector

Import the ballerinax/figshare module into the Ballerina project.

Copy
import ballerinax/figshare;

Step 2: Create a new connector instance

You can now enter the credentials in the Figshare client configuration and create Figshare client by passing the configuration:

Copy
configurable http:BearerTokenConfig & readonly auth = ?;
figshare:ClientConfig clientConfig = {auth : auth};

figshare:Client baseClient = check new Client(clientConfig);

Step 3: Invoke connector operation

  1. You can get public articles as follows with listPublicArticles method.
    Copy
    figshare:Article[] articles = check baseClient->listPublicArticles();
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/figshare;Copy

Metadata

Released date: 12 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 0

Current verison: 0


Weekly downloads


Source repository


Keywords

Content & Files/Documents

Cost/Freemium


Contributors

Other versions

See more...