Skip to content

Commit

Permalink
Changes in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstroz committed Nov 29, 2017
1 parent ddf764b commit 03fc0a7
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The preferred way to install this extension is through [composer](http://getcomp
Run

```
composer require --prefer-source "mrstroz/yii2-salesmanago" "*"
composer require "mrstroz/yii2-salesmanago" "*"
```

or add
Expand Down Expand Up @@ -40,25 +40,25 @@ Usage

2. Add new contact to SALESmanago
```php

$salesmanago = Yii::$app->salesmanago;
$result = $salesmanago->call('contact/upsert',[
'contact' => [
'email' => 'example@example.com',
'state' => 'CUSTOMER',
],
'owner' => 'owner@owner.com',
'tags' => [
'TAG'
],
'properties' => array('page' => 'newsletter'),
'lang' => 'PL',
'useApiDoubleOptIn' => true,
'forceOptIn' => true,
'forceOptOut' => false,
'forcePhoneOptIn' => true,
'forcePhoneOptOut' => false
]);
$result = $salesmanago->call('contact/upsert',[
contact' => [
'email' => 'example@example.com',
'state' => 'CUSTOMER',
],
'owner' => 'owner@owner.com',
'tags' => [
'TAG'
],
'properties' => array('page' => 'newsletter'),
'lang' => 'PL',
'useApiDoubleOptIn' => true,
'forceOptIn' => true,
'forceOptOut' => false,
'forcePhoneOptIn' => true,
'forcePhoneOptOut' => false
]
);
```

Check [SALESmanago Technical API Documentation](http://support.salesmanago.pl/wp-content/uploads/2014/10/SALESmanago-API-en.pdf) for all available options.

0 comments on commit 03fc0a7

Please sign in to comment.