Closed akin-oz closed 3 years ago
const options = {
method: 'GET',
headers: {
Accept: 'application/json',
'Accept-Language': 'it',
'X-Musement-Currency': 'EUR',
'X-Musement-Version': '3.4.0'
}
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));```
Used https://api.musement.com/api/v3/activities?venue_in=164&limit=6&offset=0
instead of https://api.musement.com/api/v3/venues/164/activities?limit=6&offset=0
because of response metadata.
/activities
have item count on its response.
https://api-docs.musement.com/reference#getvenuesvenueidactivities