ChimeraCoder / anaconda

A Go client library for the Twitter 1.1 API
MIT License
1.14k stars 247 forks source link

GetTweetsLookupByIds fails when passing the map parameter #234

Open vincekd opened 6 years ago

vincekd commented 6 years ago
vals := url.Values{
    "map": {"1"},
}
aTweets, err := twitterApi.GetTweetsLookupByIds(ids, vals)

Fails with this error: json: cannot unmarshal object into Go value of type []anaconda.Tweet

map param is documented here: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-lookup