1

使用 Active Collab API,是否可以代表其他用户创建评论?就像其他一切都可以通过设置created_by_id.

使用:

POST http://AC-SERVER/api/v1/comments/discussion/30 HTTP/1.1
{"body":"TEST","created_by_id":5,"updated_by_id":5}

创建者的设置不正确(对于所有其他数据类型,它运行良好):

{"single":
  {"id":81,
   "class":"Comment",
   "url_path":"\/comments\/81",
   "attachments":[],
   "is_trashed":false,
   "trashed_on":null,
   "trashed_by_id":0,
   "parent_type":"Discussion",
   "parent_id":30,
   "body":"TEST",
   "body_formatted":"TEST",
   "body_plain_text":"TEST",
   "created_on":1474039019,
   "created_by_id":1,
   "updated_on":1474039019,
   "updated_by_id":5
  }
 }

"created_by_id":1

4

0 回答 0