So, I think is kind of the reverse, and I'm not sure how to capture incoming data, since I know hardly anything.
From the info I currently have (questions not answered yet by the service at the endpoint) the incoming payload is likely JSON. But, I'm not sure of that yet. The custom module will make a call with a REST API function where the request is a JSON string that has a return-callback URL element for error reporting presumably different from the starting point (the Miva admin, or a scheduled task). So, the return information doesn't appear to be available in the s.callvalue. This means I need to parse that information in the callback URL endpoint.
I don't recall having this scenario come up before. So, if I don't know what's coming, how do I capture that? I don't if there will be a URI to parse. Could "how" o "what" be included in an HTTP Header, such as the content is JSON, and how would deal with responding to this?
Thanks,
Scott
From the info I currently have (questions not answered yet by the service at the endpoint) the incoming payload is likely JSON. But, I'm not sure of that yet. The custom module will make a call with a REST API function where the request is a JSON string that has a return-callback URL element for error reporting presumably different from the starting point (the Miva admin, or a scheduled task). So, the return information doesn't appear to be available in the s.callvalue. This means I need to parse that information in the callback URL endpoint.
I don't recall having this scenario come up before. So, if I don't know what's coming, how do I capture that? I don't if there will be a URI to parse. Could "how" o "what" be included in an HTTP Header, such as the content is JSON, and how would deal with responding to this?
Thanks,
Scott
Comment