Alright all you plugin geniuses…I am setting up a plugin that will have a few dozen api GET calls. I need to provide a common apiKey parameter in the url, and I’d like a common base url. I’ve been able to make those work easily by placing them on each individual call so that these values can be set from the user plugin page.
My question is, how can this be done once for all calls, rather than having to enter for each call? There is a shared parameters setting, but I’m not seeing how to reference that in the GET url.
Can this be done?
Related, shouldn’t the Private Key in URL work for this? I can’t get that working either.
Luckily it all works on the individual calls, but hoping to consolidate.
I noticed this issue the other day when implementing oAuth manually.
You can’t access the shared header or parameters, or dynamically set them in workflow, because there is not a “Public” value. Maybe we can get the @Bubble team to add the value?
That actually won’t help me personally, as I don’t want these public, I want them secret so they become parameters on the plugin page rather than settable in actions, etc. Also so the api key is not shared in the client.
I’m having this exact same issue, and the shared parameters aren’t being added automatically. I paste them into the individual call and it works, I paste them into the “shared parameters” section and they no longer work.
Have you guys here, or anyone else, figured out how these shared parameters are inserted in the URL?
Can we bump this? As far as I can tell, there’s nothing in the documentation about this. What purpose do these shared parameters serve if they don’t get added to calls?
In my case, I would like to use a different API base URL depending on the environment (integration/staging/production), but I have to put the information into every endpoint.
Could be that there is an easier / more appropriate approach, but it would have been great to be able to refer to the shared parameters when specifying the URL to the endpoint.
Even better if we could refer to it AND adjust it in real time using code.
When shared parameters are added to an API and the call type is GET, those shared parameters will automatically add extra query string parameters to the URL of the API call.
the shared parameters will automatically add to the extra query strings to the URL when the call is reinitialized: https://itunes.apple.com/search?term=beatles&country=US&limit=10
You will not need to further reference the shared parameter when initializing an API call as they will be automatically added to the URL.
However, Shared parameters only add to “Existing Parameters” if at least one is defined in the API call. The following API call will return 0 results because “Get Song” does not contain any parameters: