8000 GitHub - optimizely/fx-api-cookbook at ae31ae2bda16aa8ba3852d6d6b1f6ffb64dce3d3
[go: up one dir, main page]

Skip to content

This repo contains API recipes to get started with Optimizely Feature Experimentation (FX). 👩‍🍳

Notifications You must be signed in to change notification settings

optimizely/fx-api-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Feature Experimentation REST API Cookbook

This repo contains API recipes to get started with Optimizely Feature Experimentation (FX). 👩‍🍳

We'll walk through some of the most common operations in the lifecycle of an experiment using the Optimizely APIs. 🧪

Prerequisites

To get started with this API cookbook, first complete the below setup.

Install VS Code + Extensions

We'll be using VS Code as a REST client make requests to the Optimizely APIs. Use the below links to install:

Get Optimizely API Personal Access Token

Follow these steps to get a personal access token to the Optimizely APIs.

VS Code REST Client Setup

Next, we'll setup VS Code so we can make requests to the Optimizely APIs.

Let's create some environment variables for the Optimizely API endpoints and your personal access token.

In VS Code, create a directory named .vscode in the root of your project. In this directory, create a file named settings.json. Make sure to replace the token value with your personal access token:

{
  "rest-client.environmentVariables": {
    "$shared": {
      "flagsUrl": "https://api.optimizely.com/flags/v1",
      "baseUrl": "https://api.optimizely.com/v2",
      "token": "{{yourToken}}",
      "projectId": {{yourProjectId}}
    }
  }
}

You can find more information on adding environment variables here.

Overview

Now we'll execute some of the most common operations in the lifecycle of an experiment via the Optimizely APIs, including:

  1. Create a feature flag and flag variables.
  2. Create variations.
  3. Create events.
  4. Create attributes.
  5. Create audiences.
  6. Create an experiment.
  7. Launch the experiment.
  8. Conclude the experiment.
  9. Analyze results.

Each of the above sections has its own .rest file in the requests directory of this repo. To execute the requests, open each file in VS Code and click the Send Request link above the request.

For more information on how to send requests using the REST Client extension, see here.

About

This repo contains API recipes to get started with Optimizely Feature Experimentation (FX). 👩‍🍳

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0