Last active
March 2, 2020 07:22
-
-
Save ktskumar/8a45f0c118ee2b6f5fb4ddcc6774fde2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Check whether the current user follows the SharePoint site https://contoso.sharepoint.com/sites/demo | |
function isFollow(url) { | |
getRequest(location.origin + "/_vti_bin/homeapi.ashx/sites/followed/isFollowed?url=" + url).then(function(output) { | |
console.log(output.response); | |
}); | |
} | |
isFollow("https://contoso.sharepoint.com/sites/demo"); | |
//getRequest method reference | |
//https://gist.github.com/ktskumar/a9e9df497673e9fd26ead8532b9ff425 | |
//Author: Shantha Kumar T | |
//Web: https://www.ktskumar.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment