fetch(url,headers) , method of utils

Fetches a JSON document using an Http GET. Accept header is set to application/json if none is given.

Parameters:
name type description
url string full URL including any encoded query parameters
headers Object
// retrieve photos from Instagram with a given hashtag

var envelope = UB.utils.fetch("https://api.instagram.com/v1/tags/nofilter/media/recent?client_id=CLIENT-ID");

See all methods of the api.