So I'm still new to react and just learned about api and i have google how to pull the metadata but im struggling to find an solution or and little bit of info to help me to be able to get the below to work for my react. Thanks
$.get({
url: 'https://example.com/products'
headers: { 'Authorization': 'Token <key>' },
contentType: 'application/vnd.api+json'
});