Kuv twb tias koj tsis mus ua hauj lwm nrog cov SharePoint 2013 Nrhiav API ntawm so li thawj zaug. Kuv xav mus nrhiav neeg, tsis tau muaj ntaub ntawv. Lub ntsiab kev kawm ntawm no yog tias koj thov qhia cov kev pab ntawm nws cov GUID (los yog tsawg kawg yog qhov no). Cov nram qab no jQuery snippet qhia li cas:
loadExpertsAsync: muaj nuj nqi() { jQuery.support.cors = tseeb; $.ajax({ url: qhov no.CreateFullApiUrl() + "?querytext = 'portals'&sourceid = 'b09a7990-05ea-4af9-81ef-edfab16c4e31'" + "&selectproperties ='LinkedInProfileUrl,GoogleCirclesProfileUrl,BALargeProfilePictureUrls,BAGridPictures,WorkEmail,Kev txawj ntse,AboutMe,Nyiam,JobTitle,PastProjects,PictureURL,PreferredName,TwitterHandle,LinkedInProfileUrl,PreferredName,GoogleCirclesProfileUrl'" + "&rowlimit = 99", txujci: "TXAIS", headers: { "Txais": "daim ntawv thov/json; odata = verbose" }, cache: tsis tseeb, zoo: muaj nuj nqi (ntog) {
Hauv kuv tsev neeg, Kuv tab tom khiav API tiv thaiv SharePoint hauv internet. Tau lub GUID, Kuv raws li cov kauj ruam:
- Mus saib hauv qhov chaw SharePoint admin
- Xaiv "nrhiav" los ntawm lub sab laug tes navigation
- Xaiv "Hwj tshwm sim los"
- Xaiv "Cov neeg hauv zos tau"
- Saib qhov URL.
Kuv qhov URL ntsia ib yam dab tsi zoo li:
Lub sourceid parameter yog dab tsi ua haujlwm rau kuv.
(Kuv to taub hais tias cov sourceid tej zaum yeej yuav ib tug tsi tshaj plaws lawm nrog SP, but I’ll always check anyway 🙂 ).
</kawg>
Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin