MyanmarAPI/maepaysoh-javascript-sdk

Name: maepaysoh-javascript-sdk

Owner: Myanmar API

Description: Javascript SDK to access MaePaySoh API

Created: 2015-09-01 17:37:19.0

Updated: 2015-09-14 10:28:23.0

Pushed: 2015-09-07 06:27:44.0

Homepage: null

Size: 114

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

MaePaySoh Javascript SDK

Javascript SDK to access MaePaySoh API

Include the SDK <script src="MaePaySoh.js"></script>

Call the endpoint like example below

mps=MaePaySoh('6ca7ce5f2112c6733d295991dc55649aa0610ae5'); // pass API Key here
request({
            endpoint:'candidate/list',
            onComplete:function(req){
                console.log(req.srcElement.response);
            }
        });

You can pass options to request method with parameters below


endpoint:'candidate/list', //endpoint path
onComplete:function(req){
    // your callback function here
    },
params:{
  //put parameters that needed by endpoint here
  _with:'party',
  gender:'male'
}

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.