Home  >  Article  >  Backend Development  >  PHP implements Renren OAuth login and API call_PHP tutorial

PHP implements Renren OAuth login and API call_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 10:58:23855browse

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445686.htmlTechArticleThe PHP SDK provided by Renren Open Platform, I personally feel that the writing is not very good, and it is on my computer It couldn't be run, and there was always a 113 error. When I checked the documentation, I didn't find this error code, so I had to...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn