Error http get


#1

I created a login you need to make a “http get” to a URL but gets me the following


Fatal error: Call to undefined function Piwik\Plugins\(my plugin)\http_get()

What am I doing wrong?


(Matthieu Aubry) #2

To HTTP Get a URL, you can use this class: Http - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

For example:

Http::fetchRemoteFile($url)


#3

Thank you very much!