ballerinax/medium Ballerina library

1.5.0

Overview

This is a generated connector for Medium API v1 OpenAPI Specification.

Medium’s Publishing API provides capability to access the Medium network, create your content on Medium from anywhere you write, and expand your audience and your influence.

Prerequisites

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

  • Create a Medium account
  • Obtain tokens
  1. Follow this link to obtain tokens

Quickstart

To use the Medium connector in your Ballerina application, update the .bal file as follows: Add steps to create a simple sample

Step 1 - Import connector

Copy
import ballerinax/medium;

Step 2 - Create a new connector instance

Copy
configurable http:BearerTokenConfig & readonly auth = ?;
ClientConfig clientConfig = {auth : auth};
Client baseClient = check new Client(clientConfig);

Step 3 - Invoke connector operation

  1. Invoking connector operations using the client.
Copy
medium:UserResponse response = check baseClient->getUserDetail();
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/medium;Copy

Metadata

Released date: over 1 year ago

Version: 1.5.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 73

Current verison: 0


Weekly downloads


Source repository


Keywords

Content & Files/Blogs

Cost/Freemium


Contributors

Other versions

See more...