How to post user in wordpress website using rest api

Viewed 38

Anyone can help me here please its quite important.I am making a whatsapp bot via which sellers can register throught whatsapp. I want user to input email id to register on my website after inputing how can add my axios.post code. Which will take the email id and post as seller on my wordpress website using rest api

else if (lastMsgId && lastMsgId === 'MainMenu' && text == 1) {
        await chat.sendMessage(`Please provide following details to register as seller:`);
        await chat.sendMessage(`Email Id`);
        user['lastMsgId'] = 'Email Id';
        axios.post('mydomain/wp-json/wp/v2/users')

PS: ignore axios.post code

0 Answers
Related