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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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'
}