First-class libraries for your favorite programming languages. Get started quickly with our official SDKs and comprehensive documentation.
Official JavaScript SDK with full TypeScript support for browser and Node.js environments.
npm install @whatsyour/info-jsimport 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 SDK compatible with Django, Flask, FastAPI and other Python frameworks.
pip install whatsyour-infofrom 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)High-performance Go SDK for building scalable applications with What'sYour.Info.
go get github.com/whatsyour/info-gopackage 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 SDK for Laravel, Symfony, WordPress and vanilla PHP applications.
composer require whatsyour/info-php<?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'];Follow these steps to start using our SDKs