Mysql-python How to write API to app? Backstage is the background of PHP.

Source: Internet
Author: User
Assuming that the background of an app is written by PHP, can you now write a data-calling interface to the app in Python?
Requirements: Query an order to enter an order ID that can be queried for specific information about the order. Returns a JSON-formatted dict.

Reply content:

Assuming that the background of an app is written by PHP, can you now write a data-calling interface to the app in Python?
Requirements: Query an order to enter an order ID that can be queried for specific information about the order. Returns a JSON-formatted dict.

It doesn't matter what language is written in the background, all you need is a network access library. such as CURL.

As said upstairs, the API of the app is not related to the language, you can write the API with PHP, you can see the restful

Recommend the same company to develop a unified language, or you will find a pile of pits, often to adapt, to the United, to debug together, efficiency is fundamentally not going.

There's something called thrift, dedicated to exchanging data between different languages.
This is the framework that the company had before, and the data interaction between Python and Nodejs

  • Related Article

    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.