22
33namespace ApiVideo \Client ;
44
5+ use ApiVideo \Client \Exception \AuthenticationFailedException ;
56use ApiVideo \Client \Exception \ExpiredAuthTokenException ;
67use ApiVideo \Client \Exception \HttpException ;
78use ApiVideo \Client \Resource \Video \Video ;
@@ -77,15 +78,15 @@ public function __construct(string $baseUri, ?string $apiKey, ClientInterface $h
7778 $ this ->originSdkHeaderValue = "" ;
7879
7980 if ($ apiKey ) {
80- $ this ->authenticator = new Authenticator ($ this , $ apiKey , 'php:1.3.0 ' );
81+ $ this ->authenticator = new Authenticator ($ this , $ apiKey , 'php:1.3.1 ' );
8182 }
8283 }
8384
8485 /**
8586 * @param Request $commandRequest
8687 *
8788 * @return array|null
88- * @throws ClientExceptionInterface
89+ * @throws ClientExceptionInterface|AuthenticationFailedException
8990 */
9091 public function request (Request $ commandRequest , bool $ skipAuthRequest = false ): ?array
9192 {
@@ -110,7 +111,7 @@ public function request(Request $commandRequest, bool $skipAuthRequest = false):
110111 if ($ this ->originSdkHeaderValue ) {
111112 $ request = $ request ->withHeader ('AV-Origin-Sdk ' , $ this ->originSdkHeaderValue );
112113 }
113- $ request = $ request ->withHeader ('AV-Origin-Client ' , 'php:1.3.0 ' );
114+ $ request = $ request ->withHeader ('AV-Origin-Client ' , 'php:1.3.1 ' );
114115
115116 return $ this ->sendRequest ($ request , $ skipAuthRequest );
116117 }
0 commit comments