Here’s a gist of our user.gs file in Apps Script:Įxport class User That method will fetch the user profile every time you call the function. To make Google Apps Script work with your backend, you can create a User class in your Apps Script code. But, Cloud Functions is not a requirement, you could grab a cheap $4 droplet on DigitalOcean and that would work just as well. This has the benefit of being relatively cheap at the start and scaling automatically as the add-on grows. As I said, at Mailmeteor, we use Cloud Functions for our backend. This being said, now you need to make Google Apps Script communicate with your backend. That’s a high-five for your users, plus this will save you hours of work. Plus, if you take this path (which we did at Mailmeteor) you don’t need to prompt to users an email/password form. Using UserSession.getEmail() you can safely know which user is running your code. Google Apps Script already provides an authentication mechanism, so there’s no need to start from scratch. The thing is as soon as you want to monetize your add-on, you need to provide a signup flow to safely authenticate users and retrieve their status (e.g. That’s especially true for narrowed add-ons (that provide a limited set of features). When you build an add-on, sometimes you don’t have a way for your users to authenticate. Authenticationįirst, you need to authenticate your users. The general concept still applies even if you prefer AWS or other cloud providers. If you aren’t familiar with Firebase yet, feel free to read on. Our approach is - I believe - one that provides the best user experience (for your users) and high security (for you, the developer).Īlso, at Mailmeteor, we heavily rely on Firebase, which has a NoSQL database (Real-time Database) and can run serverless functions (Cloud Functions). I’ll share with you how we do it at Mailmeteor. There are several ways to manage how you monetize add-ons. If this is your current situation, great! We were in the same situation a few years ago at Mailmeteor and we totally understand how excited you can feel today.īelow is the guide I wish I had found a few years ago when I was researching how to monetize our mail merge add-on for Google Sheets. It’s getting a lot of traction and you feel like you can monetize it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |