Module ritekit
ballerinax/ritekit Ballerina library
1.1.0
Overview
This is a generated connector for RiteKit API v1.0 OpenAPI specification.
The RiteKit API provides the capability to perform social media marketing through hashtag suggestions, auto hashtagging, emoji suggestions, etc.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create a RiteKit account.
- Obtain tokens - Follow this guide.
Quickstart
To use the RiteKit connector in your Ballerina application, update the .bal file as follows:
Step 1: Import connector
First, import the ballerinax/ritekit module into the Ballerina project.
import ballerinax/ritekit;
Step 2: Create a new connector instance
You can now make the connection configuration using the RiteKit API keys config.
ritekit:ApiKeysConfig & readonly apiKeyConfig = ?; ritekit:Client ritekitClient = check new (clientConfig);
Step 3: Invoke connector operation
Following is code demonstrates how to get a project using ballerinax/ritekit
connector.
public function main() returns error? { json response = check ritekitClient->trendingHashtags(); }