Be sure you have installed gems:
-
gem install sinatra
-
gem install sinatra-cross_origin
-
gem uninstall open-uri
-
gem install nokogiri
-
gem install json
Request: localhost:4567/play/com.nianticproject.ingress
Response: {“youtube_link”:“www.youtube.com/embed/Ss-Z-QjFUio”,“icon_link”:“lh3.ggpht.com/j8lGWdhEjmw5rVZ6CiJY_k5D0iPqp_jomAUdyS_n8v5SUQVb8Dt-USXUZXmx1QAca8zJ=w300”}