M2AV
-
Posts
2 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by M2AV
-
-
Site URL: https://www.m2avc.com
Hi,
I'm working on an integration with a major Air Conditioning company and to authorize my app I need to have a redirect URL that will display the authorization code. They recommend PHP but I can't use PHP with Squarespace. Does anyone have any ideas of where I could begin to look for how to do something like this inside the Squarespace sandbox? The example response is below. It uses a 302 redirect with query components. I need to pull out just the code, format, and display it in a web page for the client to copy and paste into an app. In this example the code is 12A3456BCD789123. Thank you all in advance.
HTTP/1.1 302 Found Location: yourApp://authCode? code=12A3456BCD789123& state=a1bcd2fgh3ijkLm4opQRST
302 Redirect and display of URI Query Component
in Customize with code
Posted
So, when on Carrier's website, a user will input their cloud credentials and "Allow" my app to connect to their account. When they subm their info, Carrier will redirect to a URL of my choosing but I need to be able to display the code that's in the 302 redirect. The user will copy that and paste it into my app to grant access.