【问题标题】:ownCloud - Adds user to group by APIownCloud - 通过 API 将用户添加到组
【发布时间】:2015-12-14 18:08:09
【问题描述】:

如何在 Owncloud 中通过 API 将用户添加到群组?

tutorial 中说如下:

http://owncloud.mydomain.com/ocs/v1.php/cloud/users/myUser/groups -d groupid="admin"

但是,它的参数-d不起作用,它发生了以下错误:

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>999</statuscode>
  <message>Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:
</message>
 </meta>
 <data/>
</ocs>

【问题讨论】:

    标签: http-post owncloud


    【解决方案1】:

    ContentType = "application/x-www-form-urlencoded" ,为我工作。

    【讨论】:

      猜你喜欢
      • 2013-08-29
      • 2019-07-16
      • 1970-01-01
      • 2023-03-06
      • 1970-01-01
      • 1970-01-01
      • 2016-08-09
      • 1970-01-01
      • 2023-03-28
      相关资源
      最近更新 更多