Skip to content

Conversation

@TheBrockEllis
Copy link
Contributor

This wrapper has almost everything that I need except this part: being able to delete a card via the API. I've added a delete() in the Object class right below the get() method and it works like a charm.

My question is- what should be returned once the card is deleted? I've currently got it returning true and it seems to work, but I'm not sure if that's the best thing to use in this situation.

@ashwinks
Copy link
Owner

ashwinks commented Oct 7, 2015

What comes back from the API when you call delete?

@TheBrockEllis
Copy link
Contributor Author

When I log out the response, it looks like an associative array with one key and an empty value.

error_log( print_r($response, true) );

produces

Array\n(\n [_value] => \n)\n

@ashwinks
Copy link
Owner

ashwinks commented Oct 7, 2015

Ah looks like it returns nothing. Returning true in your case make sense, I'll do the merge. Thanks!

@TheBrockEllis
Copy link
Contributor Author

Hi there, @ashwinks. Is there anything else I can do here to help out?

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

Successfully merging this pull request may close these issues.

2 participants