{"id":19140660,"url":"https://github.com/palexdev/raw4j","last_synced_at":"2025-11-13T09:05:03.613Z","repository":{"id":110000738,"uuid":"392117346","full_name":"palexdev/RAW4J","owner":"palexdev","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-29T18:27:40.000Z","size":242,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T19:13:33.951Z","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":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palexdev.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}},"created_at":"2021-08-02T22:56:22.000Z","updated_at":"2021-10-21T07:22:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"afac482e-6f93-4048-bb15-d23fb1556148","html_url":"https://github.com/palexdev/RAW4J","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/palexdev/RAW4J","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FRAW4J","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FRAW4J/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FRAW4J/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FRAW4J/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palexdev","download_url":"https://codeload.github.com/palexdev/RAW4J/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FRAW4J/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284185903,"owners_count":26961601,"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","status":"online","status_checked_at":"2025-11-13T02:00:06.582Z","response_time":61,"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":[],"created_at":"2024-11-09T07:18:21.780Z","updated_at":"2025-11-13T09:05:03.585Z","avatar_url":"https://github.com/palexdev.png","language":"Java","readme":"\u003ch1 align=\"center\"\u003eRAW4J\u003c/h1\u003e\n  \nRAW4J is a new Reddit API Wrapper for Java.\nAs of now it's still in development, see the [Wiki](https://github.com/palexdev/RAW4J/wiki) to check what has been implemented and what it's still lacking.\n  \n\u003ch3 align=\"center\"\u003eExample of usage\u003c/h3\u003e\n\n\n```java\n/*\nThe main class is RedditClient. It offers method to login and to access Reddit APIs.\nTo obtain an instance of RedditClient you first need to build an OAuthParameters object. This contains\nall the needed information to successfully authenticate your app and retrieve the access token.\nLet's see an example for a Web App.\n*/\nOAuthParameters parameters = new OAuthParameters.AuthCodeFlowBuilder()\n\t.setUserAgent(USER_AGENT)\n\t.setClientID(APP_CLIENT_ID)\n\t.setClientSecret(APP_CLIENT_SECRET)\n\t.setRedirectURI(REDIRECT_URI)\n\t.setPermanent(...) //(Optional, true or false, check OAuth Types in wiki for more info)\n\t.setScopes(A List of scopes)\n\t.build(LoginType.WEB_APP); // Note that for the Authorization Code Flow you must specify if it's a Web App or an Installed App\n\nRedditClient client = RedditClient.login(parameters);\n\n/*\nNow that you have obtained the client instance, it's recommended to check if the instance is not null.\nThis can happen if some error occurred during the OAuth Flow (the user denied the access for example).\nTo make calls to Reddit APIs, for example to retrieve a user info...\n*/\nUser user = client.api().userApi().getUser(USERNAME);\n\n/*\nOr to retrieve the logged user info...\n*/\nUser user = client.api().accountApi().getLoggedUser();\n\n/*\nNote that the logged user info are stored in memory, so if you need to refresh the data\nyou must call...\n */\nUser user = client.api().userApi().refreshLoggedUser().getLoggedUser();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalexdev%2Fraw4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalexdev%2Fraw4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalexdev%2Fraw4j/lists"}