Merge pull request #18 from chansuke/fix-comment
Fix comment of notification API
This commit is contained in:
commit
f181df17a0
|
@ -26,7 +26,7 @@ func (c *Client) GetNotifications(ctx context.Context) ([]*Notification, error)
|
||||||
return notifications, nil
|
return notifications, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetNotification return notifications.
|
// GetNotifications return notification.
|
||||||
func (c *Client) GetNotification(ctx context.Context, id int64) (*Notification, error) {
|
func (c *Client) GetNotification(ctx context.Context, id int64) (*Notification, error) {
|
||||||
var notification Notification
|
var notification Notification
|
||||||
err := c.doAPI(ctx, http.MethodGet, fmt.Sprintf("/api/v1/notifications/%d", id), nil, ¬ification)
|
err := c.doAPI(ctx, http.MethodGet, fmt.Sprintf("/api/v1/notifications/%d", id), nil, ¬ification)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user