Auth0\SDK\API\Management\Tickets::createPasswordChangeTicketRaw PHP Method

createPasswordChangeTicketRaw() public method

public createPasswordChangeTicketRaw ( $user_id = null, $email = null, $new_password = null, $result_url = null, $connection_id = null )
    public function createPasswordChangeTicketRaw($user_id = null, $email = null, $new_password = null, $result_url = null, $connection_id = null)
    {
        $body = [];
        if ($user_id) {
            $body['user_id'] = $user_id;
        }
        if ($email) {
            $body['email'] = $email;
        }
        if ($new_password) {
            $body['new_password'] = $new_password;
        }
        if ($result_url) {
            $body['result_url'] = $result_url;
        }
        if ($connection_id) {
            $body['connection_id'] = $connection_id;
        }
        return $this->apiClient->post()->tickets()->addPath('password-change')->withHeader(new ContentType('application/json'))->withBody(json_encode($body))->call();
    }