我对这个Laravel的东西和API也是新的(以前从未这样做过),但是我知道PHP和Javascript。但我想尽快学会这些东西,很抱歉,如果我的问题是愚蠢的:d将外部API添加到Laravel 5.2
所以我要问你们是什么:
- 那是可能的外部API添加到Laravel 5.2?我需要把它放在哪里?
因为有人说你不能添加外部API给Laravel。
- 如何将此API应用于Laravel(如果可能的话)?
POST /api/oauth/token HTTP/1.1 Host: api.######.#### Authorization: Basic /* some unique strings and numbers here */ Content-Type: application/x-www-form-urlencoded grant_type=client_credentials
对不起,我的英语,但我已经试图解释什么,我想清楚越好。 谢谢:)
您好,感谢您的回答我真的很感激! [链接](https://github.com/php-curl-class/php-curl-class) 对于这个php-curl我可以使用该回购? –
@KhrisnaGunanasurya我已通过官方文档链接更新了答案。它将包括安装。如果满足您的需求,您可以标记答案并向上投票。 – activatedgeek