Looking to retrieve my tumblr posts through an api.
Successfully set up the api key using Angular2 and typescript.
Utilizing jsonp to avoid any cross origin problems.
Here is my current code snippet:
var config = {
params: {
action: "query",
prop: "revisions",
format: "json",
callback: "JSON_CALLBACK"
}
}
var url = "https://api.tumblr.com/v2/blog/thepoolcover.tumblr.com/posts?api_key=lqoK2G4BT9X8xnewyW0l45ky4aTKWTqQ3PzF14gefIglpIRnBz";
this.jsonp.request(url, config).subscribe(response => {
console.log(response);
});
No typescript compiler error, but encountering a console error in the browser: