Open mohdaftab opened 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']);
$sh->call(['URL' => '/admin/script_tags/'.$st->id.'.json', 'METHOD' => 'DELETE']);
@mohdaftab did you figure out how to do put request?
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
DELETE Request
$sh->call(['URL' => '/admin/script_tags/'.$st->id.'.json', 'METHOD' => 'DELETE']);