Screenshot using browserstack

Hello everyone

I am using rails 3.2.9 and using “browserstack-screenshot” gem for getting screentshot.

but i am getting the following error message. But i can login using this account setting and can get screenshot on their.

`http_response_code_check’: 401 Unauthorized : Authentication Failed! (RuntimeError)

My code:

settings = {:username => “xxxxx”, :password => “xxxxxx”}

client = Screenshot::Client.new(settings)

params = {

:url => “www.google.com”,

:browsers => [

{:os=>“Windows”,:os_version=>“7”,:browser=>“ie”,:browser_version=>“8.0”}

]

}

request_id = @client.generate_screenshots(params)