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

gitter: Pass query parameter to readAPIRequest #22

Closed

Conversation

meetmangukiya
Copy link
Contributor

  • New parameter query is added to GitterBackend.rooms function. This parameter
    is used while making a request to the rooms endpoint.
  • rooms function is called with the room uri in in query_rooms function.

Closes #21

gitter.py Outdated
def rooms(self):
json_rooms = self.readAPIRequest('rooms')
def rooms(self, query=None):
json_rooms = self.readAPIRequest('rooms', {'q': query})
Copy link
Member

Choose a reason for hiding this comment

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

What happens if room is None ? you need to remove the query.

- New parameter `query` is added to GitterBackend.rooms function. This parameter
  is used while making a request to the rooms endpoint.
- `rooms` function is called with the room uri in in `query_rooms` function.

Closes errbotio#21
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