Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add thumbnail endpoints #284

Open
tdstein opened this issue Sep 11, 2024 · 0 comments
Open

Add thumbnail endpoints #284

tdstein opened this issue Sep 11, 2024 · 0 comments
Labels
enhancement New feature or request sdk
Milestone

Comments

@tdstein
Copy link
Collaborator

tdstein commented Sep 11, 2024

Content Thumbnail API

v0.6.0 Proposal

from posit import connect

client = connect.Client()
content = client.content.get(...)

# GET https://connect.company.com/content/{guid}/__thumbnail__
# Cache the thumbnail
thumbnail = content.thumbnail

# PUT /v1/content/{guid}/thumbnail
thumbnail = content.create_thumbnail(...)

# Remove the cached thumbnail.
# The next get operation reads from the server
content.reset_thumbnail()

# Same as....
# >>> content.reset_thumbnail()
# >>> thumbnail = content.thumbnail
thumbnail = content.reload_thumbnail()

# DELETE /v1/content/{guid}/thumbnail
thumbnail.destroy()
@github-actions github-actions bot added the sdk label Sep 11, 2024
@tdstein tdstein added enhancement New feature or request sdk and removed sdk labels Sep 11, 2024
@tdstein tdstein added this to the 0.6.0 milestone Sep 25, 2024
@tdstein tdstein modified the milestones: 0.6.0, 0.7.0 Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sdk
Projects
None yet
Development

No branches or pull requests

1 participant