I\'m using IBM worklight 6.1 for my mobile app project. My question is how to send post values in adapter?
function getUsername(userAlias,locale) {
path = \"
Your question does not specify what is NOT working for you... please add more details.
You should also read about HTTP adapters.
More:
Since your question is very dull on details,
The below simple POST
example is based on this POST method example from W3C Schools.
Adapter XML:
PostExample
PostExample
http
www.w3schools.com
80
Adapter implementation:
function sendParams() {
path = "tags/demo_form_method_post.asp";
var input = {
method : 'post',
path: path,
parameters: {fname: 'idan', lname: 'adar' }
};
return WL.Server.invokeHttp(input);
}