Quantcast
Channel: Opinion: Shopify Community - Shopify Apps
Viewing all articles
Browse latest Browse all 11091

Risk level from json using php by selva

$
0
0

May i know how to get the risk level tag using shopify docs?

I refered lot of json in shopify api docs, but can't able to analyze that.

This is my php code:

<?php
require_once 'lib/shopify.php';
$t="4226b767fd10efdcbe234ab0c449eda6";
$sc = new ShopifyClient("https-selvar-myshopify-com.myshopify.com", $t, API_KEY, SECRET);
if(!isset($t))
{
if(!isset($_GET['signature']))
{
  	$url = $sc->getAuthorizeUrl("read_orders");
	header('Location: '.$url);
}
if(isset($_GET['code']))
{
	$accTok = $sc->getAccessToken($_GET['code']);
	echo "token=".$accTok;exit;
	$orders = $sc->call('GET', 'admin/orders.json', array('published_status'=>'published'));
	foreach($orders as $order) {
   	echo $order['id'];
    	echo $order['email'];
}
}
}
if(isset($t))
{
	$orders = $sc->call('GET', 'admin/orders.json', array('published_status'=>'published'));
	print_r($orders);
}
?>

Thank you!!!


Viewing all articles
Browse latest Browse all 11091

Trending Articles