Maybe this is an easy question.
I have a variable which save the user id in it.
$user_id = $_REQUEST['user_id'];
and then I have the URL like this :
try
{
$response = $client->delete('admin/user/**USER ID SHOULD HERE**',[
'headers' => ['Authorization' => $_SESSION['login']['apiKey']]
]);
}
I already try to put variable $user_id like this admin/user/$user_id in that URL but nothing happens.'
This is the delete method()
public function delete($url = null, array $options = [])
{
return $this->send($this->createRequest('DELETE', $url, $options));
}
Am I wrote something wrong ? Thanks :)
nothing happensmean? The url did not have the user id number?delete()method to figure out the error.$response = $client->delete('admin/user/' . $user_id, [...