Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auth = {
- username: “me@mydomain.com”,
- password: "#{pass}"
- }
- @result = HTTParty.get("https://192.168.50.50/api/customers",:basic_auth => auth, :headers => { ‘Customer-Id: 243’ } ).parsed_response
- puts @result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement