Last active
May 13, 2024 03:48
-
-
Save pooza/d75551b4523ddcc7ce70a671a9bd2dd9 to your computer and use it in GitHub Desktop.
AWS Cognito クライアントの初期化
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client = new Aws\CognitoIdentityProvider\CognitoIdentityProviderClient([ | |
'version' => 'latest', | |
'region' => REGION, | |
'credentials' => [ | |
'key' => IAM_ACCESS_KEY, | |
'secret' => IAM_SECRET_KEY, | |
], | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$idpool = Aws\CognitoIdentity\CognitoIdentityClient::factory([ | |
'version' => 'latest', | |
'region' => REGION, | |
'credentials' => [ | |
'key' => IAM_ACCESS_KEY, | |
'secret' => IAM_SECRET_KEY, | |
], | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment