{"id":37028098,"url":"https://github.com/trolley/java-sdk","last_synced_at":"2026-01-14T03:21:08.057Z","repository":{"id":16342342,"uuid":"75150059","full_name":"trolley/java-sdk","owner":"trolley","description":"Trolley SDK for Java","archived":false,"fork":false,"pushed_at":"2025-03-04T18:15:57.000Z","size":294,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-11T16:04:44.513Z","etag":null,"topics":["java","java-sdk","sdk","trolley","trolley-sdk"],"latest_commit_sha":null,"homepage":"https://trolley.com","language":"Java","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/trolley.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-30T04:05:30.000Z","updated_at":"2025-03-04T18:08:52.000Z","dependencies_parsed_at":"2022-08-07T08:15:19.769Z","dependency_job_id":"4d1b7e36-a48d-40fe-9bd0-149174cab20e","html_url":"https://github.com/trolley/java-sdk","commit_stats":null,"previous_names":["trolley/java-sdk","paymentrails/java-sdk"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/trolley/java-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trolley%2Fjava-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trolley%2Fjava-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trolley%2Fjava-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trolley%2Fjava-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trolley","download_url":"https://codeload.github.com/trolley/java-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trolley%2Fjava-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408825,"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":["java","java-sdk","sdk","trolley","trolley-sdk"],"created_at":"2026-01-14T03:21:07.530Z","updated_at":"2026-01-14T03:21:08.044Z","avatar_url":"https://github.com/trolley.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trolley Java SDK\n\nNative [Java](https://www.oracle.com/java/index.html) SDK for Trolley\n\n## Installation\n\n#### Maven\n\nAdd this dependency to your project's POM:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.trolley\u003c/groupId\u003e\n    \u003cartifactId\u003ejava-sdk\u003c/artifactId\u003e\n    \u003cversion\u003e2.1.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThe library's source is hosted at [https://github.com/Trolley/java-sdk](https://github.com/trolley/java-sdk)\n\nThe library can be found at: [https://central.sonatype.com/artifact/com.trolley/java-sdk/](https://central.sonatype.com/artifact/com.trolley/java-sdk/)\n\n## Getting Started\n\n```java\nimport com.trolley.java-sdk.*;\nimport com.trolley.Exceptions.*;\n\npublic class TrolleyExample {\n    public static void main(String[] args) {\n        Configuration config = new Configuration(\"\u003cYOUR_ACCESS_KEY\u003e\",\"\u003cYOUR_SECRET_KEY\u003e\");\n        \n        // Provide your custom HttpClient\n        // Configuration config = new Configuration(\"\u003cYOUR_ACCESS_KEY\u003e\",\"\u003cYOUR_SECRET_KEY\u003e\", customHttpClient);\n\n        Gateway client = new Gateway(config);\n\n        try {\n            Recipient recipient = client.recipient.find(\"R-1a2B3c4D5e6F7g8H9i0J1k\");\n            System.out.println(recipient.getId());\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n}\n```\n\n\n\n## Providing custom API base url\n\nIf you are running from source and want to provide custom base url for the SDK to use (e.g. using a mock server temporarily), you will have to do the following:\n\n1. Create a file named `.env` in the SDK source's root\n2. Add a parameter in the env file:\n```java\nBASE_URL=https://localhost:3000\n```\n3. While creating the `Configuration` object, pass a third parameter `\"development\"`  so the constructor can look for the `BASE_URL` in the `.env` file:\n\n```java\nConfiguration config = new Configuration(\"ACCESS_KEY\",\"SECRET_KEY\", \"development\")\nGateway client = new Gateway(config);\n```\n\nA sample `.env` file is provided in the project rood named `.env.example`.\n\n\n## Documentation\n\nMethods should all have Java Doc comments to help you understand their usage.\n\nFor more code samples, refer to our documentation on [https://docs.trolley.com](https://docs.trolley.com)\n\nLimited [Javadocs](https://github.com/PaymentRails/java-sdk/tree/master/docs) are available too.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrolley%2Fjava-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrolley%2Fjava-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrolley%2Fjava-sdk/lists"}