Commit Graph

264 Commits (fe04c0b1049f06b603272ad4e79b3387b35f6acb)

Author SHA1 Message Date
Yasuhiro Matsumoto f40839b98d Merge branch 'master' of github.com:mattn/go-mastodon 2017-04-19 20:52:49 +09:00
Yasuhiro Matsumoto 1ddd67b1a4 diaply acct instead of username
close #29
2017-04-19 20:52:14 +09:00
mattn 1ec21221a9 Merge pull request #28 from MakeNowJust/fix/use-context
Correct context uses
2017-04-19 19:16:54 +09:00
TSUYUSATO Kitsune b105e8554c Remove 'go' from calling 'cancel'
https://github.com/mattn/go-mastodon/pull/28#discussion_r112162740
2017-04-19 19:12:09 +09:00
TSUYUSATO Kitsune fb53d41dd9 Correct context uses
`doAPI`'s `context` does not work due to `WithContext` immutability.
`Authenticate` and `RegisterApp` does not use `context` although they
needs `context`, so their `context` does not work also. This commit fixes
them and add test cases.
2017-04-19 18:53:55 +09:00
Yasuhiro Matsumoto 5a3a325689 add tests for GetNotifications/GetNotification/ClearNotifications 2017-04-19 18:32:20 +09:00
Yasuhiro Matsumoto 909a57c5ea add test for follow command 2017-04-19 18:25:01 +09:00
Yasuhiro Matsumoto 93d28c8b04 add test for Report/GetReports 2017-04-19 18:09:48 +09:00
Yasuhiro Matsumoto 84004eff39 fix Report 2017-04-19 18:09:43 +09:00
Yasuhiro Matsumoto 318df76454 add test for linkHeader 2017-04-19 17:48:53 +09:00
Yasuhiro Matsumoto 00bd1f0aba fix linkHeader restrictly 2017-04-19 17:48:42 +09:00
Yasuhiro Matsumoto 3a90b559e1 account flag is "-profile" 2017-04-19 17:05:00 +09:00
Yasuhiro Matsumoto 3d010df5fb add -profile flag 2017-04-19 16:52:26 +09:00
Yasuhiro Matsumoto b5541c9e38 fix stream types
close #25
2017-04-19 16:13:07 +09:00
Yasuhiro Matsumoto e47dd5a618 export ID for stream. add -i to reply 2017-04-19 15:17:26 +09:00
Yasuhiro Matsumoto 998ab3d74a add test for upload 2017-04-19 15:00:26 +09:00
mattn 8dfdc289a2 Merge pull request #27 from 178inaba/api_error
Fix to parse API error
2017-04-19 14:52:50 +09:00
mattn 204604b64f Merge pull request #26 from datsuns/add_unit_test_status
add test cases for status.go
2017-04-19 14:49:27 +09:00
178inaba d6bff26e62 Fix to use http status const 2017-04-19 14:43:37 +09:00
178inaba aa0f9563ac Fix to parse API error 2017-04-19 14:32:53 +09:00
Yasuhiro Matsumoto 5a6f6f16f1 add follow command 2017-04-19 14:17:18 +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 fe02b9e6af Merge branch 'next' 2017-04-18 17:18:39 +09:00
Yasuhiro Matsumoto 20174d5b4a Merge branch 'master' of github.com:mattn/go-mastodon 2017-04-18 17:18:17 +09:00
Yasuhiro Matsumoto aa8d2b1225 remove debug message 2017-04-18 17:16:37 +09:00
Yasuhiro Matsumoto 60e6eba67c add "next" variable 2017-04-18 17:14:39 +09:00
Yasuhiro Matsumoto 2debac3055 read all elements 2017-04-18 17:11:49 +09:00
Yasuhiro Matsumoto 9ccb5101ec take pointer for "next" variable 2017-04-18 17:08:48 +09:00
mattn 26ca3942bf Merge pull request #24 from 178inaba/get_query
Accounts fix
2017-04-18 09:11:33 +09:00
178inaba 5d106e8942 Add accounts test 2017-04-18 02:46:10 +09:00
178inaba 6f244235d4 Fix to be able to specify multiple id for GetAccountRelationships 2017-04-18 02:45:40 +09:00
178inaba a7e0c19d35 Fix get query to request url 2017-04-18 01:59:52 +09:00
mattn 552016b3be Merge pull request #23 from 178inaba/accounts_test
[WIP]Accounts test
2017-04-18 01:18:50 +09:00
178inaba 6020167f20 Add TestGetAccountRelationship 2017-04-18 00:28:59 +09:00
178inaba e37705c104 Add TestAccountMute and TestAccountUnmute 2017-04-18 00:00:05 +09:00
178inaba c56694e78e Add TestAccountBlock and TestAccountUnblock 2017-04-17 23:52:51 +09:00
Yasuhiro Matsumoto eb0803d442 add stream -simplejson 2017-04-17 23:43:11 +09:00
178inaba a752a1bd6b Add accounts test 2017-04-17 23:39:47 +09:00
Yasuhiro Matsumoto 0579b31633 check response 2017-04-17 23:36:21 +09:00
Yasuhiro Matsumoto e7f2469bc0 add stream -json 2017-04-17 23:29:44 +09:00
mattn b6d4c40dd6 Merge pull request #22 from 178inaba/cmd_input
Fix tty.Open() position
2017-04-17 23:28:38 +09:00
178inaba 39239ae270 Fix accounts test 2017-04-17 23:21:52 +09:00
178inaba d6ee0499f5 Fix tty.Open() position 2017-04-17 22:39:57 +09:00
Yasuhiro Matsumoto a0232ea6ef add missing file 2017-04-17 14:03:40 +09:00
Yasuhiro Matsumoto 4b979e4df2 update README.md 2017-04-17 13:56:35 +09:00
Yasuhiro Matsumoto 38590d8fd6 Merge branch 'master' of github.com:mattn/go-mastodon 2017-04-17 13:56:17 +09:00
Yasuhiro Matsumoto b74e25cee2 add upload command 2017-04-17 13:56:06 +09:00
Yasuhiro Matsumoto af67397430 add UploadMedia 2017-04-17 13:54:36 +09:00
mattn f7c198d876 Merge pull request #21 from 178inaba/error_message
Fix test error message
2017-04-17 13:17:27 +09:00
178inaba e1bc4c143d Fix test error message 2017-04-17 13:03:31 +09:00