I am just starting into the Trello API so I am certain I have done something basic wrong. I want to get a list of the Boards for my account, so I am doing a GET request. I pass my API Key and the token from authorizing on my account. I am doing this in PHP with no special libraries in use. My code looks like this:
$ch = curl_init('https://api.trello.com/1/members/NY_USERNAME/boards');
$trello_params = array('token' => 'MY_TOKEN', 'key' => 'MY_KEY');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $trello_params);
$ch_return = curl_exec($ch);
echo 'Returned: ' . $ch_return;All I ever get back is "invalid key." Please help!