In the ninth class of the add-on development course for Google Workspace we are going to create an add-on that makes API requests outside of Google through Google Apps Script. Throughout the lesson we are going to modify our Gmail code that we did in previous lessons so that it allows us to insert content that we obtain through an API request with the Gmail Compose trigger. We will remove the insert date code we have and insert the new code in its place. To do this we will need to create an account on Giphy, Indian Email List a gif platform that allows us to use its own API to obtain a gif that we will insert into the email.
we will see how we can insert the image with an HTML tag into the email, passing the image variable as a parameter in the function associated with the button. This time I encourage you to investigate more about the integration with APIs to make an add-on a little more elaborate. For example, you could make an integration with an API such as Stripe or Streamtools to be able to link in some way the contextual information of some of the Google services and these third-party services. Remember that although it is easy to make requests, we have to parse the result and turn it into an understandable object for Apps Script. By the way! Don’t forget that if you have any questions or comments you can write to us through the support panel. 🙂