我试图从Yammer的特定组中获取待处理成员列表,这里是代码Itried
string accessToken = "575-xxxxxxxxxxxxxxx";
string GetPendingRequestapiUrl = "www.yammer.com/groupName/groupId/get_members?_=1501062735925.json";
HttpWebRequest yammerRequest = WebRequest.Create(GetPendingRequestapiUrl) as HttpWebRequest;
yammerRequest.Method = "GET";
yammerRequest.Host = "www.yammer.com";
yammerRequest.ContentType = "application/json; charset=utf-8; odata=verbose";
yammerRequest.Headers.Add("Authorization", "Bearer" + " " + accessToken);
using (HttpWebResponse resp = yammerRequest.GetResponse() as HttpWebResponse)
{
Encoding e = System.Text.Encoding.GetEncoding("utf-8");
StreamReader sr = new StreamReader(resp.GetResponseStream(), e);
jsondata = sr.ReadToEnd().ToString();
}
收到错误:"远程服务器返回错误:(406)Not Acceptable。"
我知道没有记录的api,但是有几个无证的api正在运行,所以你能用这个api或任何其他解决方法来取悦待定成员列表。
答案 0 :(得分:1)
我与支持团队取得了联系,他们已经确认没有公开的api来吸引特定群体的待定用户。