This article shows an example of how a Google Spreadsheet can be used to create new members on a site using the site's API.


Checklist Before Moving Forward With This Example


1) Make sure to generate a unique API Key using the documentation down below as a guideline. Please make sure to save the API Key in a safe place as it is not accessible after it has been created:


How To Generate an API Key


2) Make sure to have a Google Spreadsheet ready. This spreadsheet should have at least one row of member information shown below:




The column names do not necessarily match with the correct database variable names as this can be mapped later on. Please note that the Email (email), Membership Plan ID# (subscription_id), and the Password (password - minimum 6 digits) fields are required in order to create a member on the website.


How To Connect Google Sheets Using Zapier


In this example, we will be using Zapier to integrate Google Sheets to the Brilliant Directories site. 


Log in to the Zapier account and click on Create Zap:





Name the new zap created and select the Google Sheets option as a Trigger:




Select the Event type as New Spreadsheet Row and click on Continue:




Connect the Google Sheet Account (this would be a Gmail account) and click on Continue:




Choose the preferred Spreadsheet and specify the Worksheet and click on Continue:




Click on Test Trigger:




There will be a confirmation that a spreadsheet row has been found, click Continue:




Now the Trigger has been set up correctly, the Action can be created. Search and select the "Brilliant Directories" as the App option:




Choose the Create User event and click Continue:




If this is the first time creating a Brilliant Directories connection, click on the Sign In option:




If there is already a connection created to Brilliant Directories, click on Connect a new account option:




Clicking both options above will open a new window where the domain of the site (https:// or http:// included) and the API Key generated can be specified:




After clicking Yes, Continue on the window above, click on Continue:



Next, we will be setting up the action. In this section, all the available member variables can be found. As we already created a spreadsheet with a row of member information, the next action would be mapping/matching the column names to the correct variable names:




To be able to create a member, the minimum required fields are email, password (minimum 6 digits), and subcription_id (membership plan ID#):


 


Now that all the preferred and required variables are matched and mapped correctly, click on Continue to test the action:





Confirm that the information displayed is correct and click on Test & Continue:




This will create a new member on the website, confirm that the member is created under Search Members:




If any issues, an error message will display:




Once confirmed that the member is created on the site, click on Publish Zap:




If there is more than 1 member in the spreadsheet, click on Transfer existing data option:




Here, select all and click on Next (already created member can be excluded):




Click on Send data:




Now additional members on the spreadsheet are created on the website:




Updating the Spreadsheet With New Information


Now that our connection is all set and our Zap is published, we can update the spreadsheet created and this will create members on the site dynamically.


For this example, we went ahead and added 2 more rows to the original spreadsheet that is connected to Brilliant Directories:




After waiting for a few minutes, the new members will be created on the site:





Note: The API just adds members to the database, it does not trigger a welcome emails because the member did not actually sign up themselves on the site.


We have created a parameter that can be sent with the API request to trigger the email being sent, based on the settings of the membership plan. The idea is not to always trigger the signup email to be sent, only when the parameter is sent with the request.


The parameter, send_email_notifications, is set to 1 so the system will now trigger the emails after a successful create user request.




For additional questions or help setting this up, please submit a ticket to [email protected] or create a ticket HERE.