Skip to content

Instantly share code, notes, and snippets.

@ktskumar
Created February 24, 2020 03:42
Show Gist options
  • Save ktskumar/9514f35c278c6fcfb5f6abe64851b767 to your computer and use it in GitHub Desktop.
Save ktskumar/9514f35c278c6fcfb5f6abe64851b767 to your computer and use it in GitHub Desktop.
//Copy and get the getRequest method from url - https://gist.github.com/ktskumar/a9e9df497673e9fd26ead8532b9ff425
getRequest("https://domain.sharepoint.com/sites/name/_api/web?$expand=author").then(function(response) {
var result = JSON.parse(response.responseText);
console.log(result);
alert("Site Auhtor: " + result.Author.Title);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment