add comment for GetStatusSource

pull/166/head
Rasmus Lindroth 2022-11-20 20:25:15 +01:00 committed by mattn
parent 51f9d7f999
commit 98f591c5e2
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ func (c *Client) GetStatusCard(ctx context.Context, id ID) (*Card, error) {
return &card, nil
}
// GetStatusSource returns source data specified by id.
func (c *Client) GetStatusSource(ctx context.Context, id ID) (*Source, error) {
var source Source
err := c.doAPI(ctx, http.MethodGet, fmt.Sprintf("/api/v1/statuses/%s/source", id), nil, &source, nil)