@badgeup/badgeup-browser-client
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

BadgeUp Browser Client

Official browser client for working with BadgeUp, a user engagement and gamification service.

Build Status

Quickstart

npm install @badgeup/badgeup-browser-client --save

Initialization

The BadgeUp browser client is initialized with an options object.

const { BadgeUp } = require('@badgeup/badgeup-browser-client');
// or for TypeScript, import { BadgeUp } from '@badgeup/badgeup-browser-client';

const badgeup = new BadgeUp({
    apiKey: // the API Key created for use with this application
});

// get a complete list of achievements
const achievements = await badgeup.achievements.getAll();
console.log(achievements);

Development

Run npm run dev to have TypeScript watch for changes and automatically compile during development. Running npm test will automatically trigger a compilation.

Support

If you find an problem with this module, please file an issue.

Package Sidebar

Install

npm i @badgeup/badgeup-browser-client

Weekly Downloads

9

Version

3.0.0

License

MIT

Unpacked Size

233 kB

Total Files

141

Last publish

Collaborators

  • badgeup