UNPKG

@360works/fmpromise

Version:
12 lines (10 loc) 588 B
import PerformScript from "./perform-script"; /** * Inserts from URL without worrying about cross-site scripting limitations imposed on the web viewer * @param url:string URL to fetch/post to * @param curlOptions:string @see https://fmhelp.filemaker.com/help/18/fmp/en/index.html#page/FMP_Help/curl-options.html * @return {Promise<string>} the response body. If you need headers, consider writing a custom FileMaker script. */ export function InsertFromUrl(url:string, curlOptions:string=''):Promise<string> { return PerformScript('fmPromise.insertFromURL', {url, curlOptions}); }