Unverified Commit 5b231cb0 authored by Corentin Barreau's avatar Corentin Barreau
Browse files

Add: strategy query parameter for Feed

parent 064e0c6d
......@@ -8,7 +8,7 @@ import (
"strconv"
)
func (c *Client) Feed(size int) (feedResponse *FeedResponse, err error) {
func (c *Client) Feed(size int, strategy string) (feedResponse *FeedResponse, err error) {
expectedStatusCode := 200
emptyStatusCode := 204
feedResponse = new(FeedResponse)
......@@ -21,6 +21,7 @@ func (c *Client) Feed(size int) (feedResponse *FeedResponse, err error) {
q := req.URL.Query()
q.Add("size", strconv.Itoa(size))
q.Add("strategy", strategy)
req.URL.RawQuery = q.Encode()
req.Header.Add("X-Auth-Key", c.Key)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment