dongxiaoke2018 2016-10-31 12:17
浏览 139
已采纳

在yii2 app中发出GET请求

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?