Demo on consuming 'leads status API' and 'push notification of Lead History details to end point'.
Marketpalce-Consumer is sample code to describe usage of two of Inbranch APIs from consumer perspective.
For each of these APIs have provided sample rest services in Spring-Boot (consumer-java project) and Python (consumer-python).
For 'push notification of Lead History details to end point' can support No Authorization, OAUTH, HMAC protocals to trigger end points as required. So have provided sample code to describe with three different rest end points each in Spring-Boot and Python.
This application has Spring-Boot and Python projects packages, So, these projects needs to be just downloaded from git hub and import as projects into any of corresponidng IDE(s) that you are using.
We have used below tools to test this through.
- IntelliJ for Spring-Boot
- PyCharm for Python
- Postman for rest services.
Once projects are imported and server is ready, Spring-Boot application will be available at http://localhost:9000 and Python rest services will be available at http://127.0.0.1:5000.
Lead Status:
http://host:port/api/referral/v1/consumer/trigger/leads/status
Lead History:
http://host:port/v1/trigger/lead/history/endpoint
http://host:port/v1/trigger/oauth/lead/history/endpoint
http://host:port/v1/trigger/hmac/lead/history/endpoint