Hello!
We've built a demo Flinks integration that follows the steps provided in Flinks Integration Guide for your reference using Python scripts (attached).
In the files you will find:
- authorizeToken.py - script that issues a one-time use Flinks Connect link with a valid Authorize Token. The link is exported to a json file called url.json
- server2.py - script that creates a local server, reads the URL from the file above and waits for a successful connection in order to start pulling data
- integration.py - script that holds our endpoints and the API flow
- flinksconnectauthtoken.html - a sample HTML page that embeds the iframe and listens for a new LoginId. The iframe URL will be captured from the url.json issued earlier, so the server needs to be running before the page is loaded.
Steps on how to run the demo:
- Save all files into the same directory
- Run the authorizeToken.py
- Upon conclusion, run the server2.py and keep it active
- On a browser, open the link http://localhost:8000/flinksconnectauthtoken.html
- Follow the steps on Flinks Connect until the connection is successful
- The LoginId will be captured through the Event Listener and sent back to the server, when the API calls will start
- The data from GetAccountsDetail and GetAllAttributes will be saved as json files.
Happy testing!
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article