Netatmo API : How do I get the access_token ?

curl:

curl --location --request POST "https://api.netatmo.com/oauth2/token" \
  --form "grant_type=password" \
  --form "client_id=5a*******21175d8b45ec" \
  --form "client_secret=NR*******bYylIAigYvaO" \
  --form "username=be*******eb.de" \
  --form "password=***111***"

jQuery:

var form = new FormData();
form.append("grant_type", "password");
form.append("client_id", "5a*******21175d8b45ec");
form.append("client_secret", "NR*******bYylIAigYvaO");
form.append("username", "be*******eb.de");
form.append("password", "***111***");

var settings = {
  "url": "https://api.netatmo.com/oauth2/token",
  "method": "POST",
  "timeout": 0,
  "processData": false,
  "mimeType": "multipart/form-data",
  "contentType": false,
  "data": form
};

$.ajax(settings).done(function (response) {
  console.log(response);
Read the rest