0.2.3 • Published 2 years ago

@achievementify/client v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Achievementify Node.js client

Node.js client library for accessing Achievementify API

Installation

Install through npm:

npm install --save axios @achievementify/client

Usage

import { AchievementifyClient } from "@achievementify/client";

const client = new AchievementifyClient({
  projectId: YOUR_PROJECT_ID,
  clientSecret: CLIENT_SECRET,
});

app.post('/posts', (req, res) => {
  /* your post creation logic */

  client.send({
    userId: req.session.passport.user,
    achievementId: ACHIEVEMENT_ID,
  });

  /* other code */
});

Documentation

Read the full API documentation, please review the API Docs.

License

MIT © Achievementify

0.2.3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago