curl --request GET \
--url https://api.royalti.io/user/{id}/products \
--header 'Authorization: Bearer <token>'[
{}
]/user//products
curl --request GET \
--url https://api.royalti.io/user/{id}/products \
--header 'Authorization: Bearer <token>'[
{}
]/user/{userId}/products endpoint retrieves the products associated with a specific user identified by their unique userId.
Method:GET
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| userId | string | The unique identifier of the user. |
const response = await fetch('https://api.royalti.io/user/example-id/products', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);