Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 2.53 KB

UsersBetaApi.md

File metadata and controls

72 lines (49 loc) · 2.53 KB

LaunchDarklyApi\UsersBetaApi

All URIs are relative to https://app.launchdarkly.com.

Method HTTP request Description
getUserAttributeNames() GET /api/v2/user-attributes/{projectKey}/{environmentKey} Get user attribute names

getUserAttributeNames()

getUserAttributeNames($project_key, $environment_key): \LaunchDarklyApi\Model\UserAttributeNamesRep

Get user attribute names

Use contexts instead > > After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should use Get context attribute names instead of this endpoint. Get all in-use user attributes in the specified environment. The set of in-use attributes typically consists of all attributes seen within the past 30 days.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: ApiKey
$config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = LaunchDarklyApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new LaunchDarklyApi\Api\UsersBetaApi(
    // 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
);
$project_key = 'project_key_example'; // string | The project key
$environment_key = 'environment_key_example'; // string | The environment key

try {
    $result = $apiInstance->getUserAttributeNames($project_key, $environment_key);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersBetaApi->getUserAttributeNames: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
project_key string The project key
environment_key string The environment key

Return type

\LaunchDarklyApi\Model\UserAttributeNamesRep

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]