178inaba
f283f05671
Fix Pagination variable from *int64 to int64
2017-05-07 01:36:25 +09:00
178inaba
22f47735b4
Add processing when pagination is nil
2017-05-06 23:34:42 +09:00
178inaba
134128cb56
Fix to not return *Pagination
2017-05-06 23:03:19 +09:00
178inaba
eacd4e066d
Fix doAPI pagination
2017-05-04 23:35:00 +09:00
178inaba
d32c4d4ed1
Add Pagination
2017-05-04 21:56:54 +09:00
178inaba
d1b5f4b1fb
Fix for ineffassign .
2017-04-20 21:29:10 +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
00bd1f0aba
fix linkHeader restrictly
2017-04-19 17:48:42 +09:00
178inaba
aa0f9563ac
Fix to parse API error
2017-04-19 14:32:53 +09:00
Yasuhiro Matsumoto
20174d5b4a
Merge branch 'master' of github.com:mattn/go-mastodon
2017-04-18 17:18:17 +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
178inaba
a7e0c19d35
Fix get query to request url
2017-04-18 01:59:52 +09:00
Yasuhiro Matsumoto
af67397430
add UploadMedia
2017-04-17 13:54:36 +09:00
Yasuhiro Matsumoto
6fe43e545a
Use Request.WithContext
2017-04-17 12:25:20 +09:00
Yasuhiro Matsumoto
5e84b57bf3
breaking compatibility changes. take context for first arguments.
2017-04-17 11:10:29 +09:00
mattn
c17c887064
Merge pull request #16 from 178inaba/follow_requests
...
Add FollowRequestAuthorize and FollowRequestReject
2017-04-17 01:34:21 +09:00
178inaba
104663d1e6
Fix doAPI error handling
2017-04-17 00:03:05 +09:00
Yasuhiro Matsumoto
70b6261e34
golint & go vet
2017-04-16 23:38:53 +09:00
mattn
0d53c41623
Merge pull request #13 from 178inaba/update_credentials
...
Add AccountUpdate
2017-04-16 20:01:22 +09:00
178inaba
a25056d2cc
Add Content-Type header to doAPI
2017-04-16 00:47:23 +09:00
Yasuhiro Matsumoto
05c270286a
add argstr
2017-04-15 23:21:37 +09:00
178inaba
c63f290928
Fix var name url to u
2017-04-15 04:36:27 +09:00
Yasuhiro Matsumoto
acb5a81b87
add GetStatus, GetStatusContext
2017-04-15 00:22:44 +09:00
Yasuhiro Matsumoto
aa99f8559a
Merge branch 'master' of git://github.com/mattn/go-mastodon
2017-04-15 00:10:12 +09:00
Yasuhiro Matsumoto
746688274d
implement structs
2017-04-15 00:10:04 +09:00
178inaba
9dee3fc07f
Fix POST to http.MethodPost
2017-04-14 23:59:11 +09:00
178inaba
b4e56b6ff8
Fix GET to http.MethodGet
2017-04-14 23:56:07 +09:00
Yasuhiro Matsumoto
fa43a46aa5
separate files
2017-04-14 23:45:03 +09:00
Yasuhiro Matsumoto
2af857818d
add some APIs for Accounts
...
* AccountFollow
* AccountUnfollow
* AccountBlock
* AccountUnblock
* AccountMute
* AccountUnmute
* GetAccountRelationship
* AccountsSearch
2017-04-14 23:37:29 +09:00
Yasuhiro Matsumoto
98c1da299f
should not return
2017-04-14 19:30:15 +09:00
Yasuhiro Matsumoto
713996d9d8
separate func
2017-04-14 19:26:53 +09:00
Yasuhiro Matsumoto
9d84dcf8a7
fix doc
2017-04-14 19:22:56 +09:00
Yasuhiro Matsumoto
44a8f8e593
set urn:ietf:wg:oauth:2.0:oob if RedirectURIs is not set
2017-04-14 18:19:12 +09:00
mattn
73f943d2d3
Merge pull request #6 from 178inaba/following
...
Add GetAccountFollowing
2017-04-14 17:42:11 +09:00
Yasuhiro Matsumoto
dd7163e01e
return error when not 200 for GET method
2017-04-14 17:37:50 +09:00
Yasuhiro Matsumoto
49f49b8b97
return error
2017-04-14 17:10:13 +09:00
178inaba
bcdd8d879b
Add GetAccountFollowing
2017-04-14 16:41:47 +09:00
178inaba
1182d1e662
Fix comment of GetAccountCurrentUser
2017-04-14 15:56:24 +09:00
178inaba
9cace6b291
Add GetAccountCurrentUser
2017-04-14 15:46:21 +09:00
Yasuhiro Matsumoto
720344456d
add GetFollowRequests
2017-04-14 14:20:22 +09:00
Yasuhiro Matsumoto
34a93da2c3
add Follow
2017-04-14 14:18:10 +09:00
Yasuhiro Matsumoto
2b246d789d
fix text breaking by lines
2017-04-14 13:53:56 +09:00
Yasuhiro Matsumoto
a4d83d3b95
add GetAccountFollowers
2017-04-14 13:37:43 +09:00
Yasuhiro Matsumoto
23e9f80935
check error
2017-04-14 12:23:20 +09:00
Yasuhiro Matsumoto
d8dfefc0ed
golint & go vet
2017-04-14 12:21:27 +09:00
Yasuhiro Matsumoto
bd23c855dd
make API wrapper
2017-04-14 12:12:09 +09:00
Yasuhiro Matsumoto
7ef168e3dd
add ErrorEvent
2017-04-14 11:49:52 +09:00
178inaba
5952b20812
Merge branch 'master' into account
2017-04-14 10:23:02 +09:00
Yasuhiro Matsumoto
ae1467926c
add streaming
2017-04-14 09:32:46 +09:00