Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- createDbUser = async () => {
- let userData = {
- user_id: "ddddddgasa",
- phone: "09778889919",
- email: "acvapp1@gmail.com",
- dob: "1994-01-23",
- address: "HCM",
- full_name: "Anh Duc",
- identity_number: "1996",
- gender: "male"
- };
- axios
- .post(`${apiUrl}/v1/users`, userData)
- .then(function(response) {
- console.log(response);
- })
- .catch(function(error) {
- console.log(error);
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement