Hi, I am trying to call script tag API post, but getting an exception, My code is like below
$script = array( "script_tag" => array( "event" => "onload", "src" => "https://domain.com/sample.js" ), ); try { $this->shopify->ScriptTag->post($script); } catch (ApiException $exp) { echo $exp->getMessage(); }
That producing the error "src - can't be blank, must be secure (HTTPS), event - can't be blank, is invalid", Can you please help me to get rid of that.
Hi, I am trying to call script tag API post, but getting an exception, My code is like below
$script = array( "script_tag" => array( "event" => "onload", "src" => "https://domain.com/sample.js" ), ); try { $this->shopify->ScriptTag->post($script); } catch (ApiException $exp) { echo $exp->getMessage(); }
That producing the error "src - can't be blank, must be secure (HTTPS), event - can't be blank, is invalid", Can you please help me to get rid of that.