Skip to contents

Get ID of a resource.

Usage

get_id_board(url, token = NULL)

get_id_card(url, token = NULL)

Arguments

url

Complete url, short url or just the url ID part of a Trello board

token

Secure token, see get_token()

Examples

# Get Trello Development Roadmap board ID
url = "https://trello.com/b/nC8QJJoZ/trello-development-roadmap"
tdr_id = get_id_board(url)
#> GET: https://api.trello.com/1/board/nC8QJJoZ?fields=name&limit=100
#> 
  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |======================================================================| 100%
#> OK (HTTP 200).

# Also works:
url = "nC8QJJoZ"
tdr_id = get_id_board(url)
#> GET: https://api.trello.com/1/board/nC8QJJoZ?fields=name&limit=100
#> 
  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |======================================================================| 100%
#> OK (HTTP 200).