{"id":20926106,"url":"https://github.com/starhoshi/lastfmclient","last_synced_at":"2025-09-12T21:36:52.321Z","repository":{"id":56919605,"uuid":"121827872","full_name":"starhoshi/LastfmClient","owner":"starhoshi","description":"A Swifty last.fm api client using Codable.","archived":false,"fork":false,"pushed_at":"2018-03-06T14:54:37.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-20T02:37:12.897Z","etag":null,"topics":["codable","ios","lastfm","lastfm-api","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/starhoshi.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":"2018-02-17T04:41:13.000Z","updated_at":"2021-12-16T02:44:27.000Z","dependencies_parsed_at":"2022-08-21T04:20:13.298Z","dependency_job_id":null,"html_url":"https://github.com/starhoshi/LastfmClient","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starhoshi%2FLastfmClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starhoshi%2FLastfmClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starhoshi%2FLastfmClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starhoshi%2FLastfmClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starhoshi","download_url":"https://codeload.github.com/starhoshi/LastfmClient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318756,"owners_count":20272144,"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":["codable","ios","lastfm","lastfm-api","swift"],"created_at":"2024-11-18T20:36:48.711Z","updated_at":"2025-03-13T01:15:52.077Z","avatar_url":"https://github.com/starhoshi.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LastfmClient\nA Swifty last.fm api client using Codable.\n\nLastfm's API is not very good. Nested Dictionary, Nonexistent key, etc.  \nIf you use LastfmClient, you can handle last.fm api type-safely and Swifty.\n\n# TODO\n\n* [ ] User\n  * [x] user.getTopTracks\n  * [x] user.getRecentTracks\n  * [x] user.getInfo\n  * [ ] ...\n* [ ] Track\n* [ ] Tag\n* [ ] Library\n* [ ] Geo\n* [ ] Chart\n* [ ] Auth\n* [ ] Artist\n* [ ] Album\n\n# Installation\n\n```\npod install LastfmClient\n```\n\n# Usage\n\n```swift\nimport LastfmClient\n\nConfiguration.shared.configure(apiKey: \"YOUR_LASTFM_API_KEY\")\nlet user = UserAPI(user: \"star__hoshi\")\nuser.getInfo { result in\n    switch result {\n    case .success(let user):\n        XCTAssertEqual(user.name, \"star__hoshi\")\n    case .failure(let error):\n        XCTFail(\"\\(error)\")\n    }\n}\n```\n\n# Test\n\n1. Get your lastfm api key from [here](https://www.last.fm/api/account/create).\n2. Add `TestConfiguration.swift` to LastfmClientTests.\n    * Please copy `TestConfiguration.sample.swift` and use it.\n    * Set lastfm api key.\n3. Run tests!\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarhoshi%2Flastfmclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarhoshi%2Flastfmclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarhoshi%2Flastfmclient/lists"}