Note: There is a newer version (1.5.1) of this package available. Click here to view docs for the latest version.
Module medium

ballerinax/medium Ballerina library
1.2.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
- 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
import ballerinax/medium;
Step 2 - Create a new connector instance
configurable http:BearerTokenConfig & readonly auth = ?; ClientConfig clientConfig = {auth : auth}; Client baseClient = check new Client(clientConfig);
Step 3 - Invoke connector operation
- Invoking connector operations using the client.
medium:UserResponse response = check baseClient->getUserDetail();
- Use
bal run
command to compile and run the Ballerina program.