If I’ve understood your requirements you need to pass method
as a string, then JSON encode the params
object. If so, this should work for you:
$.post('https://liceoeuroamericano.territorio.la/webservices/persona.php', {
method: 'activateUser',
params: JSON.stringify({
auth_key: "123456",
user: "[email]",
active: "[0/1]"
})
}, function(data){
console.log('request completed successfully');
})
1
solved How do I post multiple parameters to a URL