How to use PHP to develop API interfaces is urgent

Source: Internet
Author: User
How to use PHP to develop API interfaces, how to use PHP to develop API interfaces urgently, and how to provide API interfaces for third parties (such as website owners and mobile software) just like Sina Weibo and Renren.
Is there any example or sample code? it seems that ucenter is, but it is not clear which content should be viewed. Thank you.


Reply to discussion (solution)

Use soap!

Find an oau2server.
The interface is actually quite easy to write. I have written two sets ......

Find an oau2server.
The interface is actually quite easy to write. I have written two sets ......
Great God, can you give a source code reference? The first contact is really hard to understand in many places.

Solutions, great gods

Http://www.phptogether.com/archives/11637

Http://www.phptogether.com/archives/11637 I would like to ask how to develop the supporting server end Ah, there is the difference between this phprpc and soap AH, general use which is good, thank you

Http://www.phptogether.com/archives/11637 I would like to ask how to develop the supporting server end Ah, there is the difference between this phprpc and soap AH, general use which is good, thank you

Http://www.phptogether.com/archives/11637

RPC (Remote Procedure Call Protocol )?? The remote process call protocol is a protocol that requests services from remote computer programs over the network without understanding the underlying network technology.
Simply put, when a user executes a function, the actual operation occurs on the server. The user only obtains the results of the server operation, without the need for real operations
SOAP is an extension of PRC, allowing you to process complex data structures and objects.

Php provides
XML-RPC extensions for writing XML-RPC servers and clients
It is used to compile SOAP extensions for SOAP servers and clients. It supports SOAP1.1, SOAP 1.2, and subset of WSDL1.1 specifications.

PHPRPC is a lightweight, secure, cross-Internet, cross-language, cross-platform, cross-environment, cross-domain, support for transmission of complex objects, support for parameter reference, and support high-performance remote process call protocol that supports content output redirection, hierarchical error processing, session-oriented, and service-oriented.
He is a code library.

Which of the following depends on the degree and scope of application you plan to use?

I think the API is not actually an access URL. it receives parameters and returns the value.

It's not that easy.

RPC (Remote Procedure Call Protocol )?? The remote process call protocol is a protocol that requests services from remote computer programs over the network without understanding the underlying network technology.
Simply put, when a user executes a function, the actual operation occurs on the server. The user only obtains the results of the server operation, without the need for real operations
SOAP is an extension of PRC, allowing you to process complex data structures and objects.

Php provides
Used to write XML ...... Soap is an extension of prc. is this prc spelling incorrect? Also, are there any server code and configuration examples? thank you.

RPC (Remote Procedure Call Protocol )?? The remote process call protocol is a protocol that requests services from remote computer programs over the network without understanding the underlying network technology.
Simply put, when a user executes a function, the actual operation occurs on the server. The user only obtains the results of the server operation, without the need for real operations
SOAP is an extension of PRC, allowing you to process complex data structures and objects.

Php provides
Used to write XML ...... Soap is an extension of prc. is this prc spelling incorrect? Also, are there any server code and configuration examples? thank you.

Https://github.com/quizlet/oauth2-php

This example can be used with slight changes.

After learning, you need to write APIs in multiple languages.

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.