{"id":27156135,"url":"https://github.com/iprodigy/bttv4j","last_synced_at":"2025-04-10T01:59:37.792Z","repository":{"id":286330337,"uuid":"959636494","full_name":"iProdigy/bttv4j","owner":"iProdigy","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-05T18:25:38.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T19:27:03.720Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iProdigy.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":"2025-04-03T05:35:06.000Z","updated_at":"2025-04-05T18:25:42.000Z","dependencies_parsed_at":"2025-04-05T19:37:30.614Z","dependency_job_id":null,"html_url":"https://github.com/iProdigy/bttv4j","commit_stats":null,"previous_names":["iprodigy/bttv4j"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iProdigy%2Fbttv4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iProdigy%2Fbttv4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iProdigy%2Fbttv4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iProdigy%2Fbttv4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iProdigy","download_url":"https://codeload.github.com/iProdigy/bttv4j/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247918900,"owners_count":21018044,"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-04-08T19:59:06.125Z","updated_at":"2025-04-08T19:59:06.650Z","avatar_url":"https://github.com/iProdigy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BTTV4J\n\nModular Java wrapper for [BetterTTV](https://betterttv.com/)'s [REST API](https://betterttv.com/developers/api) and [WebSocket](https://betterttv.com/developers/websocket) interface.\n\n## REST API\n\n```java\nBetterTTV api = BttvApiFactory.build();\n\n// Obtain the global emotes\nCollection\u003cEmote\u003e emotes = api.getGlobalEmotes();\n\n// Query the emotes for a given channel\nUser user = api.getUser(Provider.TWITCH, \"11785491\");\n\n// Query which users have BTTV badges for a given platform\nCollection\u003cBadgedUser\u003e badges = api.getBadges(Provider.TWITCH);\n```\n\n## WebSocket\n\n```java\n// Establish websocket connection\nBttvSocket ws = new BttvSocket();\n\n// Prepare event handlers\nws.getEventManager().onEvent(EmoteCreateEvent.class, System.out::println);\nws.getEventManager().onEvent(EmoteUpdateEvent.class, System.out::println);\nws.getEventManager().onEvent(EmoteDeleteEvent.class, System.out::println);\nws.getEventManager().onEvent(UserUpdateEvent.class, System.out::println);\n\n// Join channels\nString channelId = \"53888434\", userId = \"149223493\";\nws.joinChannel(Provider.TWITCH, channelId);\nws.broadcastMe(Provider.TWITCH, channelId, userId);\n```\n\n## Notice\n\nThis project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with BetterTTV or NightDev, LLC. or Twitch Interactive.\n\nAll trademarks are property of their respective owners, and this project does not grant any rights to any trademarks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiprodigy%2Fbttv4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiprodigy%2Fbttv4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiprodigy%2Fbttv4j/lists"}