Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fetch(fetchURL, {
- method: "GET",
- withCredentials: true,
- headers: {
- "X-Api-Key": apiKey,
- //"Content-Type": "application/json"
- }
- })
- .then(resp => resp.json())
- .then(function(data) {
- console.log(data);
- })
- .catch(function(error) {
- console.log(error);
- });
Advertisement
Add Comment
Please, Sign In to add comment