Skip to content

Conversation

@sophon314
Copy link

@sophon314 sophon314 commented Apr 14, 2024

title: "Learn a new cat fact"
summary: "This Function returns a random fact about cats from catfact.ninja"
date: "2024-04-15"
author:
name: Junaid
link: https://github.com/sophon314

// Set the URL
const config = {
url: "https://catfact.ninja/fact",
};

//Get the response
const response = await Functions.makeHttpRequest(config);

// Send the repsonse upstairs
return Functions.encodeString(response.data.fact);

@vercel
Copy link

vercel bot commented Apr 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
usechainlinkfunctions ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2024 11:46pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant