- 1 Minute to read
- Print
- DarkLight
API Call XML Package
- 1 Minute to read
- Print
- DarkLight
All API function calls use a standard framework for XML arguments that are passed through to each function. Below is an example of that XML framework.
<SmarterU>
<AccountAPI></AccountAPI>
<UserAPI></UserAPI>
<Method></Method>
<Parameters></Parameters>
</SmarterU>
Account API
The <AccountAPI> tag is used to identify your account when calling the API. This key is a one-way encrypted key and must be included in every API call.
To find your account API key:
- Log into SmarterU.
- From the Admin menu, select Account Admin.
- Select Account Settings.
- Expand the API Setup accordion. Your account's API key displays in the API Key field.
User API
The <UserAPI> tag is used to identify the caller of the API. Any actions taken through the API will be linked back to the user making the API call. This key is also a one-way encrypted key and must be included in every API call.
To obtain the UserAPI token:
- Be sure that API is enabled for your account.
- Create a user for the API and enable the API for that user. Doing this exposes the API key.
Method
The <Method> tag is the name of the method you wish to call within the API. For example:
<Method>createHistoricalSession</Method>
Refer to the API Methods page for a list of available methods.
Parameters
The <Parameters> tag is used to pass through the specific arguments needed for each of the API functions. Each block of XML in this tag is unique to each method. Refer to each method's page for details on its available parameters.