Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pass = {
- url : 'https://www.ica.se/handla/api/cart/v1/cart/current/item/2319103200000',
- contentType : '{quantity: {amount: 1, unit: "PCE"}}'
- };
- //
- // quantity: {amount: 1, unit: "PCE"}
- $.ajax({
- url : pass.url,
- type : 'PUT',
- dataType : "json",
- 'x-application-customer-type' : 'B2C',
- 'x-application-full-response' : false,
- 'x-application-store-id' : 13026,
- data : JSON.stringify({quantity: {amount: 1, unit: "PCE"}}),
- contentType : 'application/json; charset=utf-8',
- timeout : 10000
- })
- .done((page) => {
- let parser = new DOMParser();
- let d = parser.parseFromString(page, "text/html");
- let items = [];
- console.log(d);
- })
- //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement