@apite/magento2-utility
Version:
Shopgate WebCheckout utility for Magento 2 extensions
48 lines (47 loc) • 1.1 kB
JSON
{
"url": "integration/customer/token",
"method": "post",
"data": {
"username": "roni_cost@example.com",
"password": "roni_cost3@example.com"
},
"headers": {
"common": {
"Accept": "application/json, text/plain, */*",
"shopgate-check": "true",
"Cookie": "XDEBUG_SESSION=1;"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"Accept": "application/json",
"Content-Type": "application/json"
},
"baseURL": "http://192.168.2.165/rest/default/V1",
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"withCredentials": true,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
}
}