How to show the result
<apex:page docType="html-5.0" cache="false"
showHeader="false"
sidebar="false"
standardStylesheets="false"
standardController="Account"
extensions="SharinPixSearchPage"
applyHtmlTag="false"
applyBodyTag="false">
<iframe src="{!searchUrl}" height="400px" width="100%" style="border: 0" > </iframe>
</apex:page> public class SharinPixSearchPage {
public String url { get; set; }
public String albumId { get; set; }
public Map<String, Object> params;
private sharinpix.Client clientInstance = sharinpix.Client.getInstance();
public SharinPixSearchPage(ApexPages.StandardController controller) {
albumId = controller.getId();
Map<String, Object> query = new Map<String, Object> {
'q' => '*',
'thumbnail_tags' => true,
'thumbnail_filename' => true,
'thumbnail_date' => 'L'
};
params = new Map<String, Object>{
'path' => 'search?v=2&search_bar=false&q='+clientInstance.token(query)
};
}
public String getSearchUrl() {
return clientInstance.getAppHost() + '?token=' + clientInstance.token(params);
}
}
Last updated
Was this helpful?

