Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Queue support for twilio's python library #76

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

Closed
wants to merge 8 commits into from

Conversation

dsyang
Copy link
Contributor

@dsyang dsyang commented Aug 8, 2012

This includes both twiml and restAPI support



class Leave(Verb):
"""Signals the call to leave it's queue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in commit 2f73bd2

@kevinburke
Copy link
Contributor

Does dequeue() make more sense as a property of a Member object, instead of on the list resource? eg member.dequeue() instead of members.dequeue(member)?

If you try to POST to dequeue a member and do not include a Twiml URL, you get a 400 'Url is required' bad request, indicating this should be a mandatory parameter on the method.

"""
Returns a list of :class:`Member` resources in the given queue

:param queue_sid: Conference this participant is part of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should say "Queue this participant is a part of"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in commit 2f73bd2


def __init__(self, name, **kwargs):
super(Queue, self).__init__(**kwargs)
self.body = name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is body? It's not documented in the above documentation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry - just realized this is Twiml.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in commit 866eba5

@dsyang
Copy link
Contributor Author

dsyang commented Aug 8, 2012

I think dequeue makes more sense on the list resource. A dequeue doesn't always need a member's call_sid

members.dequeue(member_call_sid) for dequeuing a specific call, members.dequeue() for dequeuing the first call on the queue.

@kyleconroy
Copy link
Contributor

I agree with Dan that dequeue makes more sense on the list resource. However, Kevin is right that the dequeue method needs to take a TwiML url as the first argument.

@kyleconroy
Copy link
Contributor

See pull request #77

@kyleconroy kyleconroy closed this Aug 8, 2012
eq19 pushed a commit to VirtualNetworks/parser that referenced this pull request May 1, 2025
Adds the MIT licence header
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.

3 participants