Connection for Bearer Token
Collect token
To get the token, write the login data in the JSON Write transfer object in the table below.
.png)
JSON Write for Bearer Token
Define a REST transfer object. Include the REST plug-in here. Note that the login is set to None in the REST plug-in. Specify the corresponding URL endpoint. Select POST as the method. In the request, specify the "application/json" in the format. Connect the json parameter from the JSON write transfer object to the body parameter in the request body from the REST transfer object.
Create a variable with the name token, which is type-less. Connect the body parameter in the response to the variable. To execute the connection cyclically, include a time trigger and set the desired cycle.
.png)
Connection for Bearer Token
Pass token
Pass the token in a second connection. Drag a variable into the canvas and select the appropriate variable. Drag a JSON Read transfer object into the workspace and create a token element.
.png)
JSON Read for Bearer Token
Drag the variable to the Json parameter from the JsonPath Doc. Create a calculator transfer object and select the CONCATENATE function via the "More" button. Create a placeholder using the "New" button. Enter the following parameters into the function as shown in the screenshot.
.png)
Calculator transfer object for Bearer Token
Connect the parameter from the JsonPath item to the variable of the calculator transfer object.
Create a new transfer object using the GET method. In the request, select the format application/json and create a parameter with the parameter type HttpHeader.
Connect the output value of the computer transfer object to the request parameter of the REST transfer object. Then connect the body parameter of the response of the REST transfer object to a desired other transfer object. To execute the connection cyclically, create a time trigger.
.png)
Connection for passing the Bearer Token