He’s talking about an epicor function library function, not a generic programming question.
John, there are some recent examples here if you search for calling functions in customization. Two ways to do it, either with the restclient shipped with higher versions or with a plain old build it yourself http client. I posted an example a few days ago of using the restclient but I have another example if you’re wanting to use http client