you can easily get the rating on a Page with Social Data Web Service avaiable
in SharePoint 2010.
An Example I have here -
SocialDataService mySocialDataService = new SocialDataService();
mySocialDataService.Credentials =
System.Net.CredentialCache.DefaultCredentials;
mySocialDataService.Url
= "http://YourSharePoint Site/_vti_bin/socialdataservice.asm";
SocialRatingDetail ratingonPage1 = mySocialDataService.GetRatingOnUrl(ratingonwikiPageURL);
String Rating = ratingonPage1.Rating..ToString();
No comments:
Post a Comment