API call get_resource_path not getting custom image resolution

21 views
Skip to first unread message

Fabian Goldie

unread,
Jul 7, 2021, 6:42:25 PM7/7/21
to ResourceSpace
Hi i am currently useing get_resource_path call to get images for an app, in my resource space instance i have created a custom image resolution so that it forces image that our pulled to be in that set resolution. i can get the original or low resolution images when setting them to the appropriate keys but not the custom one below is my javascript call code:

let query = "user=" + this.user + "&function=get_resource_path&ref=" + refid + "&getfilepath=false"; 
 if (size !== undefined && size!=''){ 
             query+="&size="+size+ "&generate=true"; 
 } if (extension !== undefined && extension!=''){
             query+="&extension="+extension; 
 }
 let sign = this.sha256(this.key + query); 

return $.get( "https://starklearning.free.resourcespace.com/api/?" + query + "&sign=" + sign);

any help would be appriciated
Reply all
Reply to author
Forward
0 new messages