{"id":36344833,"url":"https://github.com/sailing-cz/api-client","last_synced_at":"2026-01-11T13:02:36.184Z","repository":{"id":230189986,"uuid":"778703677","full_name":"sailing-cz/api-client","owner":"sailing-cz","description":"Client in PHP for access the Sailing.cz API.","archived":false,"fork":false,"pushed_at":"2024-12-07T20:57:23.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T12:48:50.581Z","etag":null,"topics":["api","api-client","api-client-php","evidence","sailing"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sailing-cz.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-28T08:31:51.000Z","updated_at":"2024-12-07T20:56:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b97d0c41-c51c-4a32-ad81-cb050170af49","html_url":"https://github.com/sailing-cz/api-client","commit_stats":null,"previous_names":["sailing-cz/api-client"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/sailing-cz/api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailing-cz%2Fapi-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailing-cz%2Fapi-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailing-cz%2Fapi-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailing-cz%2Fapi-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sailing-cz","download_url":"https://codeload.github.com/sailing-cz/api-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sailing-cz%2Fapi-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28304263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","api-client","api-client-php","evidence","sailing"],"created_at":"2026-01-11T13:02:36.127Z","updated_at":"2026-01-11T13:02:36.177Z","avatar_url":"https://github.com/sailing-cz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# api-client\n\nInstalace klienta do vašeho PHP projektu:\n\n```bash\ncomposer require sailing-cz/api-client\n```\n\nZákladní použití veřejných funkcí API:\n\n```php\nuse Sailing\\ApiClient\\ApiClient;\n\n$api = new ApiClient( 'your-software/1.0' );\n\n$club = $api-\u003egetClubs();\n```\n\nPřihlášení uživatele k sailing.cz:\n\n```php\n$api = new ApiClient( 'your-software/1.0' );\n\n$api-\u003eloginUser( $username, $password );\n\n$members = $api-\u003egetMembers( '2103' );\n```\n\nVytvoření systémového tokenu na základě uživatelského přihlášení:\n\n```php\n$api = new ApiClient( 'your-software/1.0' );\n\nmy $systemToken = $api-\u003ecreateSystemToken( $username, $password, 'my-new-secret', 'my-software-token-1' );\n\n// store $systemToken in db or somewhere\n```\n\nPřístup pomocí systémového tokenu:\n\n```php\n$api = new ApiClient( 'your-software/1.0', FALSE, '2103' );\n\n$api-\u003eloginSystem( $systemToken, $systemSecret );\n\n$api-\u003eactivateLicense( '2103-0847' );\n```\n\nZměna e-mailu člena ČSJ:\n\n```php\n$api = new ApiClient( 'your-software/1.0', FALSE, '2103' );\n\n$api-\u003eloginSystem( $systemToken, $systemSecret );\n\n$api-\u003esetMemberDetails( '2103-0847', [ 'email' =\u003e 'sorm@milansorm.cz' ] );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsailing-cz%2Fapi-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsailing-cz%2Fapi-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsailing-cz%2Fapi-client/lists"}