0.2.3 • Published 2 years ago
@achievementify/client v0.2.3
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.