How to access API scripts in netlify functions

Hi, I previously was consuming an API in JavaScript that writes to Google-Sheets- I am trying to migrate it to a Netlify function-but i seems I cannot have a script tag in the function. I tried adding a snippet on the Netlify web UI- but to no avail. All i did was define it on the web UI, was there something else I was supposed to do? Is snippet injection not what I am looking for. Any help would be appreciated.

Netlify functions are lambda functions so you’ll have all of the tools available to you that you can perform with a lambda function. We’ve got a heap of examples which may help!