To collaborate with other sites, the company requires the development of interfaces, which are called by the partner, and the returned data is in JSON or XML format.

Source: Internet
Author: User
To cooperate with other websites, the company requires the development of interfaces to be called by the partners, and the returned data is in JSON or XML format.
What is the approximate flow? Solving.
------to solve the idea----------------------
Write an excuse for the class is good ah, the data with Json_encode processing back
------to solve the idea----------------------
http//www.xxxx.com/interface/index.php?money=300&test=wedsd&usercode=xx&mac=wuryweosmsf098
It's no different from your usual programming.
Say the meaning of each parameter.
It is best to add a Mac behind, to prevent others from tampering with the data, Mac algorithm, both sides can negotiate.
Of course, if the entire parameter string can be encrypted better.
------to solve the idea----------------------
And the general site of the page no difference, but the output of the content is different
Of course, the parameters passed in and the format of the return, are agreed by both parties, can not be changed without authorization
------to solve the idea----------------------
And the general site of the page no difference, but the output of the content is different
Of course, the parameters passed in and the format of the return, are agreed by both parties, can not be changed without authorization
  • 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.