{"id":15881333,"url":"https://github.com/willrax/toppr","last_synced_at":"2025-08-13T10:32:47.659Z","repository":{"id":4540854,"uuid":"5681336","full_name":"willrax/toppr","owner":"willrax","description":"Ruby wrapper for desktoppr.co API.","archived":false,"fork":false,"pushed_at":"2013-05-27T02:07:48.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-27T18:50:38.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/willrax.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":"2012-09-05T02:09:58.000Z","updated_at":"2014-01-27T09:39:36.000Z","dependencies_parsed_at":"2022-07-07T16:47:04.607Z","dependency_job_id":null,"html_url":"https://github.com/willrax/toppr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willrax%2Ftoppr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willrax%2Ftoppr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willrax%2Ftoppr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willrax%2Ftoppr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willrax","download_url":"https://codeload.github.com/willrax/toppr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229758179,"owners_count":18119669,"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-10-06T03:41:18.647Z","updated_at":"2024-12-14T21:29:01.739Z","avatar_url":"https://github.com/willrax.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toppr [![Build Status](https://secure.travis-ci.org/willrax/toppr.png?branch=master)][travis]\n\n[travis]: http://travis-ci.org/willrax/toppr\n\nA simple ruby wrapper for the desktoppr.co API.\n\n## Installation\n\n    $ gem install toppr\n\n## Examples\n\nEach request returns a hash with method access.\n\n### Request a users profile\n\n```ruby\nToppr.user('willrax')\n=\u003e #\u003cHashie::Mash created_at=\"2012-06-20T11:57:41Z\" followers_count=2 following_count=0 lifetime_member=false name=\"willrax\" ... \u003e\n```\n\n### Wallpapers\n\nYou can fetch all the wallpapers on the desktoppr database\n\n```ruby\nToppr.wallpapers\n```\n\nOr you can fetch a random wallpaper\n\n```ruby\nToppr.random\n=\u003e #\u003cHashie::Mash bytes=2267435 created_at=\"2012-07-01T04:12:40Z\" height=1440 id=76285 image=#\u003cHashie::Mash preview=#\u003cHashie::Mash height=540 url=\"http://a.desktopprassets.com/wallpapers/bddef83d0dd366676a0c9977eecd2d06560d7231/preview_wp_2560-3.jpeg\" width=960\u003e thumb=#\u003cHashie::Mash height=185 url=\"http://a.desktopprassets.com/wallpapers/bddef83d0dd366676a0c9977eecd2d06560d7231/thumb_wp_2560-3.jpeg\" width=296\u003e url=\"http://a.desktopprassets.com/wallpapers/bddef83d0dd366676a0c9977eecd2d06560d7231/wp_2560-3.jpeg\"\u003e palette=[] review_state=\"safe\" url=\"http://www.desktoppr.co/wallpapers/76285\" user_count=6 user_id=5286 views_count=15 width=2560\u003e\n```\n\nYou can also add a username param to fetch either all the wallpapers that a user has in their collection or a random one.\n\n```ruby\nToppr.wallpapers('willrax')\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillrax%2Ftoppr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillrax%2Ftoppr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillrax%2Ftoppr/lists"}