New: Unified API Platform - 250+ Endpoints, One Integration, Infinite PossibilitiesExplore Now ?
Back to Documentation

SDKs & Client Libraries

Official SDKs for all major programming languages. Get started in minutes with our idiomatic client libraries.

Soon

Node.js / TypeScript

v2.5.0
npm install @onlyoneapi/sdk
Full TypeScript support
Async/await
Streaming support
Webhook handling
Soon

Python

v2.4.1
pip install onlyoneapi
Type hints
Async support
Pandas integration
Jupyter compatible
Soon

Go

v1.3.0
go get github.com/onlyoneapi/go-sdk
Goroutine safe
Context support
Zero dependencies
High performance
Soon

Java

v2.2.0
// Add to pom.xml or build.gradle
Spring Boot integration
Reactive support
Builder pattern
Full javadocs
Soon

Ruby

v1.8.0
gem install onlyoneapi
Rails integration
Idiomatic Ruby
Comprehensive tests
ActiveRecord support
Soon

PHP

v2.0.0
composer require onlyoneapi/sdk
PSR-4 compliant
Laravel support
Guzzle based
Full type declarations

Quick Installation Guide

1
Install the SDK

Choose your language and run the installation command:

# Node.js
npm install @onlyoneapi/sdk

# Python
pip install onlyoneapi

# Go
go get github.com/onlyoneapi/go-sdk

2
Initialize the Client

// JavaScript
const OnlyOneAPI = require('@onlyoneapi/sdk');
const client = new OnlyOneAPI('YOUR_API_KEY');

# Python
from onlyoneapi import Client
client = Client('YOUR_API_KEY')

// Go
client := onlyoneapi.NewClient("YOUR_API_KEY")

3
Make Your First Call

// Analyze text sentiment
const result = await client.text.analyzeSentiment({
 text:"I love using OnlyOneAPI!"
});

console.log(result.sentiment); //"positive"

Need Help Choosing?

All our SDKs provide the same features and follow similar patterns. Choose based on your tech stack and team preferences.