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

Add delete method to Object class #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add delete method to Object class #5

wants to merge 1 commit into from

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