PHP implements Renren OAuth login and API call _ PHP Tutorial

Source: Internet
Author: User
Tags oauth
PHP enables everyone to log on to OAuth and call APIs. The PHPSDK provided by everyone's open platform, I personally feel that it is not well written, and it cannot run on my computer. it is always a 113 error. I have not found this error code in the document, as a result, everyone had to open the php sdk provided by the platform. I personally felt that it was not well written and could not run on my computer. it was always a 113 error. the error code was not found in the document, so I had to follow the official documents and use PHP to implement it myself. The code is as follows. it is not encapsulated. it just follows the process. It is not necessary to encapsulate logon authentication and simple API calls only for everyone connection. As a PHP demonstration of using Renren API. You can also refer to the SDK code and DEMO code on the official website when writing your own code.

Note:

1. use the HttpClient class to initiate Get and Post requests.

The ghost SDK, I personally feel that the writing is not very good, and I cannot run it on my computer, it is always a 113 error. the error code is not found in the document, so I had...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.