Using my jsonp call below, I get an error Response with status: 200 Ok for URL
. If I understand correctly, this means that my get request actually worked. However, my method of calling the data didn't. You may find the link to my data either below, or by clicking this link.
constructor(private jsonp: Jsonp){}
stockrun(){
this.jsonp.get('http://dev.markitondemand.com/MODApis/Api/v2/Quote/jsonp?symbol=AAPL&callback=myRun')
.map(res => res.json())
.subscribe((information) =>{
console.log(information);
});
}
The reason I entered myRun
into the URL is because the data is organized differently when there is no callback, like in http://dev.markitondemand.com/MODApis/Api/v2/Quote/jsonp?symbol=AAPL.
I would also like to add that without myRun
I get only the error 200 code. With it however, I also get cannot find name myRun
.