radyakin / susoapi

Survey Solutions API access from Stata
1 stars 3 forks source link

Allow initialization from an external file #34

Closed radyakin closed 6 months ago

radyakin commented 6 months ago

Allow constructor to read private info from an external file. The file should have approximately this structure:

global SUSO_Server="https://...server.name..."
global SUSO_User="...user.name..."
global SUSO_Password="...password..."
global SUSO_Workspace="...workspace.name..."
// end of file

and be placed somewhere along the path searchable for ado-files. Check the path with adopath.

Find the file with findfile, then do it with:

do `"`r(fn)'"'