ballerinax/giphy Ballerina library

1.2.0

Overview

This is a generated connector for Giphy API v1 OpenAPI Specification.

Giphy API provides the capability to access GIFs and stickers.

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 connector

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

Copy
import ballerinax/giphy;

Step 2: Create a new connector instance

Create a giphy:ApiKeysConfig with the tokens obtained, and initialize the connector with it.

Copy
giphy:ApiKeysConfig configuration = <API_KEY_PAIR>

giphy:Client giphyClient = check new(configuration);

Step 3: Invoke connector operation

  1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.
    Following is an example on how to get a random GIF using the connector.

    Copy
    public function main() returns error? {
        giphy:Response entity = check giphyClient->randomGif();
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/giphy;Copy

Metadata

Released date: about 2 years ago

Version: 1.2.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.0.0

GraalVM compatible: Yes


Pull count

Total: 0

Current verison: 0


Weekly downloads


Source repository


Keywords

Content & Files/Images & Design

Cost/Free


Contributors

Other versions

See more...