{"id":22218979,"url":"https://github.com/ajamous/camaraapi-toolkit","last_synced_at":"2025-10-08T14:25:57.624Z","repository":{"id":206430839,"uuid":"716625737","full_name":"ajamous/CamaraAPI-Toolkit","owner":"ajamous","description":"A collection of client scripts for quick testing and integration with the CAMARA API Standard","archived":false,"fork":false,"pushed_at":"2023-11-09T15:43:13.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T02:49:12.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajamous.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-09T14:29:00.000Z","updated_at":"2023-11-09T14:41:29.000Z","dependencies_parsed_at":"2023-11-09T15:51:21.562Z","dependency_job_id":null,"html_url":"https://github.com/ajamous/CamaraAPI-Toolkit","commit_stats":null,"previous_names":["ajamous/camaraapi-toolkit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajamous%2FCamaraAPI-Toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajamous%2FCamaraAPI-Toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajamous%2FCamaraAPI-Toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajamous%2FCamaraAPI-Toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajamous","download_url":"https://codeload.github.com/ajamous/CamaraAPI-Toolkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245415996,"owners_count":20611650,"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-12-02T22:30:03.144Z","updated_at":"2025-10-08T14:25:52.593Z","avatar_url":"https://github.com/ajamous.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CamaraAPI-Toolkit\nA collection of client scripts for quick testing and integration with the CAMARA API Standard\n\n\n## CamaraRoamingManager\n\n`CamaraRoamingManager.py` is a Python script for interacting with the CAMARA API to manage and check the roaming status of devices and to handle subscription events related to device roaming status.\n\n## Prerequisites\n\n- Python 3.6 or higher\n- `requests` library installed (install via `pip install requests`)\n- An OAuth 2.0 token for authentication with the CAMARA API (Refer to CAMARA API documentation on how to obtain this)\n\n### Configuration\n\nBefore running the script, set the following environment variables:\n\n- `CAMARA_API_BASE_URL`: The base URL of the CAMARA API.\n- `OAUTH_TOKEN`: Your OAuth 2.0 token for authorization.\n\nYou can set these directly in your environment, or use a `.env` file in the same directory as the script with the following content:\n\n```env\nCAMARA_API_BASE_URL=http://api.example.com/device-status/v0\nOAUTH_TOKEN=your_oauth_token_here\n```\n\nIf using a `.env` file, make sure the `python-dotenv` package is installed:\n\n```sh\npip install python-dotenv\n```\n\n### Usage\n\nRun the script from the command line, providing the necessary arguments for the action you want to perform.\n\n#### Check Roaming Status\n\n```sh\npython3 CamaraRoamingManager.py --phone +1234567890\n```\n\n#### Create a New Device Status Subscription\n\n```sh\npython CamaraRoamingManager.py --create --subscription_detail '{\"type\":\"org.camaraproject.device-status.v0.roaming-status\",\"device\":{\"phoneNumber\":\"+1234567890\"}}' --webhook '{\"notificationUrl\":\"https://your-webhook-url.com/callback\",\"notificationAuthToken\":\"your_auth_token\"}'\n```\n\n### List All Device Status Subscriptions\n\n```sh\npython3 CamaraRoamingManager.py --list\n```\n\n#### Retrieve a Specific Device Status Subscription\n\n```sh\npython3 CamaraRoamingManager.py --retrieve \"subscription_id_here\"\n```\n\n#### Delete a Specific Device Status Subscription\n\n```sh\npython3 CamaraRoamingManager.py --delete \"subscription_id_here\"\n```\n\n### Support\n\nFor support and further assistance, please contact support@telecomsxchange.com or refer to the [CAMARA API documentation](https://github.com/camaraproject/).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajamous%2Fcamaraapi-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajamous%2Fcamaraapi-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajamous%2Fcamaraapi-toolkit/lists"}