Provides SimpleConnect Class to connect users to BackdropCMS,Drupal7,Drupal8,Drupal9 SimpleConnect Module and do authenticated requests.
Goal is to provide a simple way to connect to different Drupal instances and Versions (one ring to rule them all!)
In ES5 ECMAScript 2009 there are no Classes and Promises, SimpleConnect overcomes this using Prototypes and Bluebird Promises.
The Drupal Modules provide you with the same set of Endpoints to simply connect,login and register users.
All Methods return Promises or SimpleConnectException
SC = new SimpleConnect(host); //In ES5 you write: SC.token().then( function(token){ alert(token); },function(error){ alert(error); }); //In ES6 you write: SC.token().then(token=>{ alert(token); },error=>{ alert(error); });
Click here to test the ECMA2009 compatible Javascript Class
SimpleConnect ES5(ECMAScript 2009)
Click here to test the ECMA2015 compatible Javascript Class
SimpleConnect ES6(ECMAScript 2015)
Click here to checkout the SimpleConnect Node Module on Github
SimpleConnect Node Module on Github
Goal is to provide the same set of endpoints for different Drupal instances and Versions (one ring to rule them all!)
GET http://yourhost.com/stage/rest/simpleconnect/token POST http://yourhost.com/stage/rest/simpleconnect/connect X-CSRF-TOKEN POST http://yourhost.com/stage/rest/simpleconnect/login X-CSRF-TOKEN {"username":"youruser","password":"yourpass"} POST http://yourhost.com/stage/rest/simpleconnect/register X-CSRF-TOKEN {"username":"youruser","password":"yourpass","mail":"yourmail@yourhost.com"} POST http://yourhost.com/stage/rest/simpleconnect/logout X-CSRF-TOKENUse these module to provide flood protection!!! flood_control
Click here to download SimpleConnect for Backdrop CMS
Click here to download SimpleConnect for Drupal7
Click here to download SimpleConnect for Drupal8
Click here to download SimpleConnect for Drupal9