I’m building a pack to access Google APIs.
Google uses different domains for OAuth and for data. Here are the urls I have:
For OAuth:
authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth
,
tokenUrl: https://oauth2.googleapis.com/token
For data:
https://mybusinessaccountmanagement.googleapis.com/v1/accounts
https://mybusinessbusinessinformation.googleapis.com/v1/accounts/{accountId}/locations
https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/reviews
As you can see, all three of the APIs are related and share the same authentication. The shared domain between them is googleapis.com
(authorization URL is different), but when I use:
pack.addNetworkDomain("googleapis.com")
I get build errors:
metadata.networkDomains[0]: The given domain googleapis.com does not seem to be valid.
Am I missing something, or is this one of the cases where I need to reach out to Coda to request multiple network domains?