Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pobing/qq_connect
connect qq api by access_token
https://github.com/pobing/qq_connect
Last synced: about 1 month ago
JSON representation
connect qq api by access_token
- Host: GitHub
- URL: https://github.com/pobing/qq_connect
- Owner: pobing
- Created: 2014-02-17T10:33:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-18T07:59:57.000Z (almost 11 years ago)
- Last Synced: 2024-04-13T09:20:30.191Z (7 months ago)
- Language: Ruby
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
QQ Connect SDK for Ruby Api
================
### 通知:
本 gem 是在 [QQConnect SDK](https://github.com/046569/qq)基础上做了修改,使用的前提条件:已经通过Authorization Code获取了Access Token, 具体 [参考](http://wiki.connect.qq.com/%E4%BD%BF%E7%94%A8authorization_code%E8%8E%B7%E5%8F%96access_token
), 再通过获取openid 就可以调用 qq 互联的api### 安装:
在你的Gemfile里新增一行
`gem 'qq_connect'`
然后
`bundle install`
### 使用:
必须传入的两个参数:
```Ruby
appid // 你注册的 app的 appid
access_token //获取到的用户的accessToken
```
获取用户信息:```Ruby
user=Qq.new(appid,access_token])
res = user.get_user_info('https://graph.qq.com/user/get_user_info')
p res
```相关参数请查阅[QQ互联开放平台](http://connect.qq.com/intro/login/)
### 授权:
MIT