c# - How to get a list of pending users for a particular group in Yammer -


i 'm trying list of pending members specific group in yammer, here code itried

string accesstoken = "575-xxxxxxxxxxxxxxx"; string getpendingrequestapiurl = "www.yammer.com/groupname/groupid/get_members?_=1501062735925.json"; httpwebrequest yammerrequest = webrequest.create(getpendingrequestapiurl) 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() httpwebresponse) { encoding e = system.text.encoding.getencoding("utf-8"); streamreader sr = new streamreader(resp.getresponsestream(), e); jsondata = sr.readtoend().tostring(); } 

error received :"the remote server returned error: (406) not acceptable."

i know there no documented api there several undocumented apis working please me api or other workaround pending members list.

i got in touch support team, have confirmed there no public api pending users particular group.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -