I’m Japanese.
So maybe my English is bad.
Sorry.
I want to use “password reset API” in Auth0.
However, I can’t.
Using PHP7 and Guzzle.
$data = [
'form_params' => [
'client_id' => 'CLIENT_ID',
'result_url' => 'http://localhost/password_reset/confirm',
'connection_id' => 'CONNECTION_NAME',
'email' => 'MAIL@ADDRESS',
'ttl_sec' => 0,
],
'header' => [
'content-type' => 'application/json',
]
];
$result = $this->Guzzle->guzzleRequest('POST', https://API_NAME.auth0.com/api/v2/tickets/password-change, $data);
It’s returned {"statusCode":401,"error":"Unauthorized","message":"Missing authentication"}
.
I can’t understand how to use this API…
Please help me.
Thank you!