Nim wrapper for the Agify.io API
nimble install agifyimport agifylet client = newAgifyClient("OPTIONAL_API_KEY")let ageResult = predictAge("Nemuel")
if isOk(ageResult):
echo ageResult.value.age
else: echo ageResult.errorlet agesResult = predictAges(@["Nemuel", "Kira"])
if isOk(agesResult):
for result in agesResult.value:
echo result.age
else: echo agesResult.errorBoth the
predictAgeandpredictAgesmethods have an optional second parameter (a 2-letter country ID e.g.KE)
Contributions are welcome! Feel free to create an issue or open a pull request.
This project is licensed under the terms of the GNU GPL v3.0 License.