joshrps / laravel-shopify-API-wrapper

Interface designed for Shopify apps created with Laravel
MIT License
93 stars 48 forks source link

DELETE Method #32

Open mohdaftab opened 6 years ago

mohdaftab commented 6 years ago

Hello,

I have been trying to send PUT and DELETE request for script tags but it doesn't seems to work. Please advice.

UPDATE Request

$sh->call(['URL' => '/admin/script_tags/'.$st->id.'.json', 'METHOD' => 'PUT',
            'DATA' => ['script_tag' => [
                'id'=>$st->id,
                'src'=>$this->app_url.'/js/'.$this->app_name.'.aaajs'
            ]]
            ]);

DELETE Request $sh->call(['URL' => '/admin/script_tags/'.$st->id.'.json', 'METHOD' => 'DELETE']);

impactcolor commented 4 years ago

@mohdaftab did you figure out how to do put request?