πππππππππππππSet-Upππππππππππππππ
We have detailed video tutorials for each of the actions/elements we have in this plugin. Watch them to understand and use it at ease.
ππ You must set up your Google Cloud account and create a Google Cloud Project before you can use this plugin. Takes less than 5 mins if you follow the instructions. It is a one time process which is necessary to get your client-id and client-secret. ππ
β Go to
https://console.cloud.google.com/β Log in to your Google account.
β Create a new project.
β Enable Google Contact API.
β Create credentials for the API along with redirect URI.
β Note down the Client-ID and Client-secret.
βΈ Step (1 to 6) is explained in detail:
βΈ Watch Youtube video here:
https://www.youtube.com/watch?v=k1Y-jR1bpOIππππππππππInstalling the Pluginππππππππππ
β Log in to your Bubble account
β Go to Plugins
β Search for βGoogle Contact by Ritz7β
β Install the plugin
πππππππππππUsing the Pluginπππππππππππ
ππ Note: In all the actions, we have a field named "Authorization". This field should be in the following format: Bearer <Access-Token>. Access Token will be valid for 60 mins from the time it is generated and you can regenerate it using the Refresh Token. And this step is explained in detail here:
https://www.youtube.com/watch?v=AsyYBqPsJpAππ
β Drag and drop the element "G-Contacts".
β Add an action called "Get G-Contacts Auth-Code via URL" which requires you can add Client-ID and redirect URI. This will return an URL that needs to be opened.
Note: The redirect URI should match exactly as you have set while configuring in Google Cloud.
β Add Next step: You will have to open the URL you get from the previous step.
Note: This will ask your permission for your app to use your Google Account. Once you permit, the element will automatically fetch the code from the URL.
β Generate Access Token via code: Call an Action "Get_Access_Token-via_Code". This will require you to pass the client-ID, client-secret, code (you will get it from the element 'G-Contact' and the param is named as 'G-Contact-Code') and redirect URI (this should match the one added in the Google Cloud Project)
Note: You will also get Refresh Token along with Access token from step-4. You use Refresh Token to get the Access Token once the old Access Token expires.
β Use "Get_Access_Token-via_R-Token" action to get the Access token from Refresh Token. This requires you to provide client-ID, client-secret and refresh token.
ππ Actions ππ
β½ List all contacts
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β Outputs:
β» List of contacts with their details such as name, phone numbers, email address etc.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=tNapw2Sxq9kβ½ Create a contact
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» First_name: First name of the contact.
β» Last_name: Last name of the contact.
β» Email: Email address of the contact.
β» Phone Number: Phone number with country code of the contact.
β» Birth year: Birth year of the contact in yyyy format.
β» Birth month: Birth month of the contact in mm format.
β» Birth date: Birth date of the contact in dd format.
β» Organization_Name: Name of the organization of the contact.
β Outputs:
β» Details of the contact created.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=5f-uP2xQ-wIβ½ Update a contact
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Resource Name: It is the ID of the contact which you can fetch while listing all the contacts.
β» Etag: It is the etag of the contact which you can fetch while listing all the contacts.
β» First_name: First name of the contact.
β» Last_name: Last name of the contact.
β» Email: Email address of the contact.
β» Phone Number: Phone number with country code of the contact.
β» Birth year: Birth year of the contact in yyyy format.
β» Birth month: Birth month of the contact in mm format.
β» Birth date: Birth date of the contact in dd format.
β» Organization_Name: Name of the organization of the contact.
β Outputs:
β» Details of the contact created.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=xLqWB5H-SG8β½ Update a contact photo
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Resource Name: It is the ID of the contact which you can fetch while listing all the contacts.
β» photoBytes: It is the base64 of the profile photo that needs to be updated.
β Outputs:
β» Details of the photo updated for the contact.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=xLqWB5H-SG8β½ Search a contact
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Query: Input any text to search the contact. It can be the first name, the last name, the email address, the phone number.
β Outputs:
β» Details of the contact created.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=ETB1y69xE4Eβ½ Delete a contact
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Resource Name: It is the ID of the contact which you can fetch while listing all the contacts.
β Outputs: None
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=_SlBPg9OYv4β½ List all contact groups
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» pageToken: Optional. The nextPageToken value returned from a previous call to contactGroups.list. Requests the next page of resources.
β» pageSize: Optional. The maximum number of groups to return. Valid values are between 1 and 1000, inclusive. Defaults to 30 if not set or set to 0.
β» syncToken: Optional. A sync token, returned by a previous call to contactgroups.list. Only resources changed since the sync token was created will be returned..
β» groupFields: Optional. A field mask to restrict which fields on the group are returned. Defaults to metadata, groupType, memberCount, and name if not set or set to empty.
β Outputs:
β» List of contact groups with their details.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=kXVcPfQQBZwβ½ Create a contact group
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Name: It is the name of the contact group which will be created.
β Outputs:
β» Details of the contact group created.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=I5q0p9yc8sMβ½ Update a contact group
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Resource Name: It is the ID of the contact group which you can fetch while listing all the contacts.
β» Etag: It is the etag of the contact group which you can fetch while listing all the contacts groups.
β» Name: Name of the contact group.
β Outputs:
β» Details of the contact group updated.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=kXVcPfQQBZwβ½ Delete a contact group
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» deleteContacts: If its true, all the contacts inside the group will be deleted and if its false, group will be deleted without contacts.
β Outputs:
β» Details of the contact created.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=X58rj03Tv1cβ½ Get list of other contacts
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» readMask: A field mask to restrict which fields on each contact are returned. Multiple fields can be specified by separating them with commas.
β» sources: Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT if not set.
β Outputs:
β» List of other contact with their details.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=zmkn7aSJYTMβ½ Search other contacts
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Query: Input any text to search the contact group. It can be the first name, last name, email address etc.
β Outputs:
β» List of the contact groups with their details.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=zmkn7aSJYTM