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
1条回答 默认 最新
- doula4096 2016-11-01 02:05关注
Please reference Yii2 Http Client https://github.com/yiisoft/yii2-httpclient
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报