Setting up your Google Cloud Project
Step 1: Sign in with your Google Account in Google Cloud (Type Google Cloud and then search for Console, NOT the topmost link)Or you can skip the account creation as It requires Card information and tax details some of you might not have them
Step 2: Create a new Project, If you are a new user it should create a default project by itself, if not. Creating project It will look Something like this
Step 3: Now you will be welcomed to the console of the Google Cloud with your project name. Now select the 3 dots (Navigation Menu) which will have all the necessary APIs.
Step 4: Now In the Navigation menu select the API & Services and then select Libary in the drop-down menu.
Step 5: Now Search for “Cloud Pub/Sub” API not to be confused with “Pub/Sub lite API“, click on it and press activate
Step 6: Now you might see this after activating the “Cloud Pub/Sub” API.
Step 7: Now you just need to fill up your credentials, for our project we need to select these options
Step 8: Click Next and Create your Service Account Name, Service ID will be automatically generated. Now grant the Service Account Cloud Pub/Sub Service Agent to your service account as his role.Now Grant admin access to your Gmail account, this makes it so that in the future you can access this service account. Your Policy will be updated. Now go and search for “Cloud Functions API” Activate it and you are golden!
Step 9: From Nevagation Menu select “IAM & Admin” and click on “Service Accounts” Find the service account for which you want to generate the JSON key file and click on it. In the service account details page, click on the “Manage Keys” tab from Action (three dots thingy) “Click” on Add key and select “Create new key“. JSON file will have been downloaded in your system. It contains many sensitive informations.
Step 10: Now we will be requiring to create Topic for your project, you will be required to go to Pub/Sub in Analytic section, nevigate to “Topics” and there you will find this option
After creating your “Topic” Click on the newly created Topic ID it will redirect you to “Topic name“, now copy that “Topic name“
After Setting up your Google Cloud Project, You set up your Twilio account with thee help os given instructions.
Sending SMS from Python with Google Cloud Functions
In this article, we are going to talk about how we are going to send SMS (Short Message Services) with the addition of the Powers of Google Cloud Functions. Combining it with Twilio which is a cloud communications platform that provides APIs for sending and receiving SMS messages, as well as other communication channels like voice calls and video will help us to create a “serverless” solution for sending SMS messages.