x-auth-token in PHP Example
<?php
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$('document').ready(function(){
$.ajax
({
type:'GET',
url:'url name here to be passed containg rest api data',
headers: {
'x-auth-token': 'values for here x token to be passed'
},
success:function(html)
{
document.write(JSON.stringify(html));
}
});
//location.replace("https://www.w3schools.com");
});
</script>
Post a Comment
0Comments