| 53 | } |
| 54 | |
| 55 | func ListInboxNotificationsRequestToQueryParams(req ListInboxNotificationsRequest) []RequestOption { |
| 56 | var opts []RequestOption |
| 57 | if req.Targets != "" { |
| 58 | opts = append(opts, WithQueryParam("targets", req.Targets)) |
| 59 | } |
| 60 | if req.Templates != "" { |
| 61 | opts = append(opts, WithQueryParam("templates", req.Templates)) |
| 62 | } |
| 63 | if req.ReadStatus != "" { |
| 64 | opts = append(opts, WithQueryParam("read_status", req.ReadStatus)) |
| 65 | } |
| 66 | if req.StartingBefore != "" { |
| 67 | opts = append(opts, WithQueryParam("starting_before", req.StartingBefore)) |
| 68 | } |
| 69 | |
| 70 | return opts |
| 71 | } |
| 72 | |
| 73 | func (c *Client) ListInboxNotifications(ctx context.Context, req ListInboxNotificationsRequest) (ListInboxNotificationsResponse, error) { |
| 74 | res, err := c.Request( |