The call of the flickr API is suddenly failing: I have the following response :
jsonFlickrApi({"stat":"fail", "code":95, "message":"SSL is required"})
Does anyone know how to fix this ? Thanks in advance for your help
This is my block of code: jQuery.ajax({
url: "http://api.flickr.com/services/rest/",
type: 'get',
async: false,
data: {
'format': 'json',
'user_id': 'XXXX',
'api_key': 'XXXX',
'lang': 'fr-fr',
'method': 'flickr.photosets.getPhotos',
'photoset_id' : photosetId
},
dataType: 'jsonp',
jsonpCallback: 'jsonFlickrApi',
success: function(data) {//code
}
根据官方的flicker博客,它们使用ssl更改了api flicker的通信方式,因此在您的插件中,您必须将所有http链接更改为https并对其进行测试。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.