-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add text support to ReadWriteClient.write_message (#120)
The Vestaboard Read / Write API now supports passing text in addition to the previously-supported rows of character codes. It also now returns HTTP 200 (instead of HTTP 201) upon a successful write, so update the response logic accordingly. I've noticed that this endpoint also now returns HTTP 405 when the written message matches the board's existing message, returning a JSON error like this: { 'status': 'error', 'message': 'Message fingerprint matches the message that is already displayed on the board' } This is surfaced to the caller as an HTTPStatusError (just like any other request failure), but I may look at ways to make this a little friendlier if this is the official server-side behavior.
- Loading branch information
Showing
2 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters