How to send ajax request to admin api of shopify

rehmanalira
New Member
3 0 0

Hi... 

I am searching a way to send ajax request to get all the data from shopifiy website 

I am sending in this way ...

is this is a right way ?

 

$.ajax({
type: "GET",
url : "https://{key}:{pass}@{website}.myshopify.com/admin/api/2021-07/products.json",
dataType:"JSON",
crossDomain: true,
 
success: function (data) {
console.log(data);
}
});
 
Or how i can send request to admin api ?
and another error is that i have write my password and key right but it also tell that it is wrong ..
ANY ONE CAN HELP ??????????????????????????
 
0 Likes