Post a new user
$.post("https://reqres.in/api/users",{first_name:"John",last_name:"Doe",email:"john.doe@example.com",avatar:"https://images.freecreatives.com/wp-content/uploads/2017/01/Person-Icons.jpg"},"json").then(e=>{console.log("user",e),$("#user").html(`\n <div class="card">\n <img src="${e.avatar}" class="section media">\n <div class="section">\n <p>${e.first_name} ${e.last_name}<br>\n <a href="mailto:${e.email}">${e.email}</a>\n </p>\n </div>\n </div>`)}).catch((function(e){console.error("error",e)})).always((function(){console.log("Request completed with success or error callback arguments")}));