Since I try to create an API using NodeJs and Vercel, I create Baybayin Transliterator API just to test my skills in making some algorithms.
First is you need to call the url, with the GET method with text as key, just like the example below. It returns as a JSON and the key to call is baybay.
const axios = require("axios")
async function transliterate(text){
let result = await axios.get("https://api-baybayin-transliterator.vercel.app/?text=" + text).then((r) => {
return r.data
}).catch((e) => {
console.error("Error [Baybayin API]: " + e)
return null
})
return result
}
module.exports = async (data) => {
let result = await transliterate(data)
console.log(result)
}
{
"original": "your query",
"baybay": "Baybayin Characters here"
}
If you found any error regarding this api, kindly email me @ [email protected] with the screenshot attached of a particular error. This api is still in development, so expect some bugs.