Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios api get request async

async function getUserData() {
	try {
		const response = await axios.get("/user_login/john1904");
		console.log(response);
	}
	catch (error) {
		console.log(error);
	}
}
Source by www.atatus.com #
 
PREVIOUS NEXT
Tagged: #axios #api #request #async
ADD COMMENT
Topic
Name
6+3 =