@@ -112,13 +112,13 @@ for (const sendResult of sendResults) {
112112To check if the recipients are in the Opt Out list, call the ` check ` function from the ` SmsClient.optOuts ` with a list of recipient phone numbers.
113113
114114``` typescript
115- const optOutCheckResults = await client .optOuts .check (
116- from : " <from-phone-number>" , // Your E.164 formatted phone number used to send SMS
117- to : [" <to-phone-number-1>" , " <to-phone-number-2>" ], E .164 formatted recipient phone numbers
118- );
115+ const optOutCheckResults = await client .optOuts .check (
116+ " <from-phone-number>" , // Your E.164 formatted phone number used to send SMS
117+ [" <to-phone-number-1>" , " <to-phone-number-2>" ], // E.164 formatted recipient phone numbers
118+ );
119119
120120 for (const optOutCheckResult of optOutCheckResults ) {
121- if (optOutCheckResult .httpStatusCode == 200 ) {
121+ if (optOutCheckResult .httpStatusCode === 200 ) {
122122 console .log (" Success: " , optOutCheckResult );
123123 } else {
124124 console .error (" Something went wrong when trying to send opt out check request: " , optOutCheckResult );
@@ -130,13 +130,13 @@ To check if the recipients are in the Opt Out list, call the `check` function fr
130130To add the list of recipients to Opt Out list, call the ` add ` function from the ` SmsClient.pptOuts ` with a list of recipient phone numbers.
131131
132132``` typescript
133- const optOutAddResults = await client .optOuts .add (
134- from : " <from-phone-number>" , // Your E.164 formatted phone number used to send SMS
135- to : [" <to-phone-number-1>" , " <to-phone-number-2>" ], // E.164 formatted recipient phone numbers
136- );
133+ const optOutAddResults = await client .optOuts .add (
134+ " <from-phone-number>" , // Your E.164 formatted phone number used to send SMS
135+ [" <to-phone-number-1>" , " <to-phone-number-2>" ], // E.164 formatted recipient phone numbers
136+ );
137137
138138 for (const optOutAddResult of optOutAddResults ) {
139- if (optOutAddResult .httpStatusCode == 200 ) {
139+ if (optOutAddResult .httpStatusCode === 200 ) {
140140 console .log (" Success: " , optOutAddResult );
141141 } else {
142142 console .error (" Something went wrong when trying to send opt out add request: " , optOutAddResult );
@@ -148,13 +148,13 @@ const optOutAddResults = await client.optOuts.add(
148148To remove the list of recipients to Opt Out list, call the ` remove ` function from the ` SmsClient.optOuts. ` with a list of recipient phone numbers.
149149
150150``` typescript
151- const optOutRemoveResults = await client .optOuts .remove (
152- from : " <from-phone-number>" , // Your E.164 formatted phone number used to send SMS
153- to : [" <to-phone-number-1>" , " <to-phone-number-2>" ], // E.164 formatted recipient phone numbers
154- );
151+ const optOutRemoveResults = await client .optOuts .remove (
152+ " <from-phone-number>" , // Your E.164 formatted phone number used to send SMS
153+ [" <to-phone-number-1>" , " <to-phone-number-2>" ], // E.164 formatted recipient phone numbers
154+ );
155155
156156 for (const optOutRemoveResult of optOutRemoveResults ) {
157- if (optOutRemoveResult .httpStatusCode == 200 ) {
157+ if (optOutRemoveResult .httpStatusCode === 200 ) {
158158 console .log (" Success: " , optOutRemoveResult );
159159 } else {
160160 console .error (" Something went wrong when trying to send opt out remove request: " , optOutRemoveResult );
0 commit comments