Official SDKs for all major programming languages. Get started in minutes with our idiomatic client libraries.
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
// 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")
// Analyze text sentiment
const result = await client.text.analyzeSentiment({
text:"I love using OnlyOneAPI!"
});
console.log(result.sentiment); //"positive"
All our SDKs provide the same features and follow similar patterns. Choose based on your tech stack and team preferences.