Commit Graph

69 Commits

Author SHA1 Message Date
Paul Tötterman ee30ee9640 Switch from access_token in URL to token in header 2020-10-01 12:09:39 +03:00
TheDiscordian bceb63bac6
Support sending formatted text (r0.6.0). (#82) 2020-08-27 13:09:29 +01:00
TheDiscordian 5891715dc5
MarkRead method for // MarkRead marks eventID in roomID as read, signifying the event, and all before it have been read. See https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid (#81) 2020-08-27 13:08:51 +01:00
TheDiscordian 9523b90244
Status functions for interacting with the r0.6.0 presence/status API (#80)
* Status functions for interacting with the r0.6.0 presence/status API

* private -> Public
2020-08-27 13:07:42 +01:00
f4814n c698fb0c10
Update Login() Logout() and LogoutAll() to r0.6.0 (#73)
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-08-27 13:05:45 +01:00
Neil Alexander e5578b12c7
Run CI using golangci-lint, Go 1.13.10 (#78)
* Run CI using golangci-lint, Go 1.13.10

* Update pre-commit hook

* Fix lint issues
2020-05-01 13:17:22 +01:00
Michael Telatynski 49bed8e0e4 update comments and remove go.mod 2020-01-25 11:55:05 +00:00
Michael Telatynski 9c5753065f Add methods to query /publicRooms API 2019-12-21 22:26:19 +00:00
Reverite 158bd27e25 Check for resBody != nil on JSON decode 2019-05-08 13:29:31 -07:00
Reverite f9a6d11d38 Use res.Body check instead of res.ContentLength 2019-04-29 13:18:17 -07:00
Reverite 4fb520ebac Run gofmt 2019-04-25 15:16:37 -07:00
Reverite 44bc4ee622 streaming JSON encoding and decoding from HTTP client instead of allocating bytes 2019-04-25 00:24:30 -07:00
SUMUKHA-PK 8d38784ec2 Build issues resolved 2019-03-26 21:24:26 +05:30
Brendan Abolivier 998378da2b Manually append a trailing slash at the end of a path if needed 2019-03-20 19:31:55 +00:00
26000 072b39f7fa Fix InviteUser (#49) 2018-05-09 09:42:41 +01:00
MTRNord f6ce5f65b5 Add helper function GetOwnDisplayName() 2017-08-22 21:44:21 +02:00
MTRNord fc56cbf80a Add GetDisplayName() command 2017-08-22 20:21:53 +02:00
Kegsay 1ed3413986 Merge pull request #29 from t3chguy/t3chguy/add_GET_voip_turnServer
add `GET /_matrix/client/r0/voip/turnServer`
2017-06-26 10:23:41 +01:00
Kegsay cb69d2b689 Merge pull request #28 from Dhole/master
In /messages: Fix Messages argument parsing
2017-06-26 10:22:33 +01:00
Mark Haines 735a423c76 Add misspell and ineffassign to the pre-commit hooks 2017-06-12 19:37:49 +01:00
Michael Telatynski df70a4461f
add `GET /_matrix/client/r0/voip/turnServer`
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-06-07 14:13:03 +01:00
Dhole af80fb148a Fix Messages argument parsing 2017-05-29 14:01:42 -07:00
Richard Lewis d43f7960c7 Fix merge conflicts 2017-05-08 13:57:04 +01:00
Richard Lewis 03e22de5e5 Merge pull request #25 from matrix-org/rxl881/sendMessages
Add convenience function to send a room message of type send.notice
2017-05-08 13:45:52 +01:00
Richard Lewis 43492b703b Add convenience function to send a room message of type send.notice 2017-05-08 11:29:23 +01:00
Richard Lewis 63c361cb61 Fix function signature 2017-05-08 10:57:04 +01:00
Dhole 556e9529c0 Add /messages API 2017-05-06 21:21:07 -07:00
Richard Lewis 4bc46014ae Functions to send basic image and video events 2017-04-25 11:02:33 +01:00
Richard Lewis 4da59c5538 Typing notifications 2017-04-25 10:11:59 +01:00
Richard Lewis 07fa859cf3 Removed logging and fixed formatting 2017-02-20 16:18:18 +00:00
Richard Lewis 3c91bb314d Log response body when content upload fails 2017-02-20 14:45:37 +00:00
Richard Lewis b8c578e6fb Cleanup cruft 2017-02-16 13:52:55 +00:00
Richard Lewis 5e63dffd1b Cleanup commented code 2017-02-15 23:11:12 +00:00
Richard Lewis 4d75d81067 Add function to set a users' avatar 2017-02-15 22:10:04 +00:00
Kegan Dougal aa984fcabc Add AS membership list APIs
Added function to get a user's avatar image URL
2017-02-15 17:41:47 +00:00
Kegan Dougal 837d0c30d0 Review comments: be explicit at call-sites when setting credentials 2017-01-06 10:54:26 +00:00
Kegan Dougal 16f8e30850 Merge master into kegan/api-logout 2017-01-06 09:38:59 +00:00
Kegan Dougal b6093bbf56 Merge branch 'master' into kegan/api-logout 2017-01-06 09:38:27 +00:00
Kegsay eb1518c496 Merge pull request #13 from matrix-org/kegan/api-redact
Add /redact endpoint
2017-01-05 18:39:41 +00:00
Kegan Dougal 24cbc75ecc Factor out txn ID generation 2017-01-05 17:47:24 +00:00
Kegsay fd0a0c56cc Merge pull request #12 from matrix-org/kegan/api-put-state-event
Add PUT /room/roomId/state/type/key endpoint
2017-01-05 17:29:02 +00:00
Kegsay 059996b787 Merge pull request #14 from matrix-org/kegan/api-room-memberships
Add room membership APIs
2017-01-05 17:28:51 +00:00
Kegan Dougal 490a10cbc3 Add room membership APIs 2017-01-05 15:23:37 +00:00
Kegan Dougal 30c7035522 Add /redact endpoint 2017-01-05 14:33:38 +00:00
Kegan Dougal 52bfdcb6fa Add PUT /room/roomId/state/type/key endpoint 2017-01-05 14:25:05 +00:00
Kegan Dougal 0827f53d1c Add /logout API 2017-01-05 14:16:47 +00:00
Kegan Dougal 712061a445 Add /versions endpoint 2017-01-05 12:58:55 +00:00
Kegan Dougal b8025f5f6d More clarifying comments 2016-12-09 16:26:38 +00:00
Kegan Dougal 76fa23b9a4 Test example file 2016-12-09 16:09:48 +00:00
Kegan Dougal 7afedf5a62 Add CreateRoom() 2016-12-09 15:42:32 +00:00