ltsecurityinc安防产品在线商城代码
This commit is contained in:
Executable
+72
@@ -0,0 +1,72 @@
|
||||
@host = https://magento.local
|
||||
@url = {{host}}/rest/V1/report-adapter
|
||||
@email = magento_integration@ltsecurityinc.com
|
||||
@secret = TestingIntegration!
|
||||
|
||||
###
|
||||
POST {{url}}/internalaccounts HTTP/1.1
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"email":"{{email}}",
|
||||
"secret":"{{secret}}"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST {{url}}/disableaccounts HTTP/1.1
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"email":"{{email}}",
|
||||
"secret":"{{secret}}",
|
||||
"ids":"[1,2]"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST {{url}}/setoffice HTTP/1.1
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"email":"{{email}}",
|
||||
"secret":"{{secret}}",
|
||||
"id":"2",
|
||||
"office":"LA"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST {{url}}/setsales HTTP/1.1
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"email":"{{email}}",
|
||||
"secret":"{{secret}}",
|
||||
"id":"2",
|
||||
"sales_rep": "Test Sales Rep"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST {{url}}/confirm HTTP/1.1
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"email":"{{email}}",
|
||||
"secret":"{{secret}}",
|
||||
"id":"2",
|
||||
"sales_rep": "Test Sales Rep"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST {{url}}/deny HTTP/1.1
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"email":"{{email}}",
|
||||
"secret":"{{secret}}",
|
||||
"id":"2",
|
||||
"customer_group": "Enduser"
|
||||
}
|
||||
Reference in New Issue
Block a user