![]() using cURL we will call apis to getting json data and we can use their data in our project. PHP cURL have set of curl function like curl_init(), curl_setopt(), curl_exec() etc. ![]() The cURL has an Access Token and Authorization: Bearer, I hope you got the idea so you can. I have been searching a lot and I didnt get the idea of cURL how to get it as a php I want to connect it with the php so, I can take the status and use it as a condition in php. I try outputting it via jsondecode() to get it as an array, then I could do something with it. What Im wondering is, if I do this, and the URL has some kind of server response. I have a cURL link that returns (body response) a status either 1 or 0. I finally am getting the results I want (or at least I think I am), but am unaware what to do with it. ![]() php curl will help to post request with parameters and headers, we can get json response. If I have a URL Im trying to post some JSON data to, I understand how to do this using the CURL PHP method. Sometime we need to work with web services and APIs of third party website, at that time we need to use php curl for get request, post request, delete request, put request ect. How to use cURL to get jSON data and decode the data Ask Question. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |