Commit Graph

30 Commits (75578dd2499632a9976f3710075ebe6d17f14535)

Author SHA1 Message Date
Christian Muehlhaeuser 75578dd249 Update search to use v2 API endpoint
v1 has been disabled on most instances by now.
The change is minor: hash-tags are now reported as proper structs
instead of a simple string-array.
2020-03-02 11:37:25 +09:00
hiromi-mi 021f5d0019 fix CI for DeleteConversation 2020-02-25 22:09:24 +09:00
hiromi-mi fd6533a508 Support conversations API
Support these APIs added in Mastodon 2.6.0.
- GET /api/v1/conversations
- DELETE /api/v1/conversations/:id
- POST /api/v1/conversations/:id/read
2020-02-25 22:09:24 +09:00
Christian Muehlhaeuser 1b7f743892 Fix ineffectual assignments
- Don't assign variables we don't end up using
- Added missing error check in test
2019-09-30 17:14:20 +09:00
Yasuhiro Matsumoto 559ed99cdf Add direct
Closes #102
2019-06-22 01:52:45 +09:00
Christian Muehlhaeuser e725c81450 Added tests for list API calls 2019-05-12 23:58:10 +09:00
Brian C. Lindner e804ee7eb2 Added UploadMediaFromReader 2019-03-11 14:18:07 +09:00
Christian Muehlhaeuser 3daf61de23 Fixed tests for Go 1.11 2018-11-25 23:09:03 +09:00
Yasuhiro Matsumoto bd72aa305d fix test 2017-10-26 15:18:07 +09:00
Yasuhiro Matsumoto 2866ebbdc5 fix test 2017-10-26 15:02:33 +09:00
Yasuhiro Matsumoto a4d531815f add test for CustomEmoji 2017-10-26 15:00:17 +09:00
Yasuhiro Matsumoto aef736e991 fix IDs 2017-10-25 15:22:17 +09:00
Yasuhiro Matsumoto 730317321a also convert to string in attachments, pagenation 2017-10-25 10:22:39 +09:00
178inaba 134128cb56 Fix to not return *Pagination 2017-05-06 23:03:19 +09:00
178inaba d32c4d4ed1 Add Pagination 2017-05-04 21:56:54 +09:00
178inaba 47292cbca3 Add TestGetTimelineMedia 2017-04-29 00:43:53 +09:00
178inaba a4904109e4 Fix GetTimelineHashtag 2017-04-28 02:29:11 +09:00
178inaba 315f7bbd29 Add GetTimelinePublic 2017-04-26 03:16:32 +09:00
y0za e9f28b9c6e Fix test json property name 2017-04-20 19:37:24 +09:00
datsuns b573bd5eb7 add test cases for status.go
target methods:
  - GetStatusCard()
  - GetStatusContext()
  - GetTimelineHashtag()
  - DeleteStatus()
  - Search()
2017-04-19 14:08:38 +09:00
Yasuhiro Matsumoto 38590d8fd6 Merge branch 'master' of github.com:mattn/go-mastodon 2017-04-17 13:56:17 +09:00
Yasuhiro Matsumoto af67397430 add UploadMedia 2017-04-17 13:54:36 +09:00
178inaba e1bc4c143d Fix test error message 2017-04-17 13:03:31 +09:00
Yasuhiro Matsumoto 5e84b57bf3 breaking compatibility changes. take context for first arguments. 2017-04-17 11:10:29 +09:00
178inaba 1495b1fb02 Add TestGetStatus 2017-04-16 17:11:47 +09:00
178inaba bbb4df76ca Add Favourite and Unfavourite 2017-04-16 15:32:48 +09:00
178inaba 6891f221bc Add Reblog and Unreblog 2017-04-16 14:53:15 +09:00
178inaba 74901c994c Add GetFavouritedBy 2017-04-16 13:45:59 +09:00
178inaba 3cb20b5925 Add GetRebloggedBy 2017-04-16 13:11:56 +09:00
178inaba af2ce2c3b1 Add TestGetFavourites 2017-04-15 03:40:06 +09:00