【问题标题】:Yammer deny request programmaticallyYammer 以编程方式拒绝请求
【发布时间】:2017-08-02 06:10:33
【问题描述】:

有没有办法以编程方式拒绝待处理的请求,我没有看到任何 api,所以任何 yammer 专家都可以提供帮助?

从 Chrome 开发人员工具中,我看到这是 Yammer UI 发送的请求。

https://www.yammer.com/****/join_requests/968249/deny

我们使用过的代码:

WebRequest request = WebRequest.Create("https://www.yammer.com/****/join_requests/968249/deny");
                request.Method = "POST";
                string postData = "userId=" + userId;               
                byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(postData);

                // Set the ContentType property of the WebRequest.
                request.ContentType = "application/x-www-form-urlencoded";

                // Set the ContentLength property of the WebRequest.
                request.ContentLength = byteArray.Length;

                request.Headers.Add(HttpRequestHeader.Authorization, yammerToken);

                // Get the request stream.
                Stream dataStream = request.GetRequestStream();
                // Write the data to the request stream.
                dataStream.Write(byteArray, 0, byteArray.Length);
                // Close the Stream object.
                dataStream.Close();

                // Get the response.
                WebResponse response = request.GetResponse();

Error: 404 not found, it obv the api is not there so any solution

请找到图片

【问题讨论】:

  • 我认为您的问题可能需要更具体一点。您是否有一些与 Yammer 集成的现有自动化,或者您只是从头开始?实际要求是什么?是您有大量待处理的请求并且您想一次性拒绝它们,还是您需要在请求发出时立即拒绝它们的东西?您有一个不希望任何人能够加入的 Yammer 组,这似乎很奇怪!
  • 嗨戴夫,我想我的问题是不言自明的,我在问一些关于编程的问题,Yammer 中有很多 api,比如yammer.com/api/v1/messages.json,它们可以完成获取消息的工作,但我的情况是就像我想拒绝用户发出的邀请请求并且没有 api 一样,所以我想以某种方式实现功能仅供参考:我正在用 C# 编程

标签: c# yammer


【解决方案1】:

不支持执行此操作的 API。

【讨论】:

  • 嗨,Brian Lyttle,我知道没有 api,我在问解决这个问题的方法是什么,我需要一些方法来实现这一点..
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2010-09-23
  • 1970-01-01
  • 1970-01-01
  • 2018-06-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多