Getting started Trello API Rails

Working in this Trello ruby API, had to make card from contact to trello. First get the developer public key  then get the member token. Just to get started this is only for creating trello cards just to get started.

Add to gemfile

gem 'ruby-trello', '1.5.1'


def create_trello_card
Trello.configure do |config|
config.developer_public_key = ENV["trello_developer_public_key"]
config.member_token = ENV["trello_member_token"]
end
list_id = Trello::Board.find(ENV["trello_board"]).lists.first.id

Trello::Card.create(
name: cardName,
desc: cardDesc,
list_id: list_id
)
end

Ruby-trello