{"id":21201692,"url":"https://github.com/oleander/webhallon_wrapper","last_synced_at":"2025-07-10T06:31:53.761Z","repository":{"id":1419035,"uuid":"1522559","full_name":"oleander/webhallon_wrapper","owner":"oleander","description":"The bridge between Webhallon and Ruby","archived":false,"fork":false,"pushed_at":"2012-06-05T22:10:45.000Z","size":160,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-10T09:40:17.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/oleander/webhallon_wrapper","language":"Ruby","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/oleander.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}},"created_at":"2011-03-24T19:52:54.000Z","updated_at":"2013-12-17T05:28:48.000Z","dependencies_parsed_at":"2022-07-29T13:09:22.902Z","dependency_job_id":null,"html_url":"https://github.com/oleander/webhallon_wrapper","commit_stats":null,"previous_names":[],"tags_count":6,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fwebhallon_wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fwebhallon_wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fwebhallon_wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fwebhallon_wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleander","download_url":"https://codeload.github.com/oleander/webhallon_wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225622846,"owners_count":17498168,"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":"2024-11-20T20:10:32.766Z","updated_at":"2024-11-20T20:10:33.457Z","avatar_url":"https://github.com/oleander.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webhallon Client\n\nUsed **_internally_** at [Radiofy.se](http://radiofy.se).\n\n## How to use\n\n### Initialize\n\n```` ruby\nsocket = Webhallon::Client.new(\"http://server:8181\")\n````\n\n### Playlist\n\n#### Create\n\nCreate a non collaborative playlist.\n\n```` ruby\nsocket.playlists.create({\n  name: \"My playlist\",\n  collaborative: false\n})\n````\n\n### Wipe\n\n``` ruby\nsocket.tracks.wipe(\"spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS\")\n```\n\n#### Information\n\n```` ruby\nsocket.playlists.information(\"spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS\")\n````\n\n#### Update\n\n```` ruby\nsocket.playlists.update({\n  playlist: \"spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS\",\n  name: \"New name\",\n  collaborative: false\n})\n````\n\n### Tracks\n\n\n#### Add\n\n``` ruby\nsocket.tracks.add({\n  playlist: \"spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS\",\n  tracks: [\"spotify:track:2Huqz13a9lalQkSPeSk7Sy\"],\n  index: 0\n})\n```\n\n#### Range\n\n``` ruby\nsocket.tracks.keep({\n  playlist: \"spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS\",\n  range: 30..50\n})\n```\n\n### Webhallon::Playlist\n\n- **name** (String) The name of the playlist.\n- **link** (String) The spotify playlist url.\n- **length** (Integer) The amount of tracks in the playlist.\n- **tracks** (Array\u003c String \u003e) A list of spotify tracks.\n- **collaborative?** (Boolean) Is the playlist collaborative?\n\n## Requirements\n\n*Webhallon* is tested in *OS X 10.7.4* using Ruby *1.9.2*.\n\n## License\n\n*Webhallon* is released under the *MIT license*.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fwebhallon_wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleander%2Fwebhallon_wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fwebhallon_wrapper/lists"}