论坛 API
| 所有论坛 GET /portal/[PORTALID]/projects/[PROJECTID]/forums/ |
| 添加论坛 POST /portal/[PORTALID]/projects/[PROJECTID]/forums/ |
| 更新论坛 POST /portal/[PORTALID]/projects/[PROJECTID]/forums/[FORUMID]/ |
| 删除论坛 DELETE /portal/[PORTALID]/projects/[PROJECTID]/forums/[FORUMID]/ |
| 所有论坛类别 GET /portal/[PORTALID]/projects/[PROJECTID]/categories/ |
| 添加类别 POST /portal/[PORTALID]/projects/[PROJECTID]/categories/ |
| 所有论坛评论 GET /portal/[PORTALID]/projects/[PROJECTID]/forums/[FORUMID]/comments/ |
| 添加论坛评论 POST /portal/[PORTALID]/projects/[PROJECTID]/forums/[FORUMID]/comments/ |
所有论坛
GET /portal/[PORTALID]/projects/[PROJECTID]/forums/
获取给定项目中的所有论坛。
请求参数
| 索引 | 整数型 | 论坛的索引号。 |
| 范围 | 整数型 | 论坛的范围。 |
| category_id | 长整型 | 项目类别的 ID。 |
样本响应
Status: 200 Success Content Type: application/json;charset=utf-8
{
"forums": [{
"id": 170876000001825013,
"name": "ERP Sysytem",
"content": "Enterprise resource planning (ERP) integrates internal and external management
information across an entire organization, embracing finance/accounting, manufacturing,
sales and service, etc. ERP systems automate this activity with an integrated software application.",
"is_sticky_post": false,
"is_announcement_post": false,
"posted_by": "2060758",
"posted_person": "Patricia Boyle",
"post_date": "05-09-2014 03:52 PM",
"post_date_long": 1399659763852,
"link": {
"self": {
"url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/
170876000000147021/forums/170876000001825013/"
}
}
}]
}添加论坛
POST /portal/[PORTALID]/projects/[PROJECTID]/forums/
添加论坛帖子。
请求参数
| 名称* | 字符串 | 论坛帖子的名称。 |
| 内容* | 字符串 | 论坛帖子的内容。 |
| category_id* | 长整型 | 项目类别的 ID。 |
| 上传文件 | 文件 | 论坛中要上传的文件。 |
| 通知 | 字符串 | 对于多个用户,用户 ID 必须用逗号分隔。 |
样本响应
Status: 201 Created Content Type: application/json;charset=utf-8
{
"forums": [{
"id": 170876000001849089,
"name": "Want ideas for Credit Check redesign?",
"content": "Team,
Credit Check",
"is_sticky_post": false,
"is_announcement_post": false,
"posted_by": "2060758",
"posted_person": "Patricia Boyle",
"post_date": "05-26-2014 04:19 PM",
"post_date_long": 1401130162904,
"link": {
"self": {
"url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/
170876000000147021/forums/170876000001849089/"
}
}
}]
}更新论坛
POST /portal/[PORTALID]/projects/[PROJECTID]/forums/[FORUMID]/
更新论坛帖子。
请求参数
| 名称* | 字符串 | 论坛帖子的名称。 |
| 内容* | 字符串 | 论坛帖子的内容。 |
| category_id* | 长整型 | 项目类别的 ID。 |
| 上传文件 | 文件 | 论坛中要上传的文件。 |
样本响应
Status: 200 Success Content Type: application/json;charset=utf-8
{
"forums": [{
"id": 170876000001849089,
"name": " Credit Check ",
"content": "Want ideas for Credit Check redesign.",
"is_sticky_post": false,
"is_announcement_post": false,
"posted_by": "2060758",
"posted_person": "Patricia Boyle",
"post_date": "05-26-2014 04:19 PM",
"post_date_long": 1401130162904,
"link": {
"self": {
"url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/
170876000000147021/forums/170876000001849089/"
}
}
}]
}删除论坛
DELETE /portal/[PORTALID]/projects/[PROJECTID]/forums/[FORUMID]/
删除论坛帖子。
样本响应
Status: 200 Success Content Type: application/json;charset=utf-8
{
"response": "Forum Deleted Successfully"
}所有论坛类别
GET /portal/[PORTALID]/projects/[PROJECTID]/categories/
获取所有论坛类别。
样本响应
Status: 200 Success Content Type: application/json;charset=utf-8
{
"categories": [{
"id": 170876000000147025,
"name": "ERP Phase III"
}]
}添加类别
POST /portal/[PORTALID]/projects/[PROJECTID]/categories/
添加论坛类别。
请求参数
| 名称* | 字符串 | 论坛类别的名称。 |
样本响应
Status: 201 Created Content Type: application/json;charset=utf-8
{
"categories": [{
"id": 170876000001849101,
"name": "Inventory"
}]
}所有论坛评论
GET /portal/[PORTALID]/projects/[PROJECTID]/forums/[FORUMID]/comments/
获取所有论坛评论。
请求参数
| 索引 | 字符串 | 论坛评论的索引号。 |
| 范围 | 字符串 | 论坛评论的范围。 |
样本响应
Status: 200 Success Content Type: application/json;charset=utf-8
{
"comments": [{
"id": 170876000000505005,
"content": "Enterprise resource planning (ERP) integrates internal and external
management information across an entire organization, embracing
finance/accounting, manufacturing, sales and service, etc. ERP systems
automate this activity",
"posted_by": "2060758",
"posted_person": "Patricia Boyle",
"post_date": "11-10-2011 10:40 PM",
"post_date_long": 1320973827168
}]
}添加论坛评论
POST /portal/[PORTALID]/projects/[PROJECTID]/forums/[FORUMID]/comments/
添加论坛评论。
请求参数
| 内容* | 字符串 | 论坛评论的内容。 |
样本响应
Status: 201 Created Content Type: application/json;charset=utf-8
{
"comments": [{
"id": 170876000001849115,
"content": "To be uploaded in the new task link.",
"posted_by": "2060758",
"posted_person": "Patricia Boyle",
"post_date": "05-26-2014 04:31 PM",
"post_date_long": 1401130914687
}]
}