Reputation:
I get the error that is the title, and this is the line of code he is complaining about;
$client = new Client($passwordResetUrl, array('timeout' => 30));
$client->setParameterPost(array("username" => $username,
"application" => "pw_solcon",
"requester" => $requester,
"method" => $method));
$response = $client->request(Client::POST);
if ($response->getStatus() == 200) {
//do something
}
It complains specifically about $response = $client->request(Client::POST);
I looked at the documentation here, but I don't get what I am doing wrong.
Can somebody please help me?
Thank you
Upvotes: 1
Views: 771