Merge branch 'mattn:master' into master
This commit is contained in:
commit
e2f936b91b
2 changed files with 8 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
[](https://github.com/mattn/go-mastodon/actions?query=workflow%3Atest)
|
||||
[](https://codecov.io/gh/mattn/go-mastodon)
|
||||
[](http://godoc.org/github.com/mattn/go-mastodon)
|
||||
[](https://pkg.go.dev/github.com/mattn/go-mastodon)
|
||||
[](https://goreportcard.com/report/github.com/mattn/go-mastodon)
|
||||
|
||||
|
||||
|
@ -86,6 +86,7 @@ func main() {
|
|||
* [x] GET /api/v1/accounts/:id/lists
|
||||
* [x] GET /api/v1/accounts/relationships
|
||||
* [x] GET /api/v1/accounts/search
|
||||
* [x] GET /api/v1/bookmarks
|
||||
* [x] POST /api/v1/apps
|
||||
* [x] GET /api/v1/blocks
|
||||
* [x] GET /api/v1/conversations
|
||||
|
@ -131,6 +132,8 @@ func main() {
|
|||
* [x] POST /api/v1/statuses/:id/unreblog
|
||||
* [x] POST /api/v1/statuses/:id/favourite
|
||||
* [x] POST /api/v1/statuses/:id/unfavourite
|
||||
* [x] POST /api/v1/statuses/:id/bookmark
|
||||
* [x] POST /api/v1/statuses/:id/unbookmark
|
||||
* [x] GET /api/v1/timelines/home
|
||||
* [x] GET /api/v1/timelines/public
|
||||
* [x] GET /api/v1/timelines/tag/:hashtag
|
||||
|
|
|
@ -92,7 +92,10 @@ func (c *Client) streaming(ctx context.Context, p string, params url.Values) (ch
|
|||
return nil, err
|
||||
}
|
||||
req = req.WithContext(ctx)
|
||||
|
||||
if c.Config.AccessToken != "" {
|
||||
req.Header.Set("Authorization", "Bearer "+c.Config.AccessToken)
|
||||
}
|
||||
|
||||
q := make(chan Event)
|
||||
go func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue