Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios

 const { data } = await axios({
      method: 'post',
      url: `${process.env.REACT_APP_API_URL}/api/send-otp`,
      data: { phone: phoneNumber },
      //withCredentials: true,
    })
    console.log(data)
Source by axios-http.com #
 
PREVIOUS NEXT
Tagged: #axios
ADD COMMENT
Topic
Name
3+6 =