Skip to content

Instantly share code, notes, and snippets.

@dobrite
Last active August 22, 2023 16:38
Show Gist options
  • Save dobrite/8bbe3b07caab8fd5b26bbb4202e55792 to your computer and use it in GitHub Desktop.
Save dobrite/8bbe3b07caab8fd5b26bbb4202e55792 to your computer and use it in GitHub Desktop.
# Twilio Doc (Ruby):
# https://www.twilio.com/docs/sms/compliance/toll-free/api-onboarding?code-sample=code-submit-a-toll-free-verification-request-using-existing-customer-profile&code-language=Ruby&code-sdk-version=6.x
integration.toll_free_verification_sid ||=
client
.messaging
.v1
.tollfree_verifications
.create(
# unique per subaccount. this will be a real subaccount SID.
customer_profile_sid: "BUabc123",
# unique per subaccount. this will be the real business (i.e. Church) name.
business_name: "A2P Testing Org",
# unique per subaccount. this will either be the Church's website link, or a link to
# a Church specific subdomain on our website builder product (churchcenter.com).
business_website: "https://a2p-testing-org-410379.churchcenter.com",
# unique per subaccount. this will be an email for a contact at the Church.
notification_email: "dave@a2ptestingorg.com",
# static value. this will be the same value for all submissions.
use_case_categories: ["CHARITY_NONPROFIT"],
# static value. this will be the same value for all submissions.
use_case_summary:
"This number is used to send out reminders and announcements to church members",
# static value. this will be the same value for all submissions.
production_message_sample: "Don't forget about the potluck on Sunday night! /" \
" No in person Church service this week due to weather. Join us online!",
# unique per subaccount. this will always contain a link to a Church specific opt-in form
# on our website builder product (churchcenter.com).
opt_in_image_urls: "https://a2p-testing-org-410379.churchcenter.com/people/forms/599219",
# static value. this will be the same for all submissions.
opt_in_type: "WEB_FORM",
# unique per subaccount. will be provided by the Church.
message_volume: "1,000",
# unique per subaccount. this will be a real TFN SID.
tollfree_phone_number_sid: "PNabc123",
# unique per subaccount. these pages will all have the same content, but each
# will contain the name of its respective church (A2P Testing Org in this example).
# pages are not live. links are only present as an example.
additional_information: "Terms of Service: https://a2p-testing-org-410379.churchcenter.com/terms " \
"Privacy Policy: https://a2p-testing-org-410379.churchcenter.com/privacy",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment