Skip to content

Instantly share code, notes, and snippets.

@zph
Created January 10, 2013 02:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zph/4498847 to your computer and use it in GitHub Desktop.
Save zph/4498847 to your computer and use it in GitHub Desktop.
# Variables to replace in urls below
username = 'your_username_here_without_at_symbol'
key = 'public_key_from_dev'
application_token = 'very_long_application_token'
# This needs to be parsed as JSON for all of the 'id' fields. These are the board_hashes
url_for_board_hashes = "https://api.trello.com/1/members/#{username}/boards?&key=#{key}&token=#{application_token}"
#
# Loop over each board_hash and call the following url
url_for_individual_board_json = "https://api.trello.com/1/boards/#{board_hash}?actions=all&actions_limit=1000&cards=all&lists=all&members=all&member_fields=all&checklists=all&fields=all&key=#{key}&token=#{application_token}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment