From e48e9e79cd19a2eef23b618c7ccab6d34e0b2e1d Mon Sep 17 00:00:00 2001 From: Brady Wied Date: Tue, 29 Apr 2025 21:58:14 -0600 Subject: [PATCH 1/2] reapply changes --- src/FusionAuth/FusionAuthClient.php | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/src/FusionAuth/FusionAuthClient.php b/src/FusionAuth/FusionAuthClient.php index 1e6c470..b99d5d9 100644 --- a/src/FusionAuth/FusionAuthClient.php +++ b/src/FusionAuth/FusionAuthClient.php @@ -4392,6 +4392,24 @@ public function retrieveUserByLoginId($loginId) ->go(); } + /** + * Retrieves the user for the loginId for specific loginIdTypes. + * + * @param string $loginId The email or username of the user. + * @param array $loginIdTypes The identity types that FusionAuth will compare the loginId to. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function retrieveUserByLoginId($loginId, $loginIdTypes) + { + return $this->start()->uri("/api/user") + ->urlParameter("loginId", $loginId) + ->urlParameter("loginIdTypes", $loginIdTypes) + ->get() + ->go(); + } + /** * Retrieves the user for the given username. * @@ -4621,6 +4639,31 @@ public function retrieveUserLoginReportByLoginId($applicationId, $loginId, $star ->go(); } + /** + * Retrieves the login report between the two instants for a particular user by login Id. If you specify an application id, it will only return the + * login counts for that application. + * + * @param string $applicationId (Optional) The application id. + * @param string $loginId The userId id. + * @param array $loginIdTypes The identity types that FusionAuth will compare the loginId to. + * @param array $start The start instant as UTC milliseconds since Epoch. + * @param array $end The end instant as UTC milliseconds since Epoch. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function retrieveUserLoginReportByLoginId($applicationId, $loginId, $loginIdTypes, $start, $end) + { + return $this->start()->uri("/api/report/login") + ->urlParameter("applicationId", $applicationId) + ->urlParameter("loginId", $loginId) + ->urlParameter("loginIdTypes", $loginIdTypes) + ->urlParameter("start", $start) + ->urlParameter("end", $end) + ->get() + ->go(); + } + /** * Retrieves the last number of login records for a user. * From 4d8243f3d36fbebfb7952d34a961e841558684aa Mon Sep 17 00:00:00 2001 From: Brady Wied Date: Wed, 30 Apr 2025 12:21:15 -0600 Subject: [PATCH 2/2] back out overloads for now, sep PR --- src/FusionAuth/FusionAuthClient.php | 43 ----------------------------- 1 file changed, 43 deletions(-) diff --git a/src/FusionAuth/FusionAuthClient.php b/src/FusionAuth/FusionAuthClient.php index b99d5d9..1e6c470 100644 --- a/src/FusionAuth/FusionAuthClient.php +++ b/src/FusionAuth/FusionAuthClient.php @@ -4392,24 +4392,6 @@ public function retrieveUserByLoginId($loginId) ->go(); } - /** - * Retrieves the user for the loginId for specific loginIdTypes. - * - * @param string $loginId The email or username of the user. - * @param array $loginIdTypes The identity types that FusionAuth will compare the loginId to. - * - * @return ClientResponse The ClientResponse. - * @throws \Exception - */ - public function retrieveUserByLoginId($loginId, $loginIdTypes) - { - return $this->start()->uri("/api/user") - ->urlParameter("loginId", $loginId) - ->urlParameter("loginIdTypes", $loginIdTypes) - ->get() - ->go(); - } - /** * Retrieves the user for the given username. * @@ -4639,31 +4621,6 @@ public function retrieveUserLoginReportByLoginId($applicationId, $loginId, $star ->go(); } - /** - * Retrieves the login report between the two instants for a particular user by login Id. If you specify an application id, it will only return the - * login counts for that application. - * - * @param string $applicationId (Optional) The application id. - * @param string $loginId The userId id. - * @param array $loginIdTypes The identity types that FusionAuth will compare the loginId to. - * @param array $start The start instant as UTC milliseconds since Epoch. - * @param array $end The end instant as UTC milliseconds since Epoch. - * - * @return ClientResponse The ClientResponse. - * @throws \Exception - */ - public function retrieveUserLoginReportByLoginId($applicationId, $loginId, $loginIdTypes, $start, $end) - { - return $this->start()->uri("/api/report/login") - ->urlParameter("applicationId", $applicationId) - ->urlParameter("loginId", $loginId) - ->urlParameter("loginIdTypes", $loginIdTypes) - ->urlParameter("start", $start) - ->urlParameter("end", $end) - ->get() - ->go(); - } - /** * Retrieves the last number of login records for a user. *