To use that API, a variable that must be set in the web.config file in the MRS/App_Data/Config/AppConfig.xml. Do the following:
- Stop the application pool that stats runs under
- Back up the file just in case
- Open the file with notepad
- Find the line that looks like this:
<WebServiceAuthorizationCode />
- Replace it with a value of your choosing (a GUID is a good choice):
<WebServiceAuthorizationCode>MY_CODE_HERE</WebServiceAuthorizationCode>
- Save the file
- Start the application pool
- Use that same value in your calls
Queries are expensive in terms of CPU, so this a way to manually enable that API and protect it at the same time.
I hope this helps.
Grady Werner
SmarterTools Inc.
www.smartertools.com