简体   繁体   中英

Making GET request in yii2 app

I want to make GET request for some API and get data from it. How can I send get request,get data from JSON and handle that for data that I can input in my HTML? I cant find any tutorial or something, please give some code. For example I want to get data from this API: https://api.privatbank.ua/p24api/pubinfo?exchange&json&coursid=11

请参考Yii2 Http客户端https://github.com/yiisoft/yii2-httpclient

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM