Get Features for User
Get all features associated with a specific user
.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Query endpoint instead.
Endpoint
GET /v1/users/:userId/features
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
curl "https://api.warrant.dev/v1/users/s897lashdf454d/features" \
-H "Authorization: ApiKey YOUR_KEY"
userFeatures, err := feature.ListFeaturesForUser("s897lashdf454d", &warrant.ListFeatureParams{
ListParams: warrant.ListParams{
Limit: 10,
},
})
ListResult<Feature> features = client.listFeaturesForUser("s897lashdf454d", new ListParams().withLimit(10));
// Class method
const features = await warrantClient.Feature.listFeaturesForUser(
"s897lashdf454d",
{ limit: 10 }
);
// Instance method
const user = await warrantClient.User.get("s897lashdf454d");
const features = await user.listFeatures({ limit: 10 });
# Class method
features = warrant.Feature.list_for_user("s897lashdf454d", {"limit": 10})
# Instance method
user = warrant.User.get("s897lashdf454d")
features = user.list_features({"limit": 10})
# Class method
features = Warrant::Feature.list_for_user("s897lashdf454d", { limit: 10 })
# Instance method
user = Warrant::User.get("s897lashdf454d")
features = user.list_features({ limit: 10 })
Response
[
{
"featureId": "feature-1"
},
{
"featureId": "feature-2"
}
]