For this project I wanted to learn the usage of Remote Apis.

I wanted create a Daily Horoscope Snap Lens that could be translated into multiple languages, using the Astrology API and iTranslate API.

Building the Daily Horoscope aspect of the lens was relatively straightforward, thanks to the Astrology API. However, integrating the iTranslate API proved to be more challenging. Unfortunately, I encountered a bug in the Asset Library asset, please check your code

req.endpoint = "translation"; req.parameters = { "Content-Type": ContentType, };)

and you will notice it too :)

Managed to fix this and I was able to successfully integrate the iTranslate API into the lens.

As I continued to develop the lens, I became disappointed with the quality of the translations provided by the iTranslate API. For some languages, the translations were so poor that I decided not to use iTranslate API in the final product.

I did learn about using UI Panels with Gridlayout and exporting objects from Lens Studio, which will be useful in future projects!

Despite these challenges (or thanks) this project was another great learning experience and I'm already excited for the next one

Built With

  • snap
Share this project:

Updates