PHP code example of jalismrs / stalactite-auth-client
1. Go to this page and download the library: Download jalismrs/stalactite-auth-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jalismrs / stalactite-auth-client example snippets
Configure API key authorization: StalactiteToken
$config = Jalismrs\Stalactite\Client\Auth\Configuration::getDefaultConfiguration()->setApiKey('X-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Jalismrs\Stalactite\Client\Auth\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-TOKEN', 'Bearer');
$apiInstance = new Jalismrs\Stalactite\Client\Auth\Api\AuthProvidersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$uid = 'uid_example'; // string | The uid of the Firebase auth provider to delete
try {
$apiInstance->deleteFirebaseAuthProvider($uid);
} catch (Exception $e) {
echo 'Exception when calling AuthProvidersApi->deleteFirebaseAuthProvider: ', $e->getMessage(), PHP_EOL;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.