@@ -1834,10 +1834,10 @@ The `Authorization` header contains a base64 encoding of the API Key and Secret.
18341834$application = \Stormpath\Resource\Application::get("https://api.stormpath.com/v1/applications/24mp4us71ntza6lBwlu");
18351835
18361836$request = \Stormpath\Authc\Api\Request::createFromGlobals();
1837- $result = new ApiRequestAuthenticator($application)->authenticate($request);
1837+ $result = ( new ApiRequestAuthenticator($application) )->authenticate($request);
18381838
1839- $account = $result->account;
1840- $apiKey = $result->apiKey ;
1839+ $account = $result->getApiKey()-> account;
1840+ $apiKey = $result->getApiKey() ;
18411841```
18421842
18431843##### Using ` BasicRequestAuthenticator `
@@ -1846,10 +1846,10 @@ $apiKey = $result->apiKey;
18461846$application = \Stormpath\Resource\Application::get("https://api.stormpath.com/v1/applications/24mp4us71ntza6lBwlu");
18471847
18481848$request = \Stormpath\Authc\Api\Request::createFromGlobals();
1849- $result = new BasicRequestAuthenticator($application)->authenticate($request);
1849+ $result = ( new BasicRequestAuthenticator($application) )->authenticate($request);
18501850
1851- $account = $result->account;
1852- $apiKey = $result->apiKey ;
1851+ $account = $result->getApiKey()-> account;
1852+ $apiKey = $result->getApiKey() ;
18531853```
18541854
18551855### OAuth Authentication
@@ -1908,10 +1908,10 @@ Host: api.trooperapp.com
19081908$application = \Stormpath\Resource\Application::get("https://api.stormpath.com/v1/applications/24mp4us71ntza6lBwlu");
19091909
19101910$request = \Stormpath\Authc\Api\Request::createFromGlobals();
1911- $result = new OAuthRequestAuthenticator($application)->authenticate($request);
1911+ $result = ( new OAuthRequestAuthenticator($application) )->authenticate($request);
19121912
1913- $account = $result->account;
1914- $apiKey = $result->apiKey ;
1913+ $account = $result->getApiKey()-> account;
1914+ $apiKey = $result->getApiKey() ;
19151915```
19161916
19171917You can also use the more specific ` OAuthBearerRequestAuthenticator ` to authenticate
0 commit comments