Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Office 365 Contacts REST API not woking from SharePoint using jQuery

$
0
0

Dear All,

I have tried to get user contact using Jquery but it throws error function.

Please help to fix it. below is my code

$(document).ready(function() {
    $.ajax({
   url: "https://outlook.office365.com/api/v1.0/users/xxx.xxxx@xyz.com",
  type: "GET",
     headers: { "ACCEPT": "application/json;odata=verbose" },
     success: function(data){
    },
    error:  function(){
      alert("Failed to get data");
    }
  });


 });


Thanks and Regards Jenkins


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>