{"id":21177485,"url":"https://github.com/betsol/justclick","last_synced_at":"2025-06-28T12:34:13.998Z","repository":{"id":150819612,"uuid":"21345257","full_name":"betsol/justclick","owner":"betsol","description":"PHP client for JustClick API","archived":false,"fork":false,"pushed_at":"2014-06-30T10:05:11.000Z","size":144,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T18:41:48.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/betsol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-30T08:59:17.000Z","updated_at":"2018-01-08T17:43:03.000Z","dependencies_parsed_at":"2023-06-26T00:39:49.039Z","dependency_job_id":null,"html_url":"https://github.com/betsol/justclick","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/betsol/justclick","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fjustclick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fjustclick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fjustclick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fjustclick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betsol","download_url":"https://codeload.github.com/betsol/justclick/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fjustclick/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262432021,"owners_count":23310157,"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","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":[],"created_at":"2024-11-20T17:16:15.282Z","updated_at":"2025-06-28T12:34:13.980Z","avatar_url":"https://github.com/betsol.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JustClick API client\n\nThis PHP library provides you with tools needed to interact with [JustClick API][jc-api-docs].\nIt uses [Guzzle][guzzle] to send HTTP requests.\n\n## Usage\n\n```php\nuse Guzzle\\Http\\Client as HttpClient;\nuse Betsol\\JustClick\\Client;\nuse Betsol\\JustClick\\Entity\\Order;\n\n// Creating a Guzzle client.\n$httpClient = new HttpClient;\n\n// JustClick client configuration.\n$config = [\n    'username' =\u003e 'login',\n    'secret' =\u003e '8b3e4e1f8236b6683235222d3034b317',\n];\n\n// Creating JustClick client.\n$justClickClient = new Client($config, $httpClient);\n\n// Creating a new order.\n$order = new Order;\n\n// Adding products to the order.\n$order-\u003eaddProduct('some-product');\n$order-\u003eaddProduct('another-product');\n\n// You can specify custom price for a product.\n$order-\u003eaddProduct('yet-another-product', 700);\n\n// Adding different fields to the order.\n$order-\u003esetEmail('email@example.com');\n$order-\u003esetNameFirst('Slava');\n$order-\u003esetNameLast('Fomin');\n$order-\u003esetCountry('Russia');\n$order-\u003esetCity('Moscow');\n$order-\u003esetAddress('Some address here');\n\n// Issuing a query to JustClick API.\n$response = $justClickClient-\u003ecreateOrder($order);\n\n// Handling response.\n$orderId = (int) $response['bill_id'];\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Better Solutions, Slava Fomin II\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n[jc-api-docs]: http://support.justclick.ru/index.php?/Knowledgebase/List/Index/5/api\n[guzzle]: http://guzzle.readthedocs.org/en/latest/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetsol%2Fjustclick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetsol%2Fjustclick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetsol%2Fjustclick/lists"}