Can somebody help me to access facebook SCIM api in asp.net application for custom integration -
public string getuserdata(string access_token, string scimurl) { string endpoint= scimurl; string userdatainjson = getpageddata(access_token, endpoint); return userdatainjson; }private string buildheader(string access_token) { return "authorization:bearer " + access_token; }public string getpageddata(string access_token, string endpoint) { httpwebrequest http = (httpwebrequest)httpwebrequest.create(endpoint); string header = buildheader(access_token); http.headers.add(header); httpwebresponse response = (httpwebresponse)http.getresponse(); string responsejson = ""; using (streamreader sr = new streamreader(response.getresponsestream())) { responsejson = sr.readtoend(); } return responsejson; }
this code using access facebook scim api user data facebook workplace, not able access scim api
Comments
Post a Comment