phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
570 stars 210 forks source link

ScriptTag post() call does not sending the data. #104

Closed subhendumondal closed 5 years ago

subhendumondal commented 5 years ago

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.

subhendumondal commented 5 years ago

Need to create array without script_tag