Built by Metorial, the integration platform for agentic AI.

Learn More

davidrojasliblab/test

Liblab Translation SDK

    Server Summary

    • Translate text to Morse code

    • Translate text to Braille

    • Translate text to Pirate Speak

    • Translate text to Star Wars dialects

    • Access a variety of fun translation APIs

Liblab TypeScript SDK 1.0.0

Welcome to the Liblab SDK documentation. This guide will help you get started with integrating and using the Liblab SDK in your project.

This SDK was generated by liblab

Versions

  • API version: 1.0.0
  • SDK version: 1.0.0

About the API

Funtranslations API gives access to the full set of translations available at funtranslations.com so that you can integrate them in your workflow or an app. Click here to get details and subscribe . Here are the individual API links:

Morse code API

Morse code conversion API on the cloud. Translate to and from Morse Code.Click here to subscribe

Braille API

Braille conversion API on the cloud. Translate to Braille and get Braille results suitable for many display types.Click here to subscribe

Starwars Translation API

Ever wonder how to talk like Yoda? Well, use our API and let your APP/webpage speak like Yoda too.Click here to subscribe

Sith Translator API. Click here to subscribe

Cheunh Translator API. Click here to subscribe

Huttese Translator API. Click here to subscribe

Mandalorian Translator API. Click here to subscribe

Gungan Translator API. Click here to subscribe

Pirate Speak Translation API

Ahoy, matey. Let's get those land lubbers speak our tounge too! Our evergreen pirate speak tranlsator API.Click here to subscribe

Valley Speak Translation API

Our throwback Valspeak translations API.Click here to subscribe

Minion Speak Translation API

Our evil master following minion speak translations API.Click here to subscribe

Table of Contents

Setup & Configuration

Supported Language Versions

This SDK is compatible with the following versions: TypeScript >= 4.8.4

Installation

To get started with the SDK, we recommend installing using npm:

npm install liblab

Authentication

Access Token Authentication

The Liblab API uses an Access Token for authentication.

This token must be provided to authenticate your requests to the API.

Setting the Access Token

When you initialize the SDK, you can set the access token as follows:

const sdk = new Liblab({ token: 'YOUR_TOKEN' });

If you need to set or update the access token after initializing the SDK, you can use:

const sdk = new Liblab();
sdk.token = 'YOUR_TOKEN';

Setting a Custom Timeout

You can set a custom timeout for the SDK's HTTP requests as follows:

const liblab = new Liblab({ timeout: 10000 });

Sample Usage

Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:

import { Liblab } from 'liblab';

(async () => {
  const liblab = new Liblab({
    token: 'YOUR_TOKEN',
  });

  const { data } = await liblab.morse.getTranslateMorse({
    text: 'text',
  });

  console.log(data);
})();

Services

The SDK provides various services to interact with the API.

Below is a list of all available services with links to their detailed documentation:

Name
MorseService
BrailleService
StarwarsService
StartrekService
ElvishService
CharactersService
DialectService
PigLatinService
GameOfThronesService
EnglishService
InternetFadService