Merge pull request #9566 from owncloud/findAcceptedUser

[test-only] Find accepted user
This commit is contained in:
Viktor Scharf
2024-07-10 10:36:49 +02:00
committed by GitHub
4 changed files with 172 additions and 4 deletions
+26 -1
View File
@@ -91,7 +91,7 @@ class OcmHelper {
string $user,
string $password,
string $token,
string $providerDomain,
string $providerDomain
): ResponseInterface {
$body = [
"token" => $token,
@@ -107,4 +107,29 @@ class OcmHelper {
\json_encode($body)
);
}
/**
* @param string $baseUrl
* @param string $xRequestId
* @param string $user
* @param string $password
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function findAcceptedUsers(
string $baseUrl,
string $xRequestId,
string $user,
string $password
): ResponseInterface {
$url = self::getFullUrl($baseUrl, 'find-accepted-users');
return HttpRequestHelper::get(
$url,
$xRequestId,
$user,
$password,
self::getRequestHeaders()
);
}
}