gpt4 book ai didi

podio - 跑道 API 端点如何更新 View ?

转载 作者:行者123 更新时间:2023-12-05 00:54:11 26 4
gpt4 key购买 nike

当我查看“更新 View ”端点的文档时,可用的信息很少(请参阅 https://developers.podio.com/doc/views/update-view-20069949 )。当前文档指出端点接受一个参数,
view_id 但似乎 API 使用者也希望能够提供额外的细节来修改 View 的定义。

是否有任何示例代码可用于演示如何使用此端点?

最佳答案

Podio Ruby 客户端提供使用此端点的代码。如果你看看here您可以看到端点期望在指定新 View 定义的 PUT 中提供一个 JSON 正文。在 Ruby 代码中,它被称为“属性”,这与其他 View 操作的 API 文档一致。下面是一个 HTTP 请求示例:

PUT /view/31011898 HTTP/1.1
Host: api.podio.com
Authorization: OAuth2 your_oauth2_token_here
Content-Type: application/json
Cache-Control: no-cache

{
"layout": "table",
"name": "SPAM",
"rights": [
"delete",
"view",
"update"
],
"fields": {},
"sort_desc": false,
"created_by": {
"user_id": <creator user id>,
"space_id": null,
"image": {
"hosted_by": "podio",
"hosted_by_humanized_name": "Podio",
"thumbnail_link": "https://d2cmuesa4snpwn.cloudfront.net/public/",
"link": "https://d2cmuesa4snpwn.cloudfront.net/public/",
"file_id": <some file id>,
"external_file_id": null,
"link_target": "_blank"
},
"profile_id": <profile id>,
"org_id": null,
"link": "https://podio.com/users/<user id>",
"avatar": <avatar id>,
"type": "user",
"last_seen_on": "2016-10-27 19:58:22",
"name": "Podio TESTER"
},
"sort_by": "created_on",
"items": 0,
"created_on": "2016-10-27 19:58:26",
"private": true,
"filters": [],
"filter_id": 31011898,
"groupings": {},
"type": "private",
"view_id": 31011898,
"grouping": {}
}

关于podio - 跑道 API 端点如何更新 View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40292597/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com