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 Admin API client libraries
description Install Trophy's type-safe SDKs for Node.js, Python, and other languages to integrate the Admin API and automate configuration workflows.
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!