{"id":33978483,"url":"https://github.com/pashamesh/uiscom-api-client","last_synced_at":"2025-12-13T02:52:19.987Z","repository":{"id":37588032,"uuid":"79909699","full_name":"pashamesh/uiscom-api-client","owner":"pashamesh","description":"UisCom (formerly CoMagic) Data API and Call API PHP client ","archived":false,"fork":false,"pushed_at":"2025-11-09T12:40:35.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T14:35:11.034Z","etag":null,"topics":["api-client","call-api","comagic","data-api","php","php-sdk","uis","uiscom"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pashamesh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-01-24T12:30:38.000Z","updated_at":"2025-11-09T12:40:38.000Z","dependencies_parsed_at":"2025-10-22T22:24:04.777Z","dependency_job_id":"00841410-b02e-4500-a800-ef9ff19513eb","html_url":"https://github.com/pashamesh/uiscom-api-client","commit_stats":null,"previous_names":["pashamesh/uiscom-api-client","pashamesh/comagic-api"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/pashamesh/uiscom-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pashamesh%2Fuiscom-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pashamesh%2Fuiscom-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pashamesh%2Fuiscom-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pashamesh%2Fuiscom-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pashamesh","download_url":"https://codeload.github.com/pashamesh/uiscom-api-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pashamesh%2Fuiscom-api-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27699042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","call-api","comagic","data-api","php","php-sdk","uis","uiscom"],"created_at":"2025-12-13T02:52:17.960Z","updated_at":"2025-12-13T02:52:19.980Z","avatar_url":"https://github.com/pashamesh.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [UIScom](https://www.uiscom.ru/) (formerly [CoMagic](https://main.comagic.ru/)) API PHP client\n\n[![Unit tests](https://github.com/pashamesh/uiscom-api-client/actions/workflows/tests.yml/badge.svg)](https://github.com/pashamesh/uiscom-api-client/actions/workflows/tests.yml)\n[![Static analysis](https://github.com/pashamesh/uiscom-api-client/actions/workflows/static.yml/badge.svg)](https://github.com/pashamesh/uiscom-api-client/actions/workflows/static.yml)\n[![Code style](https://github.com/pashamesh/uiscom-api-client/actions/workflows/code_style.yml/badge.svg)](https://github.com/pashamesh/uiscom-api-client/actions/workflows/code_style.yml)\n[\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"\u003e](LICENSE)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/pashamesh/uiscom-api-client.svg?style=flat-square)](https://packagist.org/packages/pashamesh/uiscom-api-client)\n[![Total Downloads](https://img.shields.io/packagist/dt/pashamesh/uiscom-api-client.svg?style=flat-square)](https://packagist.org/packages/pashamesh/uiscom-api-client)\n\nUIS (CoMagic) PHP client for the following APIs:\n- [Call API](https://www.uiscom.ru/academiya/spravochnyj-centr/dokumentatsiya-api/call_api/)\n- [Data API](https://www.uiscom.ru/academiya/spravochnyj-centr/dokumentatsiya-api/data_api/)\n\n## Requirements\nThis package requires PHP 7.4 or above.\n\n## Installation\nTo get started, install package via the Composer package manager:\n\n`composer require pashamesh/uiscom-api-client`\n\n## Usage\n\n### Configuring\nArray is using to configure Rest API and Call API clients.\n```php\n$config = [\n    // required for Rest API and optional for Call API\n    'login' =\u003e 'put_login_here',\n    'password' =\u003e 'put_password_here',\n    // required for Call API if login and password not specified\n    'access_token' =\u003e 'put_access_token_here',\n];\n\n```\n\nYou also need to change domain if you client of Uiscom by specifying `endpoint`:\n\n```php\nuse Uiscom\\CallApiConfig;\n\n$config = new CallApiConfig('login', 'password', 'access_token')\n```\n\nDo not forget to add `Call API` permissions to user if you want to use login and\npassword authorization for Call API.\n\n### Call API\nAPI Methods names need to be specified in CamelCase\n\n```php\nuse Uiscom\\CallApiConfig;\nuse Uiscom\\CallApiClient;\n\n$config = new CallApiConfig('login', 'password', 'access_token');\n$callApi = new CallApiClient($config);\nvar_dump($callApi-\u003elistCalls());\n```\n\nIt's possible to get response metadata after API request is made\n```php\nvar_dump($callApi-\u003emetadata());\n```\n\n### Data API\n\nAPI Methods names need to be specified in CamelCase\n\n```php\nuse Uiscom\\DataApiConfig;\nuse Uiscom\\DataApiClient;\n\n$config = new DataApiConfig('access_token');\n$dataApi = new DataApiClient($config);\nvar_dump(\n    $dataApi-\u003egetCallsReport([\n        'date_from' =\u003e '2025-01-10 00:00:00',\n        'date_till' =\u003e '2025-01-13 23:59:59'\n    ])\n);\n```\n\nIt's possible to get response metadata after API request is made\n\n```php\nvar_dump($dataApi-\u003emetadata());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpashamesh%2Fuiscom-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpashamesh%2Fuiscom-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpashamesh%2Fuiscom-api-client/lists"}