Skip to content

Add sharing argument and deprecate world_readable. Fixes #332 #410

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

Merged
merged 5 commits into from
Jan 19, 2016

Conversation

cpsievert
Copy link
Collaborator

No description provided.

url <- paste0(get_domain("v2"), "files/", verify("username"), ":", plot_id)
bod <- list(share_key_enabled = TRUE)
con2 <- httr::PATCH(url, plotly_headers("v2"), body = bod, encode = "json")
con$url <- paste0(con$url, "?share_key=", content(con2)$share_key)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chriddyp is there anything else from the PATCH response that you'd like to return?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so!

@chriddyp
Copy link
Member

looks good to me! @delekru and I have been trying to come up with better names for "secret". Some options include: "hidden" or "unlisted". I think "unlisted" explains the behaviour the best. Thoughts?

@cpsievert
Copy link
Collaborator Author

Thanks! No strong preference. I think I prefer 'unlisted'...how about 'key'?

@chriddyp
Copy link
Member

But my friend prefers "hidden", so I'm open.

I think the "key" thing is confusing to folks that aren't developers

@cpsievert
Copy link
Collaborator Author

OK, go ahead with 'hidden'? After thinking about more, I think I like hidden too.

cpsievert added a commit that referenced this pull request Jan 19, 2016
Add sharing argument and deprecate world_readable. Fixes #332
@cpsievert cpsievert merged commit 1530880 into master Jan 19, 2016
@cpsievert cpsievert deleted the feature/sharing branch January 28, 2016 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants