Added main code for Tumblr API