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.
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?
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: