Hello all,
I am using the ubuntu image and simulator from YCTV website.
And I am developing a widget to get photos from a website which provides some API for developers.
The website provides a sample HTTP API as the following line
https://api.xuite.net/api.php?api_key=500e40b862395d8a177d402d43cee9db&api_sig=c9c835401bd22f9e8e2dbb73fed3be7f&method=xuite.photo.public.getPhotos&user_id=photo&album_id=4286795&pw=&start=0&limit=21
I will get correct responding result if I use Filefox browser in the ubuntu image.
But when I want to use the following code to get the web API respond, I will get nothing.
I don't know why this happened, could someone help me.
I am using the following code to fetch respond from web API.
var u = new URL();u.location="https://api.xuite.net/api.php?api_key=500e40b862395d8a177d402d43cee9db&api_sig=c9c835401bd22f9e8e2dbb73fed3be7f&method=xuite.photo.public.getPhotos&user_id=photo&album_id=4286795&pw=&start=0&limit=21";u.fetchAsync(function(u) {if ( u.response == 200 ) { log(u.result);}And the log message in the terminal is as this.
WM 00:00:08:254: [T:8929] Could not load URL