I need to send a POST request to the following address which is an Amazon API:
And in this request a JSON has to be sent:
{
"token": "633cc5hs58512b012104c7408d60d19930d5514",
"email": "[email protected]",
"answer": [
{"date": "2017-09-01", "value": 100},
{"date": "2017-09-02", "value": 200},
{"date": "2017-09-03", "value": 150}
]
}
Could anyone shed light on how I do this with Java? Is there a class that does this type of operation?