简体   繁体   中英

How to call and get API responses from middle proxy?

在此处输入图片说明

Refer to attached image. I'm making an interface for user to make input on 123.com and will pass value to middle server (abc.com) then abc.com will pass value and parameter to API provider server (xyz.com).

I'm wonder after API provider (xyz.com) response back to middle server (abc.com), how I can deliver API responses back to user via 123.com?

Thank you for your suggestion. Tung

  • 123.com - jQuery Ajax request to ABC.com based on form inputs.
  • ABC.com - php receives Ajax request and hits XYZ.com API via curl
  • XYZ.com - API responds to ABC.com
  • ABC.com - Parses the response and produces a response back to 123.com

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM