public function create(ScriptTag &$scriptTag)
    {
        $data = $scriptTag->exportData();
        $response = $this->request(
            '/admin/script_tags.json', 'POST', array(
            'script_tag' => $data
            )
        );
        $scriptTag->setData($response['script_tag']);
    }
public function create(ScriptTag &$scriptTag)
    {
        $data = $scriptTag->exportData();
        $response = $this->request(
            '/admin/script_tags.json', 'POST', array(
            'script_tag' => $data
            )
        );
        $scriptTag->setData($response['script_tag']);
    }
public function create ( ScriptTag & $ scriptTag ) { $ data = $ scriptTag -> exportData ( ) ; $ response = $ this -> request ( '/admin/script_tags.json' , 'POST' , array ( 'script_tag' => $ data ) ) ; $ scriptTag -> setData ( $ response [ 'script_tag' ] ) ; }
Create a new script tag

@link   https://help.shopify.com/api/reference/scripttag#create
@param  ScriptTag $scriptTag
@return void
Create a new script tag