Devise not allowing active resource to access the services
Solution 1:
After a long search on the above topic, I found this:
In the config/initializers/devise.rb, I added the following lines:
require 'active_resource'
config.http_authenticatable = true
This allowed me to fetch data.