All URIs are relative to https://universal-api.taplytics.com/v1
| Method | HTTP request | Description |
|---|---|---|
| FeatureflagsGet | Get /featureflags | Get enabled Feature Flags for the user |
| FeatureflagsPost | Post /featureflags | Get enabled Feature Flags for the user |
| IsfeatureflagenabledGet | Get /isfeatureflagenabled | Get if feature flag is enabled |
| IsfeatureflagenabledPost | Post /isfeatureflagenabled | Get if feature flag is enabled |
FeatureflagsGet(ctx).Token(token).UserId(userId).Attributes(attributes).CustomData(customData).Execute()
Get enabled Feature Flags for the user
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
token := "token_example" // string | SDK token for the project
userId := "userId_example" // string | ID for current user
attributes := *openapiclient.NewUserAttributes() // UserAttributes | serialized attributes object
customData := TODO // map[string]interface{} | serialized custom data object
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FeatureFlagsApi.FeatureflagsGet(context.Background()).Token(token).UserId(userId).Attributes(attributes).CustomData(customData).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsApi.FeatureflagsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiFeatureflagsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| token | string | SDK token for the project | |
| userId | string | ID for current user | |
| attributes | UserAttributes | serialized attributes object | |
| customData | map[string]interface{} | serialized custom data object |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FeatureflagsPost(ctx).Token(token).UserId(userId).UserAttributesWithCustomData(userAttributesWithCustomData).Execute()
Get enabled Feature Flags for the user
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
token := "token_example" // string | SDK token for the project
userId := "userId_example" // string | ID for current user
userAttributesWithCustomData := *openapiclient.NewUserAttributesWithCustomData() // UserAttributesWithCustomData | All user attributes and optional custom data (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FeatureFlagsApi.FeatureflagsPost(context.Background()).Token(token).UserId(userId).UserAttributesWithCustomData(userAttributesWithCustomData).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsApi.FeatureflagsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiFeatureflagsPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| token | string | SDK token for the project | |
| userId | string | ID for current user | |
| userAttributesWithCustomData | UserAttributesWithCustomData | All user attributes and optional custom data |
(empty response body)
No authorization required
- Content-Type: application/jason
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IsfeatureflagenabledGet(ctx).Token(token).UserId(userId).FeatureFlagKey(featureFlagKey).Attributes(attributes).CustomData(customData).Execute()
Get if feature flag is enabled
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
token := "token_example" // string | SDK token for the project
userId := "userId_example" // string | ID for current user
featureFlagKey := "featureFlagKey_example" // string | key for the feature flag you want to check
attributes := *openapiclient.NewUserAttributes() // UserAttributes | serialized attributes object
customData := TODO // map[string]interface{} | serialized custom data object
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FeatureFlagsApi.IsfeatureflagenabledGet(context.Background()).Token(token).UserId(userId).FeatureFlagKey(featureFlagKey).Attributes(attributes).CustomData(customData).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsApi.IsfeatureflagenabledGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiIsfeatureflagenabledGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| token | string | SDK token for the project | |
| userId | string | ID for current user | |
| featureFlagKey | string | key for the feature flag you want to check | |
| attributes | UserAttributes | serialized attributes object | |
| customData | map[string]interface{} | serialized custom data object |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IsfeatureflagenabledPost(ctx).Token(token).UserId(userId).FeatureFlagKey(featureFlagKey).UserAttributesWithCustomData(userAttributesWithCustomData).Execute()
Get if feature flag is enabled
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
token := "token_example" // string | SDK token for the project
userId := "userId_example" // string | ID for current user
featureFlagKey := "featureFlagKey_example" // string | key for the feature flag you want to check
userAttributesWithCustomData := *openapiclient.NewUserAttributesWithCustomData() // UserAttributesWithCustomData | All user attributes and optional custom data (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.FeatureFlagsApi.IsfeatureflagenabledPost(context.Background()).Token(token).UserId(userId).FeatureFlagKey(featureFlagKey).UserAttributesWithCustomData(userAttributesWithCustomData).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FeatureFlagsApi.IsfeatureflagenabledPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiIsfeatureflagenabledPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| token | string | SDK token for the project | |
| userId | string | ID for current user | |
| featureFlagKey | string | key for the feature flag you want to check | |
| userAttributesWithCustomData | UserAttributesWithCustomData | All user attributes and optional custom data |
(empty response body)
No authorization required
- Content-Type: application/jason
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]