{"id":37022814,"url":"https://github.com/smatechnologies/opcon-rest-api-client-java","last_synced_at":"2026-01-14T02:43:46.909Z","repository":{"id":53730398,"uuid":"226958083","full_name":"smatechnologies/opcon-rest-api-client-java","owner":"smatechnologies","description":"Java library providing a way to interact with OpCon REST API","archived":false,"fork":false,"pushed_at":"2023-02-14T07:16:24.000Z","size":281,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-07-30T12:43:08.047Z","etag":null,"topics":["library","opcon-api","opcon-sdk"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smatechnologies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-09T20:09:58.000Z","updated_at":"2024-03-20T21:07:41.000Z","dependencies_parsed_at":"2022-09-15T01:41:35.539Z","dependency_job_id":null,"html_url":"https://github.com/smatechnologies/opcon-rest-api-client-java","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":"smatechnologies/repo-template","purl":"pkg:github/smatechnologies/opcon-rest-api-client-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smatechnologies%2Fopcon-rest-api-client-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smatechnologies%2Fopcon-rest-api-client-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smatechnologies%2Fopcon-rest-api-client-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smatechnologies%2Fopcon-rest-api-client-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smatechnologies","download_url":"https://codeload.github.com/smatechnologies/opcon-rest-api-client-java/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smatechnologies%2Fopcon-rest-api-client-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["library","opcon-api","opcon-sdk"],"created_at":"2026-01-14T02:43:46.173Z","updated_at":"2026-01-14T02:43:46.901Z","avatar_url":"https://github.com/smatechnologies.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/SMATechnologies/opcon-rest-api-client-java/workflows/Deploy%20Release/badge.svg)](https://github.com/SMATechnologies/opcon-rest-api-client-java/actions)\n\n[![Actions Status](https://github.com/SMATechnologies/opcon-rest-api-client-java/workflows/Deploy%20Snapshot/badge.svg)](https://github.com/SMATechnologies/opcon-rest-api-client-java/actions)\n\n\n# OpCon REST API Java Client library\nJava client library for OpCon REST API\n\n# Disclaimer\nNo Support and No Warranty are provided by SMA Technologies for this project and related material. The use of this project's files is on your own risk.\n\nSMA Technologies assumes no liability for damage caused by the usage of any of the files offered here via this Github repository.\n\n# Prerequisites\n\nJava 11\n\n# Instructions\n\nAvailable from Central Maven Repository (https://search.maven.org/artifact/com.smatechnologies/opcon-rest-api-client):\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.smatechnologies\u003c/groupId\u003e\n    \u003cartifactId\u003eopcon-rest-api-client\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# Example\n\n```java\nOpconApiProfile profile = new OpconApiProfile(\"https://localhost:9010/api\");\n\nOpconApi opconApi;\ntry {\n    Client client = SmClientBuilder.get()\n            .configureDefaultClientBuilder(defaultClientBuilder -\u003e defaultClientBuilder\n                    .setTrustAllCert(true)\n            )\n            .setDebug(true)\n            .setFailOnUnknownProperties(true)\n            .build();\n\n    opconApi = new OpconApi(client, profile, new OpconApi.OpconApiListener() {\n\n        @Override\n        public void onFailed(WsException e) {\n            e.printStackTrace();\n        }\n    });\n\n    opconApi.login(\"MyOpconUser\", \"MyOpconPassword\");\n\n} catch (KeyManagementException | NoSuchAlgorithmException | WsException e) {\n    e.printStackTrace();\n    return;\n}\n\ntry {\n    //Fetch Machines\n    List\u003cMachine\u003e machines = opconApi.machines().get(null);\n\n    //Fetch Roles with machines\n    RolesCriteria rolesCriteria = new RolesCriteria();\n    rolesCriteria.setIncludeMachines(true);\n    List\u003cRole\u003e roles = opconApi.roles().get(rolesCriteria);\n    \n} catch (WsException e) {\n    e.printStackTrace();\n}\n\ntry {\n    opconApi.logout();\n} catch (WsException e) {\n    e.printStackTrace();\n}\n```\n# License\nCopyright 2019 SMA Technologies\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n# Contributing\nWe love contributions, please read our [Contribution Guide](CONTRIBUTING.md) to get started!\n\n# Code of Conduct\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code-of-conduct.md)\nSMA Technologies has adopted the [Contributor Covenant](CODE_OF_CONDUCT.md) as its Code of Conduct, and we expect project participants to adhere to it. Please read the [full text](CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmatechnologies%2Fopcon-rest-api-client-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmatechnologies%2Fopcon-rest-api-client-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmatechnologies%2Fopcon-rest-api-client-java/lists"}