{"id":16381013,"url":"https://github.com/jasl/bifubao","last_synced_at":"2025-10-28T02:13:28.631Z","repository":{"id":18835931,"uuid":"22051556","full_name":"jasl/bifubao","owner":"jasl","description":"An unofficial bifubao ruby gem","archived":false,"fork":false,"pushed_at":"2014-08-25T17:55:54.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-15T05:53:17.103Z","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/jasl.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":"2014-07-21T04:24:11.000Z","updated_at":"2014-07-22T08:18:38.000Z","dependencies_parsed_at":"2022-08-19T15:20:32.055Z","dependency_job_id":null,"html_url":"https://github.com/jasl/bifubao","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/jasl%2Fbifubao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasl%2Fbifubao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasl%2Fbifubao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasl%2Fbifubao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasl","download_url":"https://codeload.github.com/jasl/bifubao/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240035954,"owners_count":19737603,"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-11T03:53:09.415Z","updated_at":"2025-10-28T02:13:23.599Z","avatar_url":"https://github.com/jasl.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bifubao\n\nA simple bifubao ruby gem, without unnecessary magic or wraper, it's directly facing how bifubao api works.\n\nPlease read bifubao official document first: \u003chttp://wiki.bifubao.com/twiki/bin/view/Main/WebHome\u003e .\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bifubao'\n```\n\nor development version\n\n```ruby\ngem 'bifubao', :github =\u003e 'jasl/bifubao'\n```\n\nAnd then execute:\n\n```sh\n$ bundle\n```\n\n## Usage\n\n### Config\n\n```ruby\nBifubao.private_key = YOUR_PRIVATE_KEY\nBifubao.app_hash_id = YOUR_HASH_ID\n```\n\n### Create external\n\nOfficial API document: \u003chttp://wiki.bifubao.com/twiki/bin/view/Main/V1OrderCreateexternal\u003e\n\n```ruby\noptions = {\n  :external_order_id =\u003e 'YOUR_ORDER_ID',         # 20130801000001\n  :display_name      =\u003e 'YOUR_ORDER_SUBJECCT',   # Test Good\n  :price_cny         =\u003e 100\n}\n\nBifubao::Service.create_external(options) # returns json contains result\n```\n\n### Verify notify\n\nTODO\n\n## Contributing\n\nBug report or pull request are welcome.\n\n### Make a pull request\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nPlease write unit test with your code if necessary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasl%2Fbifubao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasl%2Fbifubao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasl%2Fbifubao/lists"}