Thursday 2 February 2017

fetch data by web api

<script type="text/javascript">

jQuery(document).ready(function(){


$.ajaxSetup({
 headers: {
  'X-Api-Key': '79rytghfvtyfvhbs09oe',
  'X-Store-Id': 38,
 },
}),
$.ajax({
 type: "POST",
 url: "https://webapi.app2food.com/v1/getBlogPost",
 dataType: 'json',
 data : {store_id: 38},
 success:function(responce){
 console.log(responce);



  }

 
 });

});

</script>

No comments:

Post a Comment