Official SDKs

First-class libraries for your favorite programming languages. Get started quickly with our official SDKs and comprehensive documentation.

JavaScript/Node.js

Official JavaScript SDK with full TypeScript support for browser and Node.js environments.

v1.0.0

Installation

npm install @whatsyour/info-js

Features

  • TypeScript definitions included
  • Works in browser and Node.js
  • Promise-based API
  • Automatic error handling
  • OAuth 2.0 support

Quick Example

import WhatsYourInfoSDK from '@whatsyour/info-js';

const sdk = new WhatsYourInfoSDK({
  apiKey: 'your-api-key'
});

// Get public profile
const profile = await sdk.getProfile('username');
console.log(profile);

// Authenticate user
const auth = await sdk.authenticateUser('user@example.com', 'password');
console.log(auth.user);

Python

Python SDK compatible with Django, Flask, FastAPI and other Python frameworks.

v1.0.0

Installation

pip install whatsyour-info

Features

  • Python 3.7+ support
  • Type hints included
  • Async/await support
  • Django/Flask integration
  • Comprehensive error handling

Quick Example

from whatsyour_info import WhatsYourInfoSDK

sdk = WhatsYourInfoSDK(api_key='your-api-key')

# Get public profile
profile = sdk.get_profile('username')
print(profile.firstName, profile.lastName)

# Authenticate user
auth = sdk.authenticate_user('user@example.com', 'password')
print(auth.user.username)

Go

High-performance Go SDK for building scalable applications with What'sYour.Info.

v1.0.0

Installation

go get github.com/whatsyour/info-go

Features

  • Go 1.19+ support
  • Context support
  • Structured error handling
  • HTTP client customization
  • Concurrent-safe

Quick Example

package main

import (
    "fmt"
    whatsyourinfo "github.com/whatsyour/info-go"
)

func main() {
    client := whatsyourinfo.NewClient(whatsyourinfo.Config{
        APIKey: "your-api-key",
    })

    // Get public profile
    profile, err := client.GetProfile("username")
    if err != nil {
        panic(err)
    }
    fmt.Printf("%s %s\n", profile.FirstName, profile.LastName)
}

PHP

PHP SDK for Laravel, Symfony, WordPress and vanilla PHP applications.

v1.0.0

Installation

composer require whatsyour/info-php

Features

  • PHP 7.4+ support
  • PSR-4 autoloading
  • Laravel service provider
  • Guzzle HTTP client
  • Exception handling

Quick Example

<?php
require_once 'vendor/autoload.php';

use WhatsYourInfo\Client;

$client = new Client([
    'api_key' => 'your-api-key'
]);

// Get public profile
$profile = $client->getProfile('username');
echo $profile['firstName'] . ' ' . $profile['lastName'];

// Authenticate user
$auth = $client->authenticateUser('user@example.com', 'password');
echo $auth['user']['username'];

Getting Started

Follow these steps to start using our SDKs

1

Get API Key

Sign up for a free account and get your API key from the developer dashboard.

2

Install SDK

Choose your preferred language and install the SDK using your package manager.

3

Start Building

Follow our documentation and examples to integrate What'sYour.Info into your app.

Community SDKs

Don't see your language? The community has created SDKs for additional languages.

Ruby
Community
Rust
Community
Java
Community
C#
Community
Swift
Community
Kotlin
Community
Dart
Community
Elixir
Community

Want to contribute an SDK for your favorite language?