Module ritekit
ballerinax/ritekit Ballerina library
Overview
The RiteKit API v1.0 connector(https://documenter.getpostman.com/view/2010712/SzS7Qku5?version=latest) OpenAPI specification.
The RiteKit API provides the capability to perform social media marketing through hashtag suggestions, auto hashtagging, emoji suggestions, etc.
Key Features
- Programmatic access to create and manage resources via REST API
- Send and publish data through the API
- 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:
- 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(); }