List of examples
Submits a Form containing consumer data using the Client API.
REST documentation: GetUsers
Submits registration data to create a user using the Client API.
REST documentation: CreateUser
Finds a user using the Client API.
REST documentation: GetUsers
Verifies that the Custom Notification comes from UIM.
Documentation: https://platformservices.redbull.com/docs/uim-webhook
Get a Form Submission using the Form API key for authentication.
REST documentation: GetFormSubmissions
Inside the directory (corresponding to the example you want to try) execute the following:
docker build -t <DOCKER_IMAGE_NAME> -f Dockerfile .
This will build the docker image (you have to choose a name yourself) using the Dockerfile.
After a successful build, you can create the container and run the dockerized code:
docker run -it --rm -e "EXAMPLE=<EXAMPLE_YOU_WANT_TO_RUN>" -e "SILO_USER_ID=<YOUR_SILO_USER_ID>" -e "APP_ID=<YOUR_APP_ID>" -e "API_KEY=<YOUR_API_KEY>" -e "FORM_ALIAS=<YOUR_FORM_ALIAS>" -e "ENVIRONMENT=<YOUR_ENVIRONMENT>" <DOCKER_IMAGE_NAME>
You can run the following examples:
form-submission
create-user
find-user
custom-notification-verification
get-form-submission
The variables you would need to run these examples against the design
environment are:
SILO_USER_ID
→ forfind-user
FORM_SUBMISSION_ID
→ forget-form-submission
APPLICATION_ID
→ forform-submission
,create-user
,find-user
API_KEY
→ forform-submission
,create-user
,find-user
FORM_ALIAS
→ forform-submission
ENVIRONMENT
(this can either belocal
,design
orproduction
) → for all exceptcustom-notification-verification
DOCKER_IMAGE_NAME
(this container name you chose) → for all