Get Settings File

Each VWO SDK client corresponds to the settings file representing the current state of the campaign settings, that is, a list of FullStack running campaign settings. See Review core concepts for more information.

Description

VWO SDK is a helper for executing various FullStack capabilities. It requires a certain set of settings for its work. These settings are related to your FullStack campaigns you create or update in the VWO application.
So, before instantiating the VWO SDK, settings file needs to be fetched.

The method accepts two parameters:

  • accountId - account-id associated with your VWO account.
  • sdkKey - generated inside the respective Project under the FullStack Testing.

Parameter Definitions

ParamterTypeDescription
accountId
Required
NumberYour VWO application's Account ID.
sdkKey
Required
StringUnique environment-key provided to you inside the Projects section in VWO application..

Returns

Returns the settings file which helps in Instantiating the VWO SDK. This method handles any error in fetching the settings file. Please follow the best practices to ensure that your app is prevented from crashing.

ValueTypeDescription
Settings FileObjectThe settings representing the current state of the running VWO FullStack campaings.

Usage

<?php

require_once('vendor/autoload.php');

use vwo\VWO;

$settingsFile = VWO::getSettingsFile($accountId, $sdkKey);