README.md in surveymonkey-0.4.4 vs README.md in surveymonkey-0.5.0
- old
+ new
@@ -32,15 +32,10 @@
```console
$ export SURVEYMONKEY_APIKEY=XXXXXXXXXXX
$ export SURVEYMONKEY_ACCESSTOKEN=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
```
-Alternately, you can pass them as arguments to `Surveymonkey::Client`, _e.g._
-```ruby
-sm = Surveymonkey::Client.new api_key: 'XXXXXXXXXXXX', access_token: 'YYYYYYYYYYYYYYYYYYYY'
-```
-
### API Methods
The SurveyMonkey API methods are documented [here](https://developer.surveymonkey.com/), under "API Methods". They are implemented as class methods, which you call like so:
```ruby
[1] pry(main)> Surveymonkey.get_user_details
@@ -48,13 +43,13 @@
"data"=>
{"user_details"=>
{"username"=>"XXXXXX", "is_paid_account"=>true, "is_enterprise_user"=>false}}}
```
-To pass parameters to an API method, pass a hash as the `method_params` parameter like so:
+To pass parameters to an API method, pass a hash like so:
```ruby
-[2] pry(main)> Surveymonkey.get_survey_list('method_params' => {"page_size" => 5, "order_asc" => true})
+[2] pry(main)> Surveymonkey.get_survey_list("page_size" => 5, "order_asc" => true)
=> {"status"=>0,
"data"=>
{"surveys"=>
[{"survey_id"=>"XXXXXXXX"},
{"survey_id"=>"XXXXXXXX"},
@@ -86,5 +81,9 @@
1. Fork it ( https://github.com/hakamadare/surveymonkey/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
+
+### Esteemed Contributors
+
+* @KazuyaMuroi