ballerinax/Apache Ballerina library

0.1.0

Overview

Ballerina connector for Giphy is connecting the Giphy API via Ballerina language easily. It provides functions to get GIFs and stickers.

This module supports Giphy API version 1.

Prerequisites

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

Quickstart

To use the Giphy connector in your Ballerina application, update the .bal file as follows:

Step 1: Import Giphy module

First, import the ballerinax/giphy module into the Ballerina project.

Copy
import ballerinax/giphy;

Step 2: Initialize Giphy client

You can now make the connection configuration using the Giphy API keys config.

Copy
giphy:ApiKeysConfig configuration = <API_KEY_PAIR>

giphy:Client giphyClient = check new (configuration);

Step 3: Create get a random GIF operation

Following is code demonstrates how to get a random GIF using ballerinax/giphy connector.

Copy
public function main() returns error? {
    giphy:Response entity = check giphyClient->randomGif();
}

Import

import ballerinax/Apache;Copy

Metadata

Released date: over 3 years ago

Version: 0.1.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: slalpha5

GraalVM compatible: Yes


Pull count

Total: 1

Current verison: 1


Weekly downloads


Source repository


Keywords

giphy

GIF

sticker


Contributors

Other versions

0.1.0