indaba-js-sdk
If you need to interact with lydian or mixolydian in JavaScript, use this.
Node.js Installation
npm install --save git+ssh://git@github.com:indabamusic/indaba-js-sdk.git
Node.js Usage
As a client
var indaba = lydianEndpoint: 'https://lydian.indabamusic.com' // optional;
Providing a login endpoint
var indaba = ;var app = ;app;app;
Check index.js for more stuff.
Browser Usage
Undocumented, see admin project for examples
Testing
To test login, you must set client id, client secret, username and password in your ENV.
TEST_CLIENT='' \
TEST_SECRET='' \
TEST_USERNAME='' \
TEST_PASSWORD='' \
npm test
Fetch API
Low level fetch API makes HTTP requests. No funny business.
- Namespaced
- A special option
all: true
can be used to fetch all pages.
// opportunity readindabaopportunityindabaopportunityindabaopportunityindabaopportunity // opportunity writeindabaopportunityindabaopportunity // submission readindabasubmissionindabasubmissionindabasubmissionindabasubmission // submission writeindabasubmissionindabasubmissionindabasubmission // user readindabauserindabauserindabauserindabauserindabauserindabauser // user writeindabauserindabauserindabauser // timed comments readindabatimedCommentsindabatimedCommentsindabatimedComments // timed comments writeindabatimedCommentsindabatimedComments // whoamiindaba