glitch452 / MMM-CoinMarketCap

A MagicMirror² module that displays cryptocurrency information from the Coin Market Cap website.
MIT License
36 stars 11 forks source link

API version changed #29

Open Apathialol opened 1 year ago

Apathialol commented 1 year ago

apiTickerEndpoint is now on v2.

I fixed this by updating Line 156 and Line 158 to: self.apiListingsEndpoint = "v1/cryptocurrency/map"; and self.apiTickerEndpoint = "v2/cryptocurrency/quotes/latest";

I then removed references to 'self.apiVersion' on Line 498) so it reads: var url = self.apiBaseURL + self.apiListingsEndpoint;

and from Line 520 so Line 519 to 521 now read: self.apiBaseURL + self.apiTickerEndpoint + "?id=" +

MikeYEG commented 1 year ago

Confirmed this worked to fix the issue.

mirrormonark commented 1 year ago

hi guys. i try this but not working... @Apathialol @MikeYEG

mirrormonark commented 1 year ago

@glitch452