Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.1 KB

File metadata and controls

36 lines (29 loc) · 1.1 KB
title Client Libraries
description Call the Trophy Admin API from Node.js, Python, Go, and other languages using the official type-safe SDKs under the trophy.admin namespace.
og:description Use Trophy's type-safe SDKs to integrate with the API and start building gamified product experiences.
icon code-xml

The Trophy Admin API is available in the same SDKs as the Application API, under the trophy.admin namespace.

For example in NodeJs you can use the following code to create a points boost through the admin namespace:

import { TrophyApiClient } from '@trophyso/node';

const trophy = new TrophyApiClient({
  apiKey: 'YOUR_API_KEY'
});

const response = await trophy.admin.points.boosts.create({
  systemKey: 'xp',
  boosts: [
    {
      userId: 'user-123',
      name: 'Double XP Weekend',
      start: '2024-01-01',
      end: '2024-01-03',
      multiplier: 2
    }
  ]
});

Get Support {#get-support}

Want to get in touch with the Trophy team? Reach out to us via email. We're here to help!