x-auth-token in PHP Example

Jyotishgher Astrology
By -
0
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

Post a Comment (0)