What is the approximate flow? Solving.
Reply to discussion (solution)
is the API interface
Write an excuse for the class is good ah, the data with Json_encode processing back
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.
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
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