Skip to content

Commit 6fef10b

Browse files
modify clients to use api key when appropriate
1 parent db46ba1 commit 6fef10b

File tree

2 files changed

+4
-46
lines changed

2 files changed

+4
-46
lines changed

build.savant

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
savantVersion = "1.0.0"
1717

18-
project(group: "io.fusionauth", name: "fusionauth-php-client", version: "1.13.0", licenses: ["ApacheV2_0"]) {
18+
project(group: "io.fusionauth", name: "fusionauth-php-client", version: "1.12.1", licenses: ["ApacheV2_0"]) {
1919
workflow {
2020
standard()
2121
}

src/FusionAuth/FusionAuthClient.php

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -548,27 +548,6 @@ public function deactivateUsers($userIds)
548548
{
549549
return $this->start()->uri("/api/user/bulk")
550550
->urlParameter("userId", $userIds)
551-
->urlParameter("dryRun", false)
552-
->urlParameter("hardDelete", false)
553-
->delete()
554-
->go();
555-
}
556-
557-
/**
558-
* Deactivates the users found with the given search query string.
559-
*
560-
* @param string $queryString The search query string.
561-
* @param boolean $dryRun Whether to preview or deactivate the users found by the queryString
562-
*
563-
* @return ClientResponse The ClientResponse.
564-
* @throws \Exception
565-
*/
566-
public function deactivateUsersByQuery($queryString, $dryRun)
567-
{
568-
return $this->start()->uri("/api/user/bulk")
569-
->urlParameter("queryString", $queryString)
570-
->urlParameter("dryRun", $dryRun)
571-
->urlParameter("hardDelete", false)
572551
->delete()
573552
->go();
574553
}
@@ -828,11 +807,9 @@ public function deleteUserActionReason($userActionReasonId)
828807
}
829808

830809
/**
831-
* Deletes the users with the given ids, or users matching the provided queryString.
832-
* If you provide both userIds and queryString, the userIds will be honored. This can be used to deactivate or hard-delete
833-
* a user based on the hardDelete request body parameter.
810+
* Deletes the users with the given ids.
834811
*
835-
* @param array $request The UserDeleteRequest.
812+
* @param array $request The ids of the users to delete.
836813
*
837814
* @return ClientResponse The ClientResponse.
838815
* @throws \Exception
@@ -845,25 +822,6 @@ public function deleteUsers($request)
845822
->go();
846823
}
847824

848-
/**
849-
* Delete the users found with the given search query string.
850-
*
851-
* @param string $queryString The search query string.
852-
* @param boolean $dryRun Whether to preview or delete the users found by the queryString
853-
*
854-
* @return ClientResponse The ClientResponse.
855-
* @throws \Exception
856-
*/
857-
public function deleteUsersByQuery($queryString, $dryRun)
858-
{
859-
return $this->start()->uri("/api/user/bulk")
860-
->urlParameter("queryString", $queryString)
861-
->urlParameter("dryRun", $dryRun)
862-
->urlParameter("hardDelete", true)
863-
->delete()
864-
->go();
865-
}
866-
867825
/**
868826
* Deletes the webhook for the given Id.
869827
*
@@ -1755,7 +1713,7 @@ public function resendEmailVerification($email)
17551713
*/
17561714
public function resendRegistrationVerification($email, $applicationId)
17571715
{
1758-
return $this->startAnonymous()->uri("/api/user/verify-registration")
1716+
return $this->start()->uri("/api/user/verify-registration")
17591717
->urlParameter("email", $email)
17601718
->urlParameter("applicationId", $applicationId)
17611719
->put()

0 commit comments

Comments
 (0)