shopifyinfo
The shopifyinfo method is called to retrieve security settings related to SHOPIFY refunds.
Argument
Type
Description
username
String
The user's login
Return Value
Type
Description
Yes
JSON string
A formatted JSON string containing Shopify security settings for the user
SAMPLE CODE: ============ // Get security settings var $tmp = $cyware.shopifyinfo ('DEMO'); // Parse the JSON string var $jsonuser = JSON.parse ($tmp); if ($jsonuser.data.status == "ok") { // Dump the results and stop processing echo ($jsonuser); die (); } else // Show the error message echo ('An error occurred: ' + $jsonuser.data.errmsg); SAMPLE OUTPUT: ============== { "data": { "db": { "fld" : [ { "username":"DEMO", "approve_refunds":"1", "approve_revoke":"1", "create_voucher":"1", "view_orders":"1", "same_branch_only":"0" } ] }, "status":"ok", "numrows": 1 } }