g4ms_refreshToken will attempt to refresh the token for an account/service. If a refresh is not needed (within 60 seconds of the token expiration) the original token will be returned.
Returns: 0 for successful creation, -1 for error.
In_id - The Microsoft ID to refresh to the token for. (required)
In_service - The service (as set up in the G4MSSVCPF file) to refresh the token for. (required)
In_ccsid - The CCSID to use. Defaults to 1208.
In_debug - Turn debug on (*YES) or off (*NO). Default is *NO.
In_debugFile - The name of the debug file to use. If not specified, the default of /tmp/g4ms_refreshToken.<id>.refreshToken will be used where <id> is a unique ID generated by G4MS.
Out_newToken - The new token, if required. Otherwise the current token will be returned.