Giter Club home page Giter Club logo

shopqi-app's Introduction

ShopQi App Engine

集成访问 ShopQi API 的功能,支持以 ShopQi 用户身份登录

安装

$ echo "gem 'shopqi-app'" >> Gemfile
$ bundle

使用

$ rails g shopqi_app client_id client_secret
$ bundle exec rake db:create db:migrate # 生成 Shop 商店实体

client_id, client_secret 在注册 Application 后显示,注册时 REDIRECT URI 填写 localhost:3000/callback

配置

如需修改 scope, 请打开 config/app_secret_config.yml

defaults: &defaults
  oauth:
    client_id: 'dffd069fa92096022628a1f7eb174bc85d90278b8c90ec7ebadfbd94924bd2b8'
    secret: 'e1805141c81c496e4779371f41263c9f74ac2ffd3728302296b8af10b64d9c9b'
    scope: 'read_products read_orders'
    redirect_uri: 'http://localhost:3000/callback'

最后

启动应用服务

$ rails s

访问 http://localhost:3000

shopqi-app's People

Contributors

saberma avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.