Noah Witt vor 7 Jahren
Ursprung
Commit
2a58c9fd38
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      api/functions/organizr-functions.php

+ 3 - 3
api/functions/organizr-functions.php

@@ -2121,7 +2121,7 @@ function embyJoin($username, $email, $password)
 		);
 		$data = array ();
 		$url = $GLOBALS['INVITES-EmbyAddress'] . '/emby/Users/New?name=' . $username . '&api_key=' . $GLOBALS['INVITES-embyApiKey'];
-		$response = Request::Post($url, $headers, json_encode($data), array());
+		$response = Requests::Post($url, $headers, json_encode($data), array());
 		$response = json_decode($response);
 		$userID = $response["Id"];
 
@@ -2134,14 +2134,14 @@ function embyJoin($username, $email, $password)
 			"Pw" => $password
 		);
 		$url = $GLOBALS['INVITES-EmbyAddress'] . '/emby/Users/' . $userID . '/Password?api_key=' . $GLOBALS['INVITES-embyApiKey'];
-		Request::Post($url, $headers, json_encode($data), array());
+		Requests::Post($url, $headers, json_encode($data), array());
 
 		#update config
 		$headers = array(
 			"Accept" => "application/json"
 		);
 		$url = $GLOBALS['INVITES-EmbyAddress'] . '/emby/Users/' . $userID . '/Policy?api_key=' . $GLOBALS['INVITES-embyApiKey'];
-		$response = Request::Post($url, $headers, $GLOBALS['INVITES-EmbyDefaultUserConfig'], array());
+		$response = Requests::Post($url, $headers, $GLOBALS['INVITES-EmbyDefaultUserConfig'], array());
 
 		#add emby.media
 		#$headers = array(