Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DELETE Method #32

Open
mohdaftab opened this issue Feb 16, 2018 · 1 comment
Open

DELETE Method #32

mohdaftab opened this issue Feb 16, 2018 · 1 comment

Comments

@mohdaftab
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants