Skip to content

Commit

Permalink
Fixed RestAPI post methods. Impoved docs for Uiscom. Updated Guzzle.
Browse files Browse the repository at this point in the history
  • Loading branch information
pashamesh committed Apr 23, 2020
1 parent 26c4442 commit 853c833
Show file tree
Hide file tree
Showing 5 changed files with 283 additions and 34 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
composer.phar
/vendor/
/nbproject/
.idea
.DS_Store
.DS_Store
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CoMagic API php client
# CoMagic & Uiscom API php client
CoMagic php client for:
- Rest API https://www.comagic.ru/support/api/
- Call API
Expand All @@ -22,6 +22,22 @@ $config = [
];

```

You also need to change domain if you client of Uiscom by specifying `endpoint`:
```php
$config = [
// required for Rest API and optional for Call API
'login' => 'put_login_here',
'password' => 'put_password_here',
'endpoint' => [
'rest_api' => 'https://api.uiscom.ru/api/'
],
// required for Call API if login and password not specified
'access_token' => 'put_access_token_here',
];

```

Do not foreget to add `Call API` permissions to user if you want to use login and password authorization for Call API


Expand Down
Loading

0 comments on commit 853c833

Please sign in to comment.