{"id":27870373,"url":"https://github.com/devholic22/devholic-library","last_synced_at":"2025-05-04T23:15:52.735Z","repository":{"id":189755544,"uuid":"681244326","full_name":"devholic22/devholic-library","owner":"devholic22","description":"useful libraries made by devholic","archived":false,"fork":false,"pushed_at":"2023-09-03T05:21:30.000Z","size":89,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T23:15:43.629Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/devholic22.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-08-21T15:28:34.000Z","updated_at":"2023-10-10T01:45:15.000Z","dependencies_parsed_at":"2023-08-21T16:46:24.562Z","dependency_job_id":"4af67257-2613-4914-80f8-218c1aef14d6","html_url":"https://github.com/devholic22/devholic-library","commit_stats":null,"previous_names":["devholic22/devholic-library"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devholic22%2Fdevholic-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devholic22%2Fdevholic-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devholic22%2Fdevholic-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devholic22%2Fdevholic-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devholic22","download_url":"https://codeload.github.com/devholic22/devholic-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252411840,"owners_count":21743613,"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":"2025-05-04T23:15:52.212Z","updated_at":"2025-05-04T23:15:52.729Z","avatar_url":"https://github.com/devholic22.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# devholic-library\nuseful libraries made by devholic  \n\n## How to use?\n### 1. Add it in your root build.gradle at the end of repositories:\n```groovy\nallprojects {\n    repositories {\n        ....\n        maven {\n            url 'https://jitpack.io'\n        }\n    }\n}\n```\n### 2. Add the dependency\n```groovy\ndependencies {\n    implementation 'com.github.devholic22:devholic-library:Tag' // tag means the latest tag\n}\n```\n## library lists\n### Discord web-hook function\nIf you have discord webhook URL and content what you want to send, You can send via this library.\n#### Example\n```java\nimport java.io.IOException;\nimport devholic.library.discordbot.DiscordSender;\npublic static void main(String[] args) throws IOException {\n    DiscordSender sender = new DiscordSender(\"DISCORD_WEBHOOK\");\n    System.out.println(sender.send(\"hello world\")); // result: send success\n}\n```\n\u003cimg width=\"673\" alt=\"스크린샷 2023-08-22 오전 12 54 36\" src=\"https://github.com/devholic22/devholic-library/assets/90085154/7fb318eb-b572-40df-9af2-e4bd90a72987\"\u003e\n\n### Get Google user information function (OAuth2)\nIf you have Access-Token about Google Server, you can get Google user information (HashMap) via this library.\n#### Example\n```java\nimport java.io.IOException;\nimport devholic.library.oauth2.google.GoogleTokenAgent;\npublic static void main(String[] args) throws IOException { // if access-token has problem, IOException occur.\n    Map\u003cString, String\u003e userResource = GoogleTokenAgent.getUserResource(\"ACCESS_TOKEN\");\n    for (String key : userResource.keySet()) {\n        System.out.println(key + \": \" + userResource.get(key));\n    }\n}\n```\n![스크린샷 2023-09-01 오후 4 26 18](https://github.com/devholic22/devholic-library/assets/90085154/74ff2bdf-e9af-48fe-99d8-502d299a8ef2)\n\n### Get Github user information function (OAuth2)\nIf you have Access-Token about Github Server, you can get Github user information (HashMap) via this library.  \nwhen you want \"bio\" value, use `result.get(key).split(\" \")` (because bio key has many values)\n#### Example\n```java\nimport java.util.Map;\nimport java.io.IOException;\nimport devholic.library.oauth2.github.GithubTokenAgent;\npublic static void main(String[] args) throws IOException { // if access-token has problem, IOException occur.\n    Map\u003cString, String\u003e result = GithubTokenAgent.getUserResource(\"ACCESS_TOKEN\");\n    for (String key : result.keySet()) {\n        System.out.println(key + \": \" + result.get(key));\n    }\n}\n```\n\u003cimg width=\"1169\" alt=\"스크린샷 2023-09-02 오전 1 35 22\" src=\"https://github.com/devholic22/devholic-library/assets/90085154/5ad9e264-2ac5-40b1-b63e-7e9c90a5f471\"\u003e\n\n### Get Apple user email information function (OAuth2, Not Exception catch yet!)\nIf you have id_token about Apple Server, you can get Apple user email information via this library.  \nIn this library, client used fragment way.\n#### Example\n```java\nimport devholic.library.oauth2.apple.AppleTokenAgent;\npublic static void main(String[] args) {\n    String email = AppleTokenAgent.getUserResource(\"appleToken\");\n    System.out.println(email);\n}\n```\n\u003cimg width=\"278\" alt=\"스크린샷 2023-09-03 오전 1 50 58\" src=\"https://github.com/devholic22/devholic-library/assets/90085154/8ad36059-7a2f-4a97-be04-9916add03135\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevholic22%2Fdevholic-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevholic22%2Fdevholic-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevholic22%2Fdevholic-library/lists"}