mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
Merge branch 'develop' of https://github.com/rowyio/rowy into develop
This commit is contained in:
@@ -168,12 +168,19 @@ const extensionBodyTemplate = {
|
||||
})
|
||||
}`,
|
||||
twilioMessage: `const extensionBody: TwilioMessageBody = async({row, db, change, ref}) => {
|
||||
// you can get a user's phone number from the row or from the user document in the database
|
||||
// const phoneNumber = row.phoneNumber
|
||||
/**
|
||||
*
|
||||
* Setup twilio secret key: https://docs.rowy.io/extensions/twilio-message#secret-manager-setup
|
||||
*
|
||||
* You can add any code logic here to be able to customize your message
|
||||
* or dynamically get the from or to numbers
|
||||
*
|
||||
**/
|
||||
|
||||
return ({
|
||||
from:"",
|
||||
to:"",
|
||||
body:"Hi there!"
|
||||
from: "", // from phone number registered on twilio
|
||||
to: "", // recipient phone number - eg: row.<fieldname>
|
||||
body: "Hi there!" // message text
|
||||
})
|
||||
}`,
|
||||
pushNotification: `const extensionBody: PushNotificationBody = async({row, db, change, ref}) => {
|
||||
|
||||
Reference in New Issue
Block a user