ruby - Error working with Typhoreus and SeoMoz API -
ruby - Error working with Typhoreus and SeoMoz API -
i working seomoz api using typhoreus gem. authenticate(signed authentication) api, utilize next code:
url = "http://lsapi.seomoz.com/linkscape/url-metrics/"+website.url.strip+"?cols=103079231520" response = typhoeus::request.get(url, :username => "member-xxxxxxx", :password => "abcxyzwhatever") error: ethon::errors::invalidoption: option: username invalid. please seek userpwd instead of username.
if alter username userpwd, asks alter password userpwd well.
where going wrong?
the api changed bit, should work:
typhoeus::request.get(url, :userpwd => "member-xxxxxxx:abcxyzwhatever")
ruby ruby-on-rails-3 typhoeus
Comments
Post a Comment