Sample Code

The tutorial and sample code available in this section of our Developer Portal will help you build solutions for various use cases. The code is meant to be run with minimal configuration or customization. Tutorials are provided for the following languages / frameworks / tools:

  • cURL
  • Java using the RESTeasy framework
  • Java using the Unirest framework
  • Java using the Jersey framework and Jackson
  • JavaScript
  • JavaScript using the AngularJS framework
  • JavaScript using the JQuery library
  • JavaScript using Node.js

There is one step that must be done before other endpoints can be called - call the 'realms' endpoint in order to obtain an application token, which must be provided on each request. There is a separate page for Authentication, which covers this use case.

These tutorials use sample data. You must replace the sample data with real data before using the sample code.