Repository navigation
feat: add canvases.getContent method - #1664
Merged
Merged
Conversation
Adds the canvases.getContent Web API method to the sync and async clients. The request takes canvas_id and an optional content_type of html or markdown, and the response returns the canvas content. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1664 +/- ##
============================================
+ Coverage 72.98% 73.20% +0.22%
- Complexity 4630 4646 +16
============================================
Files 486 486
Lines 14632 14641 +9
Branches 1524 1524
============================================
+ Hits 10679 10718 +39
+ Misses 3049 3018 -31
- Partials 904 905 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
zimeg
commented
Oct 28, 2026
zimeg
left a comment
Member
Author
There was a problem hiding this comment.
☕ A note for reviewers that caught me off guard - TIL!
Comment on lines
1555
to
1566
| CanvasesAccessSetResponse canvasesAccessSet(CanvasesAccessSetRequest req) throws IOException, SlackApiException; | ||
|
|
||
| CanvasesAccessSetResponse canvasesAccessSet( | ||
| RequestConfigurator<CanvasesAccessSetRequest.CanvasesAccessSetRequestBuilder> req) | ||
| throws IOException, SlackApiException; | ||
|
|
||
| CanvasesAccessDeleteResponse canvasesAccessDelete(CanvasesAccessDeleteRequest req) | ||
| throws IOException, SlackApiException; | ||
|
|
||
| CanvasesAccessDeleteResponse canvasesAccessDelete( | ||
| RequestConfigurator<CanvasesAccessDeleteRequest.CanvasesAccessDeleteRequestBuilder> req) | ||
| throws IOException, SlackApiException; |
Member
Author
There was a problem hiding this comment.
🗳️ note: This matches the import order above so leaving it as is!
Member
Author
|
@mwbrooks Thanks so much for the review! 🙏 ✨ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds the
canvases.getContentmethod to the Web API client.canvasesGetContenttakes a requiredcanvasIdand an optionalcontentTypeofhtmlormarkdown(the API defaults to markdown), on both the sync and async clients.CanvasesGetContentResponseaddscontent, the whole canvas as one string.Testing
canvases:readscope, callslack.methods(token).canvasesGetContent(r -> r.canvasId("F0123456789"))on a canvas the app can read and confirmcontentcomes back as markdown..contentType("html")and confirmcontentcomes back as HTML.test_with_remote_apis.methods.canvases_TestwithSLACK_SDK_TEST_BOT_TOKENset. It hasn't been run against a live workspace yet.Category (place an
xin each of the[ ])Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.
🤖 Generated with Claude Code