Commit b98cb641 authored by Artem Iksanov's avatar Artem Iksanov
Browse files

Update README.md

parent 389335ec
## Fast usage
```php
$newDeal = (new Meiji\BrizoCRM\Api('my-secret-token'))->with('deals')->create(['name'=>'Новая','manager_id'=>'1']);
$newDeal = (new Meiji\BrizoCRM\Api('meiji', 'my-secret-token'))->with('deals')->create(['name'=>'Новая','manager_id'=>'1']);
// or
$newDeal = (new Meiji\BrizoCRM\Api\Deals)->setToken('my-secret-token')->create(['name'=>'Новая','manager_id'=>'1']);
$newDeal = (new Meiji\BrizoCRM\Api\Deals)->setDomain('meiji')->setToken('my-secret-token')->create(['name'=>'Новая','manager_id'=>'1']);
```
## Details usage
......@@ -13,6 +13,7 @@ $newDeal = (new Meiji\BrizoCRM\Api\Deals)->setToken('my-secret-token')->create([
use Meiji\BrizoCRM\Api;
$bearerToken = 'dsERGE4564GBFDG34t3GDEREBbrgbdfbg4564DG3'; // Bearer Token
$domain = 'meiji'; // Domain
$brizoApi = new Api($bearerToken); // Meiji\BrizoCRM\Api::class
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment