Skip to main content

SDK Overview

Crowd.Credit provides official SDKs in six languages, making it easy to integrate the platform into your application regardless of your tech stack.

Available SDKs

LanguagePackageVersionInstall
TypeScript@crowd-credit/sdk0.1.0npm install @crowd-credit/sdk
Pythoncrowd-credit0.1.0pip install crowd-credit
Gogithub.com/crowdpay/crowd-credit-go0.1.0go get github.com/crowdpay/crowd-credit-go
C#CrowdCredit.SDK0.1.0dotnet add package CrowdCredit.SDK
Javaio.crowdcredit:sdk0.1.0Maven/Gradle (see below)
SwiftCrowdCreditSDK0.1.0Swift Package Manager

Quick Start

All SDKs follow the same pattern:

  1. Initialize the client with your API key
  2. Call methods that map to API endpoints
  3. Handle responses and errors

TypeScript Example

import { CrowdCreditClient } from '@crowd-credit/sdk';

const client = new CrowdCreditClient({
apiKey: process.env.CROWD_CREDIT_API_KEY,
});

// Get account details
const account = await client.accounts.me();

// Get credit line info
const credit = await client.credit.getLine();
console.log(`Available credit: $${credit.available}`);

// Get yield summary
const yield = await client.yield.getSummary();
console.log(`Total earned: $${yield.totalEarned}`);

Common Features

All SDKs provide:

  • Type-safe requests and responses -- Full type definitions for all endpoints
  • Automatic retries -- Configurable retry logic with exponential backoff
  • Rate limit handling -- Automatic rate limit detection and retry
  • Error mapping -- API errors mapped to language-specific exceptions
  • Webhook signature verification -- Helper functions for verifying webhook payloads

Configuration Options

OptionDefaultDescription
apiKeyrequiredYour API key
baseUrlhttps://api.crowd.creditAPI base URL
timeout30000Request timeout in milliseconds
retries3Maximum retry attempts
debugfalseEnable debug logging

Next Steps

Choose your language for detailed setup and usage instructions: