Skip to content

Instantly share code, notes, and snippets.

@MohsinAQ
MohsinAQ / Response_Body
Created February 10, 2022 13:59
When a text (SMS) message is received
{
"AccountSid": "AC18504b4519cb05ccedb47dc16e23f3f8",
"From": "+17866487805",
"To": "+17863217392",
"FromCity": "Chicago",
@MohsinAQ
MohsinAQ / Request_Body
Created February 10, 2022 12:12
Send text (SMS) to multiple numbers
{
"ContactNumber":
"+12122221,+12122223",
"Body": "Type your Message here",
"ReplySTOPToOptOut": true
@MohsinAQ
MohsinAQ / Response_Body
Created December 1, 2021 16:23
Get List of Places
{
"Data": [
{
"PlaceId": "336eb60a-38fd-453e-a7dc-7f54a34f4e3d",
"AccountId": "a16ec039-b68c-4002-9729-baca3a8d7114",
"GooglePlaceId": "ChIJV_2EqdxHsz4RCGMZykW448A",
"Name": "Al Habib Restaurant Super Highway",
"CreatedAt": "2021-11-05T07:01:31.883"
},
{
@MohsinAQ
MohsinAQ / Response_Body
Created December 1, 2021 16:21
Get List of Plans
{
"Data": [
{
"PlanId": "Trial Test",
"Order": 1,
"Name": "Trial Plan",
"Package": 000,
"MonthlyPrice": 000,
"OveragePrice": 000,
"StripeMonthlyPlanId": "abc",
@MohsinAQ
MohsinAQ / Response_Body
Created December 1, 2021 16:17
Get List of Groups
{
"Data": [
{
"GroupId": "3edc6762-ee21-4b06-973c-77b2308b1f9c",
"Name": "ReminderGroupTest",
"IsVisible": true,
"ContactsCount": 0
},
{
"GroupId": "52ae3bd6-0db6-4cc4-bbb7-eec55948d1fd",
@MohsinAQ
MohsinAQ / Response_Body
Last active February 9, 2022 09:02
Get List of contacts
{
"Data": [
{
"ContactId": "6ca76fbc-aa4e-4a4e-9a97-75f419fedfbf",
"Phone": "12341226321",
"Name": "John I (12341226321)",
"WelcomeSent": true,
"Status": "Active",
"Groups": null
@MohsinAQ
MohsinAQ / Request_Body
Last active February 10, 2022 11:21
Update a PowerTextor contact
{
"ContactNumber": "+12341226321",
"UpdatedContactName": "John I",
"UpdatedContactNumber": "+12341226321"
}
@MohsinAQ
MohsinAQ / Request_Body
Last active December 1, 2021 16:05
Send text (SMS) message event reminder to a new group
{
"To": [
"+123112344","+187265156920","+1456792082"
],
"ReminderText": "Type your message here",
"GroupName": "Demo Group 4",
"EventDate": "12/3/2021",
"Day": 2,
"Time": "8:12 AM",
"ReplySTOPToOptOut": true
{
"To": [
"+123112344","+187265156920","+1456792082"
],
"ReviewText": "Type your message here",
"PlaceId": "336EB60A-38FD-453E-A7DC-7F54A34F4E3D", //placeId
"GroupName": "Demo Group2",
"ReplySTOPToOptOut": true
}
@MohsinAQ
MohsinAQ / Request_Body
Created December 1, 2021 15:59
Schedule text (SMS) message for a new group
{
"To": [
"string"
],
"Body":"Type your message here",
"GroupName": "Demo Group1",
"ScheduledDate": "12/1/2021",
"ScheduledTime": "3:45 PM",
"ReplySTOPToOptOut": true
}