Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 627 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 627 Bytes

wenjuan_api gem

https://www.wenjuan.com/open/devdocument_v3/?chapter=1_1

Wenjuan API Version 3

gem install wenjuan_api

add config file:

$ rails generate wenjuan_api:install

In rails console:

wenjuan_api = WenjuanApi.new

wenjuan_api.get_login_url('wj_user', 'wj_email')

get report chart url

wenjuan_api.project_chart_url('username', 'wj_short_id')

get project answer list

results = wenjuan.project_detail_list('username', 'wj_short_id')
# Be careful, here the username should be the wenjuan account username, not answerer's user name.
```ruby