I couldn't find a client implemented in Node for the Mind Body API beyond this long-forgotten PR, so I took that PR and used it as the basis for creating what you now see before you.
As you can see, the codebase currently only handles a couple of endpoints, (the ones that I used in my project) and has only two tests written (which are designed to serve more as examples than anything else).
Additionally, everything is currently in one file; I imagine that if we added more endpoints that we'd need to modularize things a bit to avoid a bit of a mess, but that wouldn't be hard at all should the need arise.
Feel free to contribute!
- AddOrUpdateClients
- GetClients
- GetActivationCode
npm install --save mindbody-node-client
const MindBodyAPI = require('mindbody-node-client');
const mindBodyAPI = new MindBodyAPI();
mindBodyAPI.GetClients().then(result => {
console.log(result);
// do some stuff with the client
});
By default, the library will use the environment variables listed further down on this page.
However, you can also explicitly pass in your credentials when you're creating an instance of the module. These will always overwrite your env. variables (if present).
const MindBodyAPI = require('mindbody-node-client');
const mindBodyAPI = new MindBodyAPI({
sourceName: 'foo',
sourcePassword: 'bar',
siteID: '-99',
username: 'foo',
password: 'bar',
});
mindBodyAPI.GetClients().then(result => {
console.log(result);
// do some stuff with the client
});
- SourceCredentials
- Name: MB_SOURCE_NAME
- Password: MB_SOURCE_PASSWORD
- UserCredentials
- Username: MB_USERNAME
- Password: MB_PASSWORD
mindbody-node-client's People
mindbody-node-client's Issues
License?
I was just checking this out and thinking about contributing, but I didn't see a license. Please add one so I know what my contributions will be licensed as ๐
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.