sag_api function

Build a SAG web service url