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

feat: general order chat methods #37

Merged
merged 2 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Entire bulk order module for feature parity with JS SDK
* Pylint config and pylint command to the CI environment
* Added new methods `video` and `video_thumbnail` that return a video and video thumbnail related to a given mode, video name and customization - [ripe-white/#996](https://github.com/ripe-tech/ripe-white/issues/996)
* General order chat methods - [ripe-core/#4702](https://github.com/ripe-tech/ripe-core/issues/4702)

### Changed

Expand Down
20 changes: 20 additions & 0 deletions src/ripe/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,26 @@ def log_order(self, number):
contents = self.get(url)
return contents

def chat_order(self, number):
url = self.base_url + "orders/%d/chat" % number
contents = self.get(url)
return contents

def chat_lines_order(self, number):
url = self.base_url + "orders/%d/chat/lines" % number
joao-conde marked this conversation as resolved.
Show resolved Hide resolved
contents = self.get(url)
return contents

def chat_lines_count_order(self, number):
url = self.base_url + "orders/%d/chat/lines/count" % number
contents = self.get(url)
return contents

def chat_create_line_order(self, number, content):
3rdvision marked this conversation as resolved.
Show resolved Hide resolved
url = self.base_url + "orders/%d/chat/lines/count" % number
contents = self.post(url, data_j = content)
return contents

def states_order(self, number):
url = self.base_url + "orders/%d/states" % number
contents = self.get(url)
Expand Down