Passing an API token to another API
Here's the scenario. We're using Plytix, which has two different APIs essentially, one for AUTH and the other for retrieving/posting information as follows:
https://auth.plytix.com/ (authentication) - Token-based, with a refreshToken required every 15m
https://pim.plytix.com (product information management) - needs the token generated from the auth to enable querying or updating of information (of course, it needs to be authenticated).
Unfortunately Celigo only seems to support relative URIs (e.g. https://pim.plytix.com/auth/), rather than those based on sub-domains (e.g. https://auth.plytix.com/ and https://pim.plytix.com).
So, my question is how can this be done either via a script or can two connectors pass information to each other?
I'd prefer not to get into serious coding to be able to facilitate this, though it may be unavoidable.
I can get this to work without issue in Postman, as it can be told to use environment variables or to inherit from parent, which don't seem to be options in Celigo either? If this is not the case, can someone provide some guidance on this.
We already have the Netsuite to Celigo part of our integration written, though now need a way of pushing the information from Celigo into Plytix.
This is going to be an integral part of our business flows given Plytix will essentially work as our product information management system for pushing all of our product information into Shopify (and no, we don't want to push product information directly from Netsuite to Shopify, we're aware the Shopify/Netsuite integration app can do this already, we want to be able to keep a far more fully-fledged product information database for numerous different marketplaces as a separate entity).
Any assist/guidance that can be offered would be appreciated.
It may be a simple line or handlebar expression to get the information and assign it to the other connection, though am not too familiar with Celigo unfortunately.
Regards,
Christian