How to Use Endpoints


The following is our recommended method to use the User Portal API in your custom pages.

STEP 1: Inject $http into your controller


STEP 2: Create HTTP request

Here is our recommended format for HTTP requests:

 var req = {
method: <"GET" or "POST">,
url: <endpoint>,
headers: {
'Content-Type': 'application/json'
params: <request body>
$http(req).then(function(res) {
<handle response>
}, function(err) {
<handle error>