Submit a POST request with java

0

I need to send a POST request to the following address which is an Amazon API:

  

link

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?

    
asked by anonymous 16.03.2018 / 15:28

1 answer

1

I'll cite three ways:

16.03.2018 / 16:04