equal
deleted
inserted
replaced
30 |
30 |
31 return notifications, nil |
31 return notifications, nil |
32 } |
32 } |
33 |
33 |
34 // GetNotification returns a notification |
34 // GetNotification returns a notification |
|
35 // The returned notification can be nil if there is an error or if the |
|
36 // requested notification does not exist. |
35 func (g *Client) GetNotification(id int) (*Notification, error) { |
37 func (g *Client) GetNotification(id int) (*Notification, error) { |
36 var notification Notification |
38 var notification Notification |
37 |
39 |
38 req := g.prepareRequest("notifications/" + strconv.Itoa(id)) |
40 req := g.prepareRequest("notifications/" + strconv.Itoa(id)) |
39 r, err := rest.API(req) |
41 r, err := rest.API(req) |