Skip to content

Commit

Permalink
Merge pull request #37 from emailplatform/version1.2.13
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
emailplatform authored Dec 31, 2019
2 parents 81e07e4 + db5d44d commit e7c293a
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,44 @@ $parser = new ApiParser($settings);
```
3. Call method from ApiParser
```php
$listid = 22;
$customFields = array(1,2);
$info = $parser->AddCustomFieldsToList($listid, $customFields);
var_dump($info);
$name = 'test segment';
$connector = 'and';

$listids = array(189);

$segments = array(
'Segments'=>
array(
array(
'listids' => $listids,
'rules' =>
array(
array(
'ruleName' => 'emailaddress',
'ruleOperator' => '=',
'ruleValue' => '[email protected]'
)
)
)
)
);

$result = $this->parser->CreateSegment($name, $segments, $connector);
var_dump($result);
```
<hr><br>

## Changelog:

### _Differences between **v1.2.12** and **v1.2.13**_
#### New method:

* **CreateSegment**
> ```csharp
> public function CreateSegment($name = "", $rules = array(), $connector = 'and')
>```
<br>
### _Differences between **v1.2.11** and **v1.2.12**_
#### New method:
Expand Down

0 comments on commit e7c293a

Please sign in to comment.