For a user event script, you will need to use the ...
# suitescript
s
For a user event script, you will need to use the N/https (or N/http) module to make any web service api calls, assuming the api you are referring to is outside of Netsuite