Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot put" for Laravel app #78

Open
sysq0 opened this issue Aug 7, 2019 · 0 comments
Open

"Cannot put" for Laravel app #78

sysq0 opened this issue Aug 7, 2019 · 0 comments

Comments

@sysq0
Copy link

sysq0 commented Aug 7, 2019

Hi there,

I want to update a checklist item with :

$client = new Client();
            $client->authenticate(env('TRELLO_API_KEY'), env('TRELLO_API_TOKEN'), Client::AUTH_URL_CLIENT_ID);

$card = $client->cards()->show($report_category->trello_card_id);
$checklistId = $card['idChecklists'][0];
$checklists = $client->card()->checklists()->all($card['id']);
$checkItemId = $checklists[0]['checkItems'][0]['id'];

$checkItem = $client->card()->checklists()->updateItem($card['id'], $checklistId, $checkItemId,
        [
               'state' => 'complete'
         ]
 );

But I want to execute this, an error appears :
Trello \ Exception \ RuntimeException (404)

Cannot PUT /1/cards/5d4a20142da4a07bbc21b99a/checklists/5d4a2015dff67c16ccac8d64/checkItem/5d4ab33e48e8396343770dc9?key=***&token=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant