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 release numbers #35

Closed
abv opened this Issue Dec 21, 2011 · 4 comments

Comments

Projects
None yet
3 participants
@abv

abv commented Dec 21, 2011

This PHP can provision numbers, but I don't see any way to release numbers with it, even though the ability to release numbers is supported by Twilio's REST API (http://www.twilio.com/docs/api/rest/incoming-phone-numbers#instance-delete) -- There's no mention of how to release numbers in the docs... and when digging into the code, it doesn't seem possible.

This doesn't work:

$number = $this->twilio->account->incoming_phone_numbers->get(PN...);
$number->delete();
@Gipetto

This comment has been minimized.

Show comment
Hide comment
@Gipetto

Gipetto Dec 21, 2011

Member

Call delete on the Incoming Phone Numbers resource like this:

$number = $this->twilio->account->incoming_phone_numbers->get(PN...);
$this->twilio->account->incoming_phone_numbers->delete($number->id);
Member

Gipetto commented Dec 21, 2011

Call delete on the Incoming Phone Numbers resource like this:

$number = $this->twilio->account->incoming_phone_numbers->get(PN...);
$this->twilio->account->incoming_phone_numbers->delete($number->id);
@abv

This comment has been minimized.

Show comment
Hide comment
@abv

abv Dec 21, 2011

Thank you!

abv commented Dec 21, 2011

Thank you!

@abv abv closed this Dec 21, 2011

@kevinburke

This comment has been minimized.

Show comment
Hide comment
@kevinburke

kevinburke Dec 21, 2011

Contributor

I'll update the documentation to make this more clear.

Twilio-python supports delete() on individual phone number resources... what do you think?

Contributor

kevinburke commented Dec 21, 2011

I'll update the documentation to make this more clear.

Twilio-python supports delete() on individual phone number resources... what do you think?

@Gipetto

This comment has been minimized.

Show comment
Hide comment
@Gipetto

Gipetto Dec 22, 2011

Member

Its definitely more intuitive and getting some consistency across libraries probably wouldn't be a bad thing.

Member

Gipetto commented Dec 22, 2011

Its definitely more intuitive and getting some consistency across libraries probably wouldn't be a bad thing.

senthgit added a commit that referenced this issue Nov 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment