Hi all - could someone help me understand the API ...
# suitescript
u
Hi all - could someone help me understand the API Secrets - SuiteApp model? If I want to use API Secrets from a widely distributed SuiteApp, is it: (1) That I create a secret in the UI of the account which publishes the SuiteApp and all accounts which install my SuiteApp get it automatically (and admins there can't see the stored value); OR (2) That in each account which installs my SuiteApp the admin needs to go and define the secret via the UI ? The former is hinted at in this article, e.g. "[...] when sharing your SuiteApps with other users, as it allows for the safe sharing of these secrets [...]". The latter is what's clearly laid out here. I'm really confused! Thanks!
b
i dont think approach 2 can work at all
the instructions say to use the same secret id, which shouldnt work, their uniqueness requirement is for all accounts, not just your own
if they didnt have all that suiteapp setup stuff in the restrictions, then the uniqueness requirment of the id is normal and only applies to the account the secret is created in
u
Thanks @battk - I appreciate the answer. Coming to the same conclusions. I actually tried adding an API Secret with the id
_graphite_api_key
- as they say in the instructions in the second link I posted - and got a duplicate id error. I wonder why this Graphite company has this page at all - this can't possibly work... 🤔