This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves the Google authorization URL for the site owner to open.
Surface the returned URL to the site owner. After they authorize in their
browser, Wix completes the OAuth exchange server-side; poll Get Connection
until the status is VALID.
Each call starts a new authorization attempt: the returned URL is single-use and expires after 15 minutes, so request a fresh one for every attempt rather than caching or reusing one.
An already-connected site may call this too — reconnecting is a supported flow. Authorizing with the same Google account heals the connection in place; authorizing with a different one replaces it — permanently removing the locations imported through the connection it replaced.
The resulting connection is owned by the calling user. When the caller is an app rather than a user, it is owned by the site owner instead.
You can only call this method when authenticated as a Wix app or Wix user identity.
There are 2 errors with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.