With the LaunchDarkly API, you can easily create custom user experiences for your application or website. You can use the API to segment your users based on criteria such as location, device, or even custom attributes, and then change the application experience for those segments in real-time.
Here are a few examples of what you can build with the LaunchDarkly API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
launchdarkly: {
type: "app",
app: "launchdarkly",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.launchdarkly.com/api/v2/projects`,
headers: {
"authorization": `${this.launchdarkly.$auth.access_token}`,
},
})
},
})
LaunchDarkly uses API keys for authentication. When you connect your LaunchDarkly account, Pipedream securely stores the keys so you can easily authenticate to LaunchDarkly APIs in both code and no-code steps.
Create an access token for LaunchDarkly's REST API at https://app.launchdarkly.com/settings/authorization.