Closes #13 Reviewed-on: phoenix/textsender-models#19 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
23 lines
544 B
Go
23 lines
544 B
Go
package config
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type TwilioConfig struct {
|
|
AccountSID string `json:"auth_sid"`
|
|
ServiceSID string `json:"service_sid"`
|
|
URI string `json:"uri"`
|
|
AuthToken string `json:"auth_token"`
|
|
Number string `json:"phone_number"`
|
|
}
|
|
|
|
func (config *TwilioConfig) PrintConfig() {
|
|
fmt.Println("Twilio config")
|
|
fmt.Println("Account SID:", config.AccountSID)
|
|
fmt.Println("Service SID:", config.ServiceSID)
|
|
fmt.Println("URI:", config.URI)
|
|
fmt.Println("Auth Token:", config.AuthToken)
|
|
fmt.Println("Number:", config.Number)
|
|
}
|