{"id":22797331,"url":"https://github.com/lazing/dianping-api","last_synced_at":"2025-03-30T18:29:07.707Z","repository":{"id":62557136,"uuid":"314432880","full_name":"lazing/dianping-api","owner":"lazing","description":"美团点评北极星平台Open API SDK for Ruby","archived":false,"fork":false,"pushed_at":"2021-08-12T09:26:57.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T11:46:15.879Z","etag":null,"topics":["api","dianping","ruby"],"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/lazing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-20T03:09:26.000Z","updated_at":"2021-08-12T09:27:00.000Z","dependencies_parsed_at":"2022-11-03T06:15:38.785Z","dependency_job_id":null,"html_url":"https://github.com/lazing/dianping-api","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/lazing%2Fdianping-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazing%2Fdianping-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazing%2Fdianping-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazing%2Fdianping-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazing","download_url":"https://codeload.github.com/lazing/dianping-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246362049,"owners_count":20765027,"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":["api","dianping","ruby"],"created_at":"2024-12-12T06:05:45.017Z","updated_at":"2025-03-30T18:29:07.683Z","avatar_url":"https://github.com/lazing.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dianping::Api\n\n美团点评北极星平台Open API SDK for Ruby\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dianping-api'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dianping-api\n\n## Usage\n\n注册 https://open.dianping.com 按开发测试说明使用\n\n```ruby\n\n# redirect_url 专门给获取access_token (session)使用\nclient = Dianping::Api::Client.new 'app_key', 'app_secrent', redirect_url: 'https://example.org/callback'\n\n# 公共请求参数会自动提供并签名\n# 正常结果 `code 200` 以外的返回报文会抛出异常\nbody_json = client.post '/routers/xxxx', biz_key1: 1, biz_key2: 2 \nbody_json = client.get '/routers/xxxx', url_key1: 1, url_key2: 2 \n\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dianping-api.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazing%2Fdianping-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazing%2Fdianping-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazing%2Fdianping-api/lists"}