const axios = require('axios');

const url = 'https://immich.bchs.duckdns.org';

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  // url: url + '/api/users',
  url: url + '/api/assets/f89d0de1-2762-4f9e-b60e-c7eeec93c4e9',
  headers: {
    'Accept': 'application/json',
    'x-api-key': 'Pm2CbhJvgStEPAFKRVclW88qrOAy79OeIEcfj3k'
  }
};


axios.request(config)
  .then((response) => {
    console.log(JSON.stringify(response.data));
  })
  .catch((error) => {
    console.log(error);
  });

// let data = JSON.stringify({
//   "avatar": {
//     "color": "green"
//   }
// });

// let configB = {
//   method: 'put',
//   maxBodyLength: Infinity,
//   url: url + '/api/users/me/preferences',
//   headers: {
//     'Content-Type': 'application/json',
//     'Accept': 'application/json',
//     'x-api-key': 'Pm2CbhJvgStEPAFKRVclW88qrOAy79OeIEcfj3k'
//   },
//   data: data
// };

// axios.request(configB)
//   .then((response) => {
//     console.log(JSON.stringify(response.data));
//   })
//   .catch((error) => {
//     console.log(error);
//   });