1.15.30 • Published 5 years ago
@unegma/tutorcruncher-utilities v1.15.30
Tutor Cruncher Utilities
Utility functions for interacting with TutorCruncher APIs
Usage
npm install @unegma/tutorcruncher-utilities --save
const {
TUTORCRUNCHER_API_KEY,
SLACK_ERROR_LOG
} = process.env;
const { LessonUtilities, ClientUtilities, JobUtilities,
PaymentUtilities, BaseUtilities } = require('@unegma/tutorcruncher-utilities');
const tCLib = new BaseUtilities(TUTORCRUNCHER_API_KEY); // with console logging
const tCLessonLib = new LessonUtilities(TUTORCRUNCHER_API_KEY, SLACK_ERROR_LOG); // with slack logging
...
// get all lessons
tCLessonLib.getAllLessons();
// raw request (use if no wrapper function built yet)
tCLib.postToTC(`/proforma-invoices/`, data);
// useful low level functions
const myExtraAttributeValue = tCLib.getAttValue(user.extra_attrs, 'my_custom_attr');
1.15.30
5 years ago
1.15.29
5 years ago
1.15.26
5 years ago
1.15.27
5 years ago
1.15.28
5 years ago
1.14.26
5 years ago
1.12.26
5 years ago
1.13.26
5 years ago
1.12.25
5 years ago
1.12.24
5 years ago
1.10.21
5 years ago
1.11.23
5 years ago
1.11.24
5 years ago
1.11.21
5 years ago
1.11.22
5 years ago
1.10.20
5 years ago
1.9.20
5 years ago
1.8.20
5 years ago
1.7.20
5 years ago
1.6.20
5 years ago
1.6.19
5 years ago
1.6.18
5 years ago
1.5.12
5 years ago
1.5.14
5 years ago
1.5.13
5 years ago
1.5.16
5 years ago
1.3.11
5 years ago
1.5.15
5 years ago
1.3.12
5 years ago
1.5.18
5 years ago
1.5.17
5 years ago
1.4.12
5 years ago
1.3.10
5 years ago
1.3.9
5 years ago
1.2.9
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.3
5 years ago
1.0.0
5 years ago