The PHP SDK provided by Renren Open Platform, I personally feel that it is not very well written, and it cannot run on my computer. It always errors with 113. When I checked the documentation, I didn’t find this error code, so I had to I implemented it myself using PHP according to the official documentation. The code is as follows. It is not encapsulated, but just goes through the process. If it is only used for login verification and simple API calls such as Renren Connection, it is not necessary to encapsulate it. Let’s use it as a PHP demonstration of using Renren API. When writing the code myself, I also referred to the SDK code and DEMO code on the official website.
Instructions:
1. Use the HttpClient class to initiate Get and Post requests, file download address