Skip to main content

Getting All Features

Overview

This article serves to explain how to use the SDKs to retrieve all Features for the user.

Using Get All Features

The "Get All Features" function in an SDK will return a map of all of the features that the user is currently in based on the information the SDK or API has received.

The response is the following general format, with slight changes depending on the specifics of the SDK:

{
"your-cool-feature": {
"_id": "123456",
"key": "your-cool-feature",
"type": "release",
"_variation":"333345"
},
"another-feature": {
"_id": "123456",
"key": "another-feature",
"type": "ops",
"_variation":"444123"
},...

Only Features that the User has been successfully targeted for. Targeting rules must be enabled for that environment.

Features that within the Project that have rules disabled OR the user is not Targeted for will not appear in the response of this function.

Client-Side SDK Usage

• JavaScript SDK

• React SDK

note

The DevCycle React SDK is built upon the JavaScript SDK. For more details, view the JavaScript SDK documentation

• iOS SDK

• Android SDK

• React Native SDK

• Flutter SDK

Server-Side SDK Usage

• NodeJS SDK

• Go SDK

• Ruby SDK

• PHP SDK

• .NET / C# Cloud SDK

• .NET / C# Local SDK

• Java Local SDK

• Java Cloud SDK