UCONN

UCONN
UCONN

Tuesday, July 20, 2021

Requirement 2, 7/20/2021, 5:21 PM, English, 7/20/2021, 5:22 PM

Your assigned language is: English
Classroom blog: googleclouduconn.blogspot.com

7/20/2021, 5:21 PM

Requirement number 2
New page needed to send text
send communications.
use text box and send button
When send is pushed

Message
Hello World
---> SEND←--

Loop thru all records in the client table
E.G
Email: john.iacovacci1@gmail.com
Language: es
Translate Message
tinst = customer['instructions']
tlang = language field from datastore table
result = translate_client.translate(tinst, target_language=tlang)
Need to use GMAIL API

https://developers.google.com/gmail/api/quickstart/python
Remember share project with team.

Do you best to try to get this process running.

It will require establishing oauth credentials
User Authentication with OAuth 2.0
The OAuth 2.0 specification defines a delegation protocol that is
useful for conveying authorization decisions across a network of
web-enabled applications and APIs. OAuth is used in a wide variety of
applications, including providing mechanisms for user authentication.




Communication process system
Build an app engine process to input the following fields into an HTML form

Textbox

Send-button


When the send button is hit

Loop thru table to find client records that match class
If record is matched check the language field to see if it needs translation'
If language is not english
Send language and text to translate API
Check to see if delivery text or email
If email send translated (if needed) textbox to email on record
https://uconnstamfordslp.blogspot.com/p/app-engine-flask-html-form.html
(not complete)
Please note texting may require additional work then emailing.
For better success separate out both with small POC programs.

No comments:

Post a Comment

Disable Billing

Search for Billing Manage billing accounts Go to MYPROJECTS CLICK ON THE 3 BUTTON Actions Then hit disable