Launch Darkly offers unified feature management and experimentation. Feature flags, context-aware targeting, and experimentation in one powerful software delivery platform.
Go to siteLaunch Darkly's API provides the means to automate feature flagging and manage experiments in your software delivery. This power, harnessed within Pipedream's serverless environment, can transform how you handle software deployment strategies, perform A/B testing, and control access to new features. The API's capabilities extend to updating flags, fetching flag statuses, and managing user segments, all of which can be integrated into sophisticated, automated workflows that react to external triggers or scheduled events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
launch_darkly_oauth: {
type: "app",
app: "launch_darkly_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.launchdarkly.com/api/v2/projects`,
headers: {
Authorization: `Bearer ${this.launch_darkly_oauth.$auth.oauth_access_token}`,
},
})
},
})
Automated Feature Rollout Based on Performance Metrics: Use Launch Darkly's API to monitor feature performance via an analytics platform like New Relic. If a new feature's performance meets predefined criteria, automatically update the feature flag to roll out the feature to all users.
Dynamic User Segment Management: Sync Launch Darkly user segments with a CRM like Salesforce. When a user's status changes in Salesforce, use a Pipedream workflow to automatically update user segment membership in Launch Darkly, ensuring targeted feature flagging and personalization.
Scheduled Feature Flag Clean-up: Set up a Pipedream scheduled workflow to regularly call the Launch Darkly API to review feature flags. Flags that are no longer in use, based on a set of conditions like 'last updated' or 'active status', can be programmatically removed or archived to maintain a lean and efficient feature flag ecosystem.
LaunchDarkly (OAuth) uses OAuth authentication. When you connect your LaunchDarkly (OAuth) account, Pipedream will open a popup window where you can sign into LaunchDarkly (OAuth) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any LaunchDarkly (OAuth) API.
Pipedream requests the following authorization scopes when you connect your account:
reader
GET
https://app.launchdarkly.com/trust/oauth/authorize
?
client_id={{oauth.client_id}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
redirect_uri={{oauth.redirect_uri}}
POST
https://app.launchdarkly.com/trust/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=authorization_code
&
code={{oauth.code}}
&
redirect_uri={{oauth.redirect_uri}}
POST
https://app.launchdarkly.com/trust/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}