View source: R/delete_resource.R
delete_resource | R Documentation |
Delete resources via Trello API.
delete_resource(
resource,
id = NULL,
path = NULL,
token = NULL,
on.error = c("stop", "warn", "message"),
verbose = FALSE,
handle = NULL,
encode,
response
)
resource, id |
Resource name (eg. |
path |
Path (optional). |
token |
An object of class
|
on.error |
Behavior when HTTP status >= 300, defaults to |
verbose |
Whether to pass |
handle |
Passed to |
encode, response |
Deprecated. |
See Trello API reference for more info about DELETE requests.
See response
.
## Not run:
# Get token with write access
key = Sys.getenv("MY_TRELLO_KEY")
secret = Sys.getenv("MY_TRELLO_SECRET")
token = get_token("my_app", key = key, secret = secret,
scope = c("read", "write"))
# Get board ID
url = "Your board URL"
bid = get_id_board(url, token)
# Get cards and extract ID of the first one
cid = get_board_cards(bid, token)$id[1]
# Delete it
delete_resource(resource = "card", id = cid, token = token)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.