... I read the above tips but there is not enough specific information for me to solve it. I use the key and secret that rdrop2 provides, store it and call it. It would be very helpful if someone can provide code in R to solve this, or provide more information how to request 'offline access' as suggested. ...
Hi TessaP,
I am not familiar with \"rdrop2\", but since you are posting your question now, seems it's still not updated and refresh token isn't supported there. Can you clarify what kind of \"specific information\" do you need? 🤔 In above posts, all needed for refresh token support to be implemented, is available. About \"how to request offline access\", if you used long lived token before, most probably you have done already everything needed and have received 'offline access'. 😉 You have to just find out your received already refresh token and keep it for later use. In addition you have to implement some code that initiate refresh when needed, as described above (that's what missing). Actually, it's a single HTTPS call. If you need more info about how to invoke web calls, take a look on 'httr' documentation (it's a 'curl' wrapper actually).
Hope this gives direction.
Add: The problem is that 'rdrop2' launches default authentication only. By default Dropbox gives short lived access token. All that need fix is here. Try play with 'query_authorize_extra' parameter of 'oauth2.0_token()' (according to Dropbox documentation for /oauth2/authorize).
","body@stringLength":"2670","rawBody":"wrote: ... I read the above tips but there is not enough specific information for me to solve it. I use the key and secret that rdrop2 provides, store it and call it. It would be very helpful if someone can provide code in R to solve this, or provide more information how to request 'offline access' as suggested. ...
Hi
I am not familiar with \"rdrop2\", but since you are posting your question now, seems it's still not updated and refresh token isn't supported there. Can you clarify what kind of \"specific information\" do you need? 🤔 In above posts, all needed for refresh token support to be implemented, is available. About \"how to request offline access\", if you used long lived token before, most probably you have done already everything needed and have received 'offline access'. 😉 You have to just find out your received already refresh token and keep it for later use. In addition you have to implement some code that initiate refresh when needed, as described above (that's what missing). Actually, it's a single HTTPS call. If you need more info about how to invoke web calls, take a look on 'httr' documentation (it's a 'curl' wrapper actually).
Hope this gives direction.
Add: The problem is that 'rdrop2' launches default authentication only. By default Dropbox gives short lived access token. All that need fix is here. Try play with 'query_authorize_extra' parameter of 'oauth2.0_token()' (according to Dropbox documentation for /oauth2/authorize).
","author":{"__ref":"User:user:422790"},"isEscalated":null,"postTime":"2022-04-09T13:39:53.355-07:00","solution":false,"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"kudosSumWeight":0,"repliesCount":1,"images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:589574_2"},"latestVersion":null,"metrics":{"__typename":"MessageMetrics","views":2888},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"Revision:revision:589852_1":{"__typename":"Revision","id":"revision:589852_1","lastEditTime":"2022-04-11T07:41:16.737-07:00"},"QueryVariables:ReplyList:message:589852:1":{"__typename":"QueryVariables","id":"ReplyList:message:589852:1","value":{"id":"message:589852","first":10,"sorts":{"postTime":{"direction":"ASC"}},"repliesFirst":3,"repliesFirstDepthThree":1,"repliesSorts":{"postTime":{"direction":"ASC"}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":true,"useBody":true,"useKudosCount":true,"useTimeToRead":false,"useMedia":false,"useReadOnlyIcon":false,"useRepliesCount":true,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":false,"attachmentsFirst":5,"useTags":false,"useNodeAncestors":false,"useUserHoverCard":false,"useNodeHoverCard":false,"useModerationStatus":true,"usePreviewSubjectModal":false,"useMessageStatus":true}},"ROOT_MUTATION":{"__typename":"Mutation"},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1744039689300":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1744039689300","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1744039689300":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1744039689300","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1744039689300":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1744039689300","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved","topicAlreadySolvedErrorTitle":"Solution Already Exists","topicAlreadySolvedErrorDesc":"Refresh the browser to view the existing solution"},"localOverride":false},"CachedAsset:text:en_US-components/messages/ThreadedReplyList-1744039689300":{"__typename":"CachedAsset","id":"text:en_US-components/messages/ThreadedReplyList-1744039689300","value":{"title":"{count, plural, one{# Reply} other{# Replies}}","title@board:BLOG":"{count, plural, one{# Comment} other{# Comments}}","title@board:TKB":"{count, plural, one{# Comment} other{# Comments}}","title@board:IDEA":"{count, plural, one{# Comment} other{# Comments}}","title@board:OCCASION":"{count, plural, one{# Comment} other{# Comments}}","noRepliesTitle":"No Replies","noRepliesTitle@board:BLOG":"No Comments","noRepliesTitle@board:TKB":"No Comments","noRepliesTitle@board:IDEA":"No Comments","noRepliesTitle@board:OCCASION":"No Comments","noRepliesDescription":"Be the first to reply","noRepliesDescription@board:BLOG":"Be the first to comment","noRepliesDescription@board:TKB":"Be the first to comment","noRepliesDescription@board:IDEA":"Be the first to comment","noRepliesDescription@board:OCCASION":"Be the first to comment","messageReadOnlyAlert:BLOG":"Comments have been turned off for this post","messageReadOnlyAlert:TKB":"Comments have been turned off for this article","messageReadOnlyAlert:IDEA":"Comments have been turned off for this idea","messageReadOnlyAlert:FORUM":"Replies have been turned off for this discussion","messageReadOnlyAlert:OCCASION":"Comments have been turned off for this event"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/nodes/NodeAvatar-1744039689300":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/nodes/NodeAvatar-1744039689300","value":{"altTitle":"Node avatar for {nodeTitle}"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/nodes/NodeDescription-1744039689300":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/nodes/NodeDescription-1744039689300","value":{"description":"{description}"},"localOverride":false},"CachedAsset:text:en_US-components/nodes/NodeTopicsCount-1744039689300":{"__typename":"CachedAsset","id":"text:en_US-components/nodes/NodeTopicsCount-1744039689300","value":{"topicCount":"{count}","topicCountWithNeutralLabel@board:OCCASION":"{count, plural, one{# Event} other{# Events}}","topicCountWithNeutralLabel":"{count, plural, one{# Post} other{# Posts}}","topicCount@board:FORUM":"{count, plural, one{# Post} other{# Posts}}","topicCount@board:BLOG":"{count, plural, one{# Post} other{# Posts}}","topicCount@board:CONTEST":"{count, plural, one{# Entry} other{# Entries}}","topicCount@board:GROUP":"{count, plural, one{# Topic} other{# Topics}}","topicCount@board:IDEA":"{count, plural, one{# Idea} other{# Ideas}}","topicCount@board:QANDA":"{count, plural, one{# Question} other{# Questions}}","topicCount@board:TKB":"{count, plural, one{# Article} other{# Articles}}","topicCount@board:OCCASION":"{count, plural, one{# Event} other{# Events}}","title":"{count, plural,one {