Something like that was discussed before over here. As I remember it, there wasn't a good, safe solution. If, however, your API is being called in the
programmer's environment, and not yours, that node may
be useful.
Comment on Re: evaluating syntax of code blocks (code)