Skip to content

Commit

Permalink
chore: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamg1304 committed Oct 3, 2024
1 parent dd98e08 commit c68b5d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ $getFlag = $vwoClient->getFlag('feature_key', $userContext);
$isFlagEnabled = $getFlag['isEnabled'];

// get variable
$variableValue = $getFlag->getVariable('stringVar', 'default-value');
$variableValue = $getFlag->getVariable('variable_key', 'default-value');

// track event
$trackRes = $vwoClient->trackEvent('event-name', $userContext);
$trackRes = $vwoClient->trackEvent('event_name', $userContext);

// set Attribute
$setAttribute = $vwoClient->setAttribute('attribute-name', 'attribute-value', $userContext);
$setAttribute = $vwoClient->setAttribute('attribute_key', 'attribute_value', $userContext);
```

## Changelog
Expand Down

0 comments on commit c68b5d3

Please sign in to comment.