Download the PHP package growthoptimized/vwo-sdk without Composer
On this page you can find all versions of the php package growthoptimized/vwo-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download growthoptimized/vwo-sdk
More information about growthoptimized/vwo-sdk
Files in growthoptimized/vwo-sdk
Informations about the package vwo-sdk
VWO PHP SDK
PHP Wrapper to interact with the VWO API.
Installation
Usage
Simply create an VWO object, with a valid OAuth Token in the constructor:
Accounts
php // Get all campaigns in an account / sub-account $vwo->account($accountId)->campaigns()->all();
// Get details of a specific campaign $vwo->account($accountId)->campaign($campaignId)->find();
// Get share link for a specific campaign $vwo->account($accountId)->campaign($campaignId)->shareLink();
// Create a campaign
$params = [
'type' => 'ab',
'name' => 'My new campaign',
'urls' => [
array(
'type' => 'url',
'value' => 'https://mywebsitename.com'
)
],
'primaryUrl' => 'https://mywebsitename.com',
'goals' => [
array(
'name' => 'New goal',
'type' => 'visitPage',
'urls' => [
array(
'type' => 'url',
'value' => 'https://mywebsitename.com'
)
]
)
],
'variations' => [
array(
'name' => 'default',
'isControl' => false,
'percentSplit' => 0
),
array(
'name' => 'VarA',
'isControl' => true
),
array(
'name' => 'VarB',
'isControl' => false
)
]
]; $vwo->account($accountId)->campaigns()->create($params);
// Update a campaign $vwo->account($accountId)->campaign($campaignId)->update([ 'campaigns' => [ 'name' => 'New name' ] ]);
// Update campaign status $vwo->account($accountId)->campaign($campaignId)->update([ 'ids' => [14,15], 'status' => 'TRASHED' ]);
// Launch a campaign $vwo->account($accountId)->campaign($campaignId)->launch();
// Pause a campaign $vwo->account($accountId)->campaign($campaignId)->pause();
// Stop a campaign $vwo->account($accountId)->campaign($campaignId)->stop();
// Restore a campaign $vwo->account($accountId)->campaign($campaignId)->restore();
// Trash a campaign $vwo->account($accountId)->campaign($campaignId)->trash();
### Variations
### Goals
### Tracking Code
### Thresholds
### Users
### Drafts
### Sections
### Billing
### Labels
### Partners
### Third Party Integrations