1/* global console,$ */ 2var behanceAPI = function() { 3 var key; 4 var baseURL = "http://www.behance.net/v2/"; 5 6 function setKey(k) { 7 key = k; 8 } 9 10 function getProjects(user, cb) { 11 var url = baseURL + "users/" + user + "/projects?api_key=" + key + "&callback="; 12 $.get(url, {}, function(res, code) { 13 cb(res.projects); 14 }, "JSONP"); 15 } 16 17 return { 18 setKey: setKey, 19 getProjects: getProjects 20 }; 21 22}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.