{"id":21833046,"url":"https://github.com/null-none/py-whmcs","last_synced_at":"2025-09-09T05:46:52.546Z","repository":{"id":43785828,"uuid":"501328088","full_name":"null-none/py-whmcs","owner":"null-none","description":"Python client library and command line interface for WHMCS hosting management system","archived":false,"fork":false,"pushed_at":"2022-09-15T18:49:58.000Z","size":35,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-03T02:43:43.763Z","etag":null,"topics":["api","python","whmcs","whmcs-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/null-none.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}},"created_at":"2022-06-08T16:24:30.000Z","updated_at":"2023-03-10T07:07:22.000Z","dependencies_parsed_at":"2023-01-18T09:05:46.971Z","dependency_job_id":null,"html_url":"https://github.com/null-none/py-whmcs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/null-none/py-whmcs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpy-whmcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpy-whmcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpy-whmcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpy-whmcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/null-none","download_url":"https://codeload.github.com/null-none/py-whmcs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpy-whmcs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274250508,"owners_count":25249396,"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-09-09T02:00:10.223Z","response_time":80,"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","python","whmcs","whmcs-api"],"created_at":"2024-11-27T19:27:36.785Z","updated_at":"2025-09-09T05:46:52.497Z","avatar_url":"https://github.com/null-none.png","language":"Python","readme":"# py-whmcs\n\npy-whmcs is a Python interface to the WHMCS REST API.\n\n## Usage\n\nCreate a WHMCS interface with the API URL and credentials and use it to\ncall the API.\n\n```python\nimport whmcspy\n\nwhmcs = whmcspy.WHMCS(\n    'https://example.com/whmcs/includes/api.php',\n    'identifier',\n    'secret')\nwhmcs.accept_order(2)\n```\n\nIn general API methods can be called as methods in the WHMCS class. For\navailable API methods see the [WHMCS API reference](\nhttps://developers.whmcs.com/api-reference/).\nNote that the casing of the methods differ from the API actions. While the\nAPI actions are CamelCased the methods are snake_cased.\n\n### Calling unimplemented actions\n\nNot all API actions are implemented as Python methods (they will be\nimplemented as required, of course pull-requests are accepted). In order to\ncall actions that are not yet implemented [call()] can be used. Example:\n\n```python\nresponse = whmcs.call(\n    'SomeAction',\n    param=value,\n    list_param=[\n        element,\n        element2,\n    ]\n)\n```\n\nSee the [call()] documentation for more info.\n\nSome actions return batches of results. To iterate over all results multiple\nrequests need to be done. For this a convenience method is added:\n[paginated_call()]\nThis method is a generator which yields batches. Using keywords additional\nparams are accepted. Example:\n\n```python\nfor response in whmcs.paginated_call(\n        'GetOrders'):\n    for order in response['orders']['order']:\n        print(order)\n```\n\n[call()]: https://py-whmcs.readthedocs.io/en/latest/whmcspy.html#whmcspy.api.WHMCS.call\n[paginated_call()]: https://py-whmcs.readthedocs.io/en/latest/whmcspy.html#whmcspy.api.WHMCS.paginated_call\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fpy-whmcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnull-none%2Fpy-whmcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fpy-whmcs/lists"}