Fetch user profile
Endpoint
https://developer.thefullstack.network/api/v1/profile/:displayName
Example request
import useSWR from "swr";
import fetcher from "utils/fetcher";
const Profile = () => {
const url = `/api/v1/profile/danoely`;
const { data } = useSWR(url, fetcher);
return <div>Hey! My name is {data.name}</div>;
};
export default Profile;
Example response
{
"name": "Noel Maher",
"display_name": "danoely",
"avatar": "https://terrabyte.fra1.digitaloceanspaces.com/avatars/google-oauth2%7C110889799112459409416/profile-google-oauth2%7C110889799112459409416-noel.jpeg",
"website": "https://thefullstack.network/danoely",
"bio": "Building The Full Stack. Also a nerd for sound engineering and playing guitar.",
"tags": [
"Vercel",
"ChakraUI",
"React",
"NodeJS",
"TypeScript",
"Digital Ocean",
"TailwindCSS",
"MySQL",
"PHP",
"Netlify",
"MongoDB",
"React Native",
"NextJS"
],
"created_at": "2021-05-26T23:16:26.358Z"
}