got API request from rails app working