Giter VIP home page Giter VIP logo

qq's Introduction

QQ Connect SDK for Ruby On Rails

警告:

此版本是fork别人的,主要解决了对ruby1.8.7的兼容问题

0.1.1开始,重新设计了整套SDK,因此并不向下兼容.

若你不需要使用新的API,则可以保留旧版本.

安装:

在你的Gemfile里新增一行

gem 'qq', :git => 'git://github.com/046569/qq.git'

然后

bundle install

使用:

在你喜欢的地方定义:

APPID='你的ID'

APPKEY='你的key'

REDURL='&redirect_uri=你的跳转地址'

回调页示例(获取用户昵称):

user=Qq.new(params[:code],request.env['HTTP_CONNECTION'])
user.get_user_info('https://graph.qq.com/user/get_user_info')['nickname']

相关参数请查阅QQ互联开放平台

授权:

MIT

qq's People

Contributors

046569 avatar yinchangxin avatar xumc avatar

Watchers

James Cloos 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.