Reputation: 725
I have one client URL . They are requested me to send all the data to in one object to insert their database .
How can I send so many field data in one object ?
Example URL:
http://example.com/Order/Insert/{MerchantId}/{Secretkey}/{Relationcode}{object data}
I have {MerchantId}, {Secretkey}, {Relationcode} and {object data }.
Object data contains following fields:
OrderNo, LoginId, shipCharge, CompanyDiscount, totalMRP, totalquantity etc.
How can I send all these data as object data ?
Please suggest me some good way.
Upvotes: 0
Views: 643
Reputation: 734
I would send the JSON in the URL but encode it to make it look more professional, possibly with base64_encode()
Upvotes: 1