Module extpose
![](https://bcentral-packageicons.azureedge.net/images/ballerinax_extpose_1.1.0.png)
ballerinax/extpose Ballerina library
1.1.0
Overview
This is a generated connector from Extpose API v1 OpenAPI Specification.
Extpose provides analytics and actionable insights that help you optimize your chrome extension listing and eventually get more installs. More about the Extpose API can be find at Extpose
This module supports Extpose API version v1.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create Extpose account
- Obtain tokens - Navigate to the Extpose Acount,and obtain tokens by following this guide
Quickstart
To use the Extpose connector in your Ballerina application, update the .bal file as follows:
Step 1: Import connector
First, import the ballerinax/extpose module into the Ballerina project.
import ballerinax/extpose;
Step 2: Create a new connector instance
You can now intantiate the client.
extpose:ApiKeysConfig apiKeyConfig = { xApiKey": "<API_Key>" }; extpose:Client extposeClient = check new(apiKeyConfig);
Step 3: Invoke an operation
- Now you can use the operations available within the connector. Following code demonstrate how to get list of your extensions including extensions from the watchlist.
extpose:Extension[] userExtensions = check extposeClient->getUserExtensions();
- Use
bal run
command to compile and run the Ballerina program.