Retrieve data from Creatio using OAuth 2.0 authorization and web service
To implement the example:
Step 1: Set up the integration of a third-party app with Creatio using Identity Service. Read more >>>
Step 2: Retrieve a Bearer
token. Read more >>>
Step 3: Retrieve data from Creatio. Read more >>>
This example uses Postman to test requests.
1. Set up the integration of a third-party app with Creatio using Identity Service
- Set up the Identity Service. Instructions: Set up the Identity Service.
- Set up the OAuth 2.0 authorization. Instructions: Set up the OAuth 2.0 authorization.
- Make sure the Identity Service is running. Instructions: Set up the integration of a third-party app with Creatio using Identity Service (step 3).
2. Retrieve a Bearer token
Instructions: Retrieve a Bearer
token.
You can now integrate third-party apps or web services with Creatio using OAuth 2.0 authorization. Authorize all external requests to Creatio using the Bearer
token.
3. Retrieve data from Creatio
-
Create a request to retrieve data.
-
Add a request to the collection. Instructions: Adding requests to the collection.
-
Fill out the request parameters.
Parameter
Parameter description
Parameter value
Request method
POST
Request URL
The URL of the Creatio instance to retrieve data.
http://mycreatio.com/0/rest/CryptographicService/GetConvertedPasswordValue
-
Add the request body.
-
Open the Body tab.
-
Fill out the body parameters.
Parameter ( Key column)
Parameter value ( Value column)
Body option
raw
Body type
JSON
Body value
{ "password": "test" }
-
RequestPOST http://mycreatio.com/0/rest/CryptographicService/GetConvertedPasswordValue
{
"password": "test"
} -
-
Set up the authorization. Instructions: Retrieve data from Creatio (step 2).
-
Execute the request.
As a result, you will retrieve the test
value converted by the CryptographicService
web service. View result >>>