I am using Python and moving into rails. I have login python file:
resp = session.post('https://dummy.dummy.com/api/v1/sessions', data={
"username": "email",
"password": "######"
})
this will return API Token and from that we will get roles. How do I use this login in ruby on rails ?