{"id":27999233,"url":"https://github.com/voximplant/apiclient-java","last_synced_at":"2025-05-08T22:57:21.836Z","repository":{"id":57729504,"uuid":"291660120","full_name":"voximplant/apiclient-java","owner":"voximplant","description":"Voximplant Management API Java client library","archived":false,"fork":false,"pushed_at":"2025-04-21T12:10:13.000Z","size":1111,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-08T22:57:09.317Z","etag":null,"topics":["management-api","voximplant"],"latest_commit_sha":null,"homepage":"","language":"Java","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/voximplant.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-31T08:35:37.000Z","updated_at":"2025-04-21T12:10:16.000Z","dependencies_parsed_at":"2023-12-06T14:29:25.277Z","dependency_job_id":"77677604-d13f-4765-989a-fe5e73b0057f","html_url":"https://github.com/voximplant/apiclient-java","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voximplant%2Fapiclient-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voximplant%2Fapiclient-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voximplant%2Fapiclient-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voximplant%2Fapiclient-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voximplant","download_url":"https://codeload.github.com/voximplant/apiclient-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160791,"owners_count":21863627,"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":["management-api","voximplant"],"created_at":"2025-05-08T22:57:21.270Z","updated_at":"2025-05-08T22:57:21.830Z","avatar_url":"https://github.com/voximplant.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Voximplant API client library\n\n#### Version 2.1.0\n\n## Prerequisites\n\nIn order to use the Voximplant Java SDK, you need the following:\n\n1. A developer account. If you don't have one, [sign up here](https://voximplant.com/sign-up/).\n1. A private API key. There are 2 options to obtain it:\n    1. Either generate it in the [Voximplant Control panel](https://manage.voximplant.com/settings/service_accounts)\n    1. Or call the [CreateKey](https://voximplant.com/docs/references/httpapi/managing_role_system#createkey) HTTP API\n       method with the\n       specified [authentication parameters](https://voximplant.com/docs/references/httpapi/auth_parameters). You'll\n       receive a response with the __result__ field in it. Save the __result__ value in a file (since we don't store the\n       keys, save it securely on your side).\n1. JDK 8 and above\n\n## How to use\n\nSetup a `maven` dependency for your project:\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.voximplant\u003c/groupId\u003e\n    \u003cartifactId\u003eapiclient\u003c/artifactId\u003e\n    \u003cversion\u003e2.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nNext, specify the path to the JSON service account file in the constructor.\n\n```java\nVoximplantAPIClient api=new VoximplantAPIClient(\"/path/to/credentials.json\");\n```\n\n## Examples\n\n### Get a call history item\n\n```java\nVoximplantAPIClient api=new VoximplantAPIClient(\"/path/to/credentials.json\");\n\n        SimpleDateFormat df=new SimpleDateFormat(\"yyyy-MM-dd\");\n\n        GetCallHistoryResponse callHistory=api.getCallHistory(new GetCallHistoryRequest()\n        .setFromDate(df.parse(\"2020-09-01\"))\n        .setToDate(df.parse(\"2020-10-01\"))\n        .setCount(1));\n\n        CallSessionInfoType[]callSessions=callHistory.getResult();\n        if(callSessions.length==1){\n        CallSessionInfoType result=callSessions[0];\n        }\n```\n\n### Send an SMS\n\n```java\nVoximplantAPIClient api=new VoximplantAPIClient(\"/path/to/credentials.json\");\n\n        SendSmsMessageResponse sendSmsMessageResponse=api.sendSmsMessage(new SendSmsMessageRequest()\n        .setSource(\"447443332211\")\n        .setDestination(\"447443332212\")\n        .setSmsBody(\"Test message\"));\n\n        if(sendSmsMessageResponse.hasResult()){\n        long result=sendSmsMessageResponse.getResult();\n        }else{\n        throw new IllegalArgumentException(sendSmsMessageResponse.getError().getMsg());\n        }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoximplant%2Fapiclient-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoximplant%2Fapiclient-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoximplant%2Fapiclient-java/lists"}