javascript - Sketchfab AJAX json call -


i'm trying collect url sketchfab model thumbnail.

view-source:https://api.sketchfab.com/v2/models/b894deeab7904df3a1f6016053604960

when ik go above url, can see information need.

now i'm trying make ajax call can dynamicaly use thumbnail url.

$.ajax({  							url: 'https://api.sketchfab.com/v2/models/b894deeab7904df3a1f6016053604960',  							type: 'get',  							crossdomain: true,  							success: function(data){  								alert(data);  							}  						});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.3/jquery.min.js"></script>

somehow, i'm getting [object object] back, don't understand doing wrong. stupid...

you getting json data in object form - make readable need stringify it:

alert(json.stringify(data)) 

but shouldn't need this, other make readable, work back.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -