API中的评论者访问级别

你好,

我与一个使用评论者访问级别的用户共享了一个工作表。但是当我用API请求共享时,我得到VIEWER访问级别的响应。

我如何获得评论者访问级别的真实值?也可以设置评论访问级别与API?


谢谢,

迈克尔

最佳答案

答案

I figured it out. Its found in this article https:\/\/stackoverflow.com\/questions\/51479985\/copy-a-sheet-in-smartsheet-using-python-api<\/a><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":320,"name":"API & Developers","url":"https:\/\/community.smartsheet.com\/categories\/api-developers","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":103755,"type":"question","name":"What happens when webhook ongoing verification times out or gets a non-200 response","excerpt":"Hello - Your docs state that after every 100 callbacks is delivered to a webhook callback URL, there will be an ongoing verification request, similar to the original verification request. If that request happens to land when the server on the callback URL is down (which would lead to a timeout) or perhaps is in some kind…","categoryID":320,"dateInserted":"2023-04-07T17:10:08+00:00","dateUpdated":"2023-04-11T09:05:43+00:00","dateLastComment":"2023-04-13T17:11:20+00:00","insertUserID":148352,"insertUser":{"userID":148352,"name":"sgolux","url":"https:\/\/community.smartsheet.com\/profile\/sgolux","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-04-17T14:19:25+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":91566,"lastUserID":148352,"lastUser":{"userID":148352,"name":"sgolux","url":"https:\/\/community.smartsheet.com\/profile\/sgolux","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-04-17T14:19:25+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":5,"countViews":58,"score":null,"hot":3362296288,"url":"https:\/\/community.smartsheet.com\/discussion\/103755\/what-happens-when-webhook-ongoing-verification-times-out-or-gets-a-non-200-response","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/103755\/what-happens-when-webhook-ongoing-verification-times-out-or-gets-a-non-200-response","format":"Rich","lastPost":{"discussionID":103755,"commentID":371670,"name":"Re: What happens when webhook ongoing verification times out or gets a non-200 response","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/371670#Comment_371670","dateInserted":"2023-04-13T17:11:20+00:00","insertUserID":148352,"insertUser":{"userID":148352,"name":"sgolux","url":"https:\/\/community.smartsheet.com\/profile\/sgolux","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-04-17T14:19:25+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"API & Developers","url":"https:\/\/community.smartsheet.com\/categories\/api-developers"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-04-13T13:55:54+00:00","dateAnswered":"2023-04-13T12:45:20+00:00","acceptedAnswers":[{"commentID":371599,"body":"

Hey @sgolux<\/a> <\/p>

If the callback URL is down or does not respond to the callback validation request, then the webhook is disabled immediately. The webhook can be re-enabled with a webhook update. Here's the section in the documentation<\/a> that talks about webhooks. <\/p>

Cheers!<\/p>

Genevieve<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":320,"name":"API & Developers","url":"https:\/\/community.smartsheet.com\/categories\/api-developers","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":103753,"type":"question","name":"What happens when a webhook callback is responded to with a 410 Status Code","excerpt":"Hello, 410 typically means \"Resource Permanently Gone\". And in your docs, I see that if that is the response to a webhook is the 410 status code, that callback will not be retried. But is the webhook disabled at that point? Or will other events going to that callback URL be triggered? The documentation isn't clear on this…","categoryID":320,"dateInserted":"2023-04-07T17:03:18+00:00","dateUpdated":"2023-04-11T09:05:57+00:00","dateLastComment":"2023-04-12T15:44:32+00:00","insertUserID":148352,"insertUser":{"userID":148352,"name":"sgolux","url":"https:\/\/community.smartsheet.com\/profile\/sgolux","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-04-17T14:19:25+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":91566,"lastUserID":91566,"lastUser":{"userID":91566,"name":"Genevieve P.","title":"Community Manager","url":"https:\/\/community.smartsheet.com\/profile\/Genevieve%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/KHY4Y67W0VRX\/nF76D5N9MFB28.png","dateLastActive":"2023-05-03T04:19:56+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":44,"score":null,"hot":3362203070,"url":"https:\/\/community.smartsheet.com\/discussion\/103753\/what-happens-when-a-webhook-callback-is-responded-to-with-a-410-status-code","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/103753\/what-happens-when-a-webhook-callback-is-responded-to-with-a-410-status-code","format":"Rich","lastPost":{"discussionID":103753,"commentID":371420,"name":"Re: What happens when a webhook callback is responded to with a 410 Status Code","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/371420#Comment_371420","dateInserted":"2023-04-12T15:44:32+00:00","insertUserID":91566,"insertUser":{"userID":91566,"name":"Genevieve P.","title":"Community Manager","url":"https:\/\/community.smartsheet.com\/profile\/Genevieve%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/KHY4Y67W0VRX\/nF76D5N9MFB28.png","dateLastActive":"2023-05-03T04:19:56+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"API & Developers","url":"https:\/\/community.smartsheet.com\/categories\/api-developers"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-04-12T15:43:36+00:00","dateAnswered":"2023-04-12T15:41:58+00:00","acceptedAnswers":[{"commentID":371416,"body":"

Hi @sgolux<\/a> <\/p>

Yes, the webhook will be disabled:<\/p>