0
[C#/. Net][Moip] Personal, I use a payment platform (Moip) and it has a function that send notification in JSON format to the URL you registered, which will be from your system on the server. I want to know now how I get BODY from this JSON. Anyone have any idea??? I’ve been searching for a solution for days!!!
You create a class with the identical key nomenclature of your json properties, when your method is called it will make an implicit conversion of the json values to the mapped class.
– Maycon F. Castro
Or you deserialize the json for the type
dynamic
. https://www.newtonsoft.com/json/help/html/QueryJsonDynamic.htm– Leandro Angelo
But include in your question the method where you are receiving the json and the response template that you need to process.
– Leandro Angelo
i to na Controller "Affiliations" and the function is "Webhook", so I registered the url "http://54.233.161.49:8090/Affiliations/Webhook". Then I put something in the parameter? Already caught inside the function with some method of C#? To very lost
– Sanderson Corrêa
@Sandersoncorrêa developed the library here: github.com/matmiranda/Moipcsharp for C#
– Matheus Miranda