~tim/wuparty

e22ac3e3f7ee62bd7541e91b3e69a4a410982de5 ā€” Joshua Siler 9 years ago d5606fd
updated docs
2 files changed, 7 insertions(+), 1 deletions(-)

M README.rdoc
M lib/wuparty.rb
M README.rdoc => README.rdoc +6 -0
@@ 59,6 59,12 @@ Make sure you have latest version installed (1.0.0 or higher).
    result = wufoo.add_webhook(FORM_ID, 'http://www.postbin.org/zh9iy1')
    result = wufoo.delete_webhook(FORM_ID, result["WebHookPutResult"]["Hash"])
    
    # You can use the Login API (http://www.wufoo.com/docs/api/v3/login/), like so
    result = WuParty.login(myIntegrationKey, users_email, users_password) 

    # or 
    result = WuParty.login(myIntegrationKey, users_email, users_password, users_subdomain) 

== Feedback

Iā€™d love to hear from you if you have suggestions for improvement, bug fixes, or whatever.

M lib/wuparty.rb => lib/wuparty.rb +1 -1
@@ 94,7 94,7 @@ class WuParty
  API_VERSION = '3.0'

  # uses the Login API to fetch a user's API key
  def self.fetch_api_key(integration_key, email, password, account = nil)
  def self.login(integration_key, email, password, account = nil)
    result = self.post("https://wufoo.com/api/v3/login.json", { :body => { :integrationKey => integration_key, :email => email, :password => password, :subdomain => account }})
    puts result
    if result.is_a?(String)