I have db driven pages for various assets. When they pull up a page to load more info on them, it generates a custom api call.
I know I am calling the API correctly because can see the call changing in CMC’s API admin as I switch pages.
Also - It works on the one page that matches the item I initialize the call with. In my example BTC is 1, so the API data shows up there. However, only that page. All others the API call fires off but I can’t display it.
I understand it has to do with the 1 it is prefixing when I init but I can’t figure out how to init the call without a default value there.
Any suggestions?
Related docs:
https://pro-api.coinmarketcap.com/v2/cryptocurrency/quotes/latest
The structure I am having trouble with:
Issue is related to the “1” prefix where a variable would be put instead.
API Plugin Setup