Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

Twilio API Send SMS Json

All examples are included with download of MBS FileMaker Plugin.

Twilio API Send SMS Json.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
Value Lists0
Custom Functions0
Custom Menus33
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Twilio Send SMS
9 fields defined, 1 record
Twilio Send SMS

Fields

Table Name: Twilio Send SMS - 9 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
BodyNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      ToNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          FromNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              AccountSIDNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  AuthTokenNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      API_URLNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          resultNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              DebugMessagesNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  ContentNormal, TextAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German

                                      Layout Objects: Twilio Send SMS

                                      Regular Fields

                                      Field Name: Twilio Send SMS::Body
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 156 pt
                                      • Left: 138 pt
                                      • Bottom: 172 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: Twilio Send SMS::To
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 182 pt
                                      • Left: 138 pt
                                      • Bottom: 198 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: Twilio Send SMS::From
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 206 pt
                                      • Left: 138 pt
                                      • Bottom: 222 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: Twilio Send SMS::AccountSID
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 106 pt
                                      • Left: 136 pt
                                      • Bottom: 122 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: Twilio Send SMS::AuthToken
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 130 pt
                                      • Left: 136 pt
                                      • Bottom: 146 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: Twilio Send SMS::result
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 237 pt
                                      • Left: 138 pt
                                      • Bottom: 363 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: Twilio Send SMS::DebugMessages
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 371 pt
                                      • Left: 138 pt
                                      • Bottom: 541 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: Twilio Send SMS::Content
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 548 pt
                                      • Left: 138 pt
                                      • Bottom: 638 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: Twilio Send SMS::API_URL
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 70 pt
                                      • Left: 136 pt
                                      • Bottom: 99 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Group Buttons

                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Send
                                        Additional Properties:
                                      • Change to hand cursor over button
                                      • Rectangular
                                      • Top: 93 pt
                                      • Left: 588 pt
                                      • Bottom: 118 pt
                                      • Right: 691 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “Send” ]

                                      Scripts:


                                      Script Hierarchy

                                      Send

                                      Script NameSend
                                      Run script with full access privilegesOff
                                      Include In MenuYes
                                      Layouts that use this script
                                      Scripts that use this script
                                        Script Definition
                                        Script Steps
                                        • Set Variable [ $r; Value:MBS("Trace") ]
                                        • #Setup transfer
                                        • Set Variable [ $to; Value:MBS("String.EncodeURLComponent"; Twilio Send SMS::To; "utf8") ]
                                        • Set Variable [ $from; Value:MBS("String.EncodeURLComponent"; Twilio Send SMS::From; "utf8") ]
                                        • Set Variable [ $body; Value:MBS("String.EncodeURLComponent"; Twilio Send SMS::Body; "utf8") ]
                                        • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionpost"; $curl; 1) ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionVerbose"; $curl; 1) ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionSSLVerifyHost"; $curl; 0) ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionSSLVerifyPeer"; $curl; 0) ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionUsername"; $curl; Twilio Send SMS::AccountSID) ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionPassword"; $curl; Twilio Send SMS::AuthToken) ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionURL"; $curl; Twilio Send SMS::API_URL) ]
                                        • #Set input XML with SMS Details inside
                                        • Set Variable [ $content; Value:"Body=" & $body & "&" & "To=" & $to & "&" & "From=" & $from ]
                                        • Set Variable [ $content; Value:MBS( "String.ReplaceNewline"; $content; 2 ) ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionPostFields"; $curl; $content) ]
                                        • #Run transfer
                                        • Set Variable [ $result; Value:MBS("CURL.Perform"; $curl) ]
                                        • #Check result
                                        • Set Variable [ $debugText; Value:MBS("CURL.GetDebugMessages"; $curl) ]
                                        • Set Variable [ $resultText; Value:MBS("CURL.GetResultAsText"; $curl) ]
                                        • Set Variable [ $r; Value:MBS("CURL.Cleanup"; $curl) ]
                                        • Set Field [ Twilio Send SMS::result; $resultText ]
                                        • Set Field [ Twilio Send SMS::DebugMessages; $debugText ]
                                        • Set Field [ Twilio Send SMS::Content; $content ]
                                        Fields used in this script
                                        Scripts used in this script
                                          Layouts used in this script
                                            Tables used in this script
                                            Table occurrences used by this script
                                            Custom Functions used by this script
                                              Custom menu set used by this script

                                                Download example: Twilio API Send SMS Json

                                                Used functions: