{"id":13569515,"url":"https://github.com/motoki317/traq4j","last_synced_at":"2025-03-28T13:41:38.858Z","repository":{"id":39925294,"uuid":"269658827","full_name":"motoki317/traq4j","owner":"motoki317","description":"traQ API client for Java","archived":false,"fork":false,"pushed_at":"2022-05-21T02:25:26.000Z","size":10306,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T13:54:18.371Z","etag":null,"topics":["traq"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/motoki317.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":"2020-06-05T14:09:23.000Z","updated_at":"2021-10-31T11:18:47.000Z","dependencies_parsed_at":"2022-08-25T08:51:48.832Z","dependency_job_id":null,"html_url":"https://github.com/motoki317/traq4j","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motoki317%2Ftraq4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motoki317%2Ftraq4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motoki317%2Ftraq4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motoki317%2Ftraq4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/motoki317","download_url":"https://codeload.github.com/motoki317/traq4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246040431,"owners_count":20713992,"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":["traq"],"created_at":"2024-08-01T14:00:40.940Z","updated_at":"2025-03-28T13:41:38.834Z","avatar_url":"https://github.com/motoki317.png","language":"Java","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# traq4j\n\n[![GitHub release](https://img.shields.io/github/release/motoki317/traq4j.svg)](https://GitHub.com/motoki317/traq4j/releases/)\n\ntraQ API client for Java\n\nRequires Java 8+\n\n## Example usage\n\n### pom.xml\n\nMake sure to use the latest version shown below.\n\n[![GitHub release](https://img.shields.io/github/release/motoki317/traq4j.svg)](https://GitHub.com/motoki317/traq4j/releases/)\n\n```xml\n\u003cproject\u003e\n    \u003crepositories\u003e\n        \u003crepository\u003e\n            \u003cid\u003eGitHub traq4j\u003c/id\u003e\n            \u003curl\u003ehttps://raw.github.com/motoki317/traq4j/mvn-repo/\u003c/url\u003e\n        \u003c/repository\u003e\n    \u003c/repositories\u003e\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003ecom.github.motoki317\u003c/groupId\u003e\n            \u003cartifactId\u003etraq4j\u003c/artifactId\u003e\n            \u003cversion\u003e${traq4j.version}\u003c/version\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n\u003c/project\u003e\n```\n\n### Code\n\n```java\npublic class Main {\n    public static void main(String[] args){\n        // Create API client\n        String accessToken = System.getenv(\"ACCESS_TOKEN\");\n        ApiClient client = new ApiClient();\n        client.addDefaultHeader(\"Authorization\", \"Bearer \" + accessToken);\n\n        // Message API client\n        MessageApi messageApi = new MessageApi(client);\n\n        // Post message\n        String channelId = \"00000000-0000-0000-0000-000000000000\";\n        String content = \"oisu~\";\n        Message message = messageApi.postMessage(\n                UUID.fromString(channelId),\n                new PostMessageRequest().content(content).embed(false)\n        );\n        assert message != null;\n    }\n}\n```\n\n## Development\n\n1. `$ ./generate.sh`\n2. Reformat code (takes some time)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotoki317%2Ftraq4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmotoki317%2Ftraq4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotoki317%2Ftraq4j/lists"}