I am trying to collect a token from a url by giving it the parameters ClientID and ClientSecret using a POST method.
This is my code:
jQuery(function(){
$.ajax({
"type":"POST",
"url":"*******",
"data":{clientID:"*****",clientSecret:"*****"},
success:function(datos){
console.log("Funciona")
},
"dataType": "json"
})
})
However, when I run it I get error 405. Can anyone give me a hand?