I made this POST request to the MOXTRA API to create a new binder:
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1" />
<script type="text/javascript" src="https://www.moxtra.com/api/js/moxtra-latest.js" id="moxtrajs" data-client-id="nJTHiclOwZA" data-app-key="urLRETVepwA"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
</head>
<body>
<p>This is a paragraph.</p>
<button id="btn1">Show Text</button>
<script>
$("button").click(function(){
$.post({
url: "https://api.moxtra.com/me/binders?access_token=vwowMQAAAUV91nUdAACowFVFbXhvZ1ptWlZjRWdiUGVhTTNtN2JIAAAAA1R1YVAzVGhGSTNSOEdsakRkWU53VjE2bkpUSGljbE93WkE",
data: {"name": "My First Binder"},
success: function(ans){
$( "p" ).html( ans);
}
});
});
</script>
</body>
</html>
The access key and client id are all correct but still the code is not working . Can anyone highlight what is wrong