Skip to main content

SDKs & Libraries

Integrate FYATU into your application using our official SDKs or community libraries.

Official SDKs

Node.js

Coming SoonOfficial Node.js SDK with TypeScript support
npm install @fyatu/sdk

Python

Coming SoonOfficial Python SDK for Django, Flask, and more
pip install fyatu

PHP

Coming SoonOfficial PHP SDK for Laravel, Symfony, and more
composer require fyatu/sdk

Go

Coming SoonOfficial Go SDK
go get github.com/fyatu/go-sdk

Using the REST API Directly

Until SDKs are available, you can use the REST API directly with any HTTP client:
const FYATU_API = 'https://api.fyatu.com/api/v2';

async function fyatuRequest(endpoint, options = {}) {
  const response = await fetch(`${FYATU_API}${endpoint}`, {
    ...options,
    headers: {
      'Business-ID': process.env.FYATU_BUSINESS_ID,
      'Authorization': `Bearer ${process.env.FYATU_API_KEY}`,
      'Content-Type': 'application/json',
      ...options.headers
    }
  });

  const data = await response.json();

  if (data.status === 'failed') {
    throw new Error(data.message);
  }

  return data;
}

// Usage
const balance = await fyatuRequest('/account/balance');
console.log('Balance:', balance.data.balance);

Community Libraries

We welcome community contributions! If you’ve built an SDK for FYATU:
  1. Ensure it follows our API conventions
  2. Include comprehensive documentation
  3. Add tests for major functionality
  4. Submit for review via [email protected]
Approved libraries will be listed here with attribution.

API Client Best Practices

Never hardcode API credentials. Use environment variables or a secrets manager.
Check response status and handle errors gracefully. Log errors for debugging.
Implement exponential backoff for rate limits (429) and server errors (5xx).
Cache responses that don’t change frequently (e.g., account status) to reduce API calls.

Postman Collection

Import our API into Postman for easy testing:

Download Postman Collection

Get the complete FYATU API collection for Postman

Need Help?