We're trying to add a form that users can subscribe to a Listrak newsletter but I'm not sure if Shopify can handle this.
First, you submit an authentication request to https://auth.listrak.com/OAuth2/Token with your client id and client secret. If that is successful, you receive a bearer token to use in further API calls. Once authenticated, we need to process a REST API call to https://api.listrak.com/email/v1 with encoded data (ie. email address, etc). This is pretty simple on an IIS website, but I can't figure out how to do this in Shopify since it requires server side processing. Doing is in a client-side JS would be a big NO NO since it would mean revealing our private keys.
Does anyone have any insight into how I could do this? Do I need to develop a private app just for this purpose? If so, what recommendations would you have on where to begin?
I just wanted to let you know I have moved your post here to our API forums as it's a better place to get eyes on this particular query.
These forums are monitored and responded to by developers and Partners, so hopefully, a member of our community will be able to share their own experience in this regard with you here.
All the best!
Don | Social Care @ Shopify - Was my reply helpful? Click Like to let me know! - Was your question answered? Mark it as an Accepted Solution - To learn more visit the Shopify Help Center or the Shopify Blog