Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
launchdarkly-api-typescript
Advanced tools
This repository contains a client library for LaunchDarkly's REST API. This client was automatically generated from our OpenAPI specification.
This REST API is for custom integrations, data export, or automating your feature flag workflows. DO NOT use this client library to include feature flags in your web or mobile application. To integrate feature flags with your application, please see the SDK documentation
import { FeatureFlagsApi, FeatureFlagsApiApiKeys, FeatureFlagBody } from "launchdarkly-api-typescript";
let apiInstance = new FeatureFlagsApi();
const apiKey = process.env.LD_API_KEY || '';
apiInstance.setApiKey(FeatureFlagsApiApiKeys.Token, apiKey);
const successCallback = function(data){
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
};
const errorCallback = function(error) {
console.error('Error!', error);
process.exit(1);
};
const createSuccessCallback = function(data){
successCallback(data);
// Clean up
apiInstance.deleteFeatureFlag(projectName, keyName).then(successCallback, errorCallback);
};
const projectName = "openapi";
const keyName = "test-typescript";
const flagBody: FeatureFlagBody = {
name: "Test Flag Typescript",
key: keyName,
variations: [{value: [1, 2]}, {value: [3, 4]}, {value: [5]}]
};
apiInstance.postFeatureFlag(projectName, flagBody).then(createSuccessCallback, errorCallback);
FAQs
OpenAPI client for launchdarkly-api-typescript
We found that launchdarkly-api-typescript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.