Send-ShortMessage.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
function Send-ShortMessage {
<#
.SYNOPSIS
 
Sends a short message (SMS) to a Short Message Provider
 
.DESCRIPTION
 
Sends a short message (SMS) to a Short Message Provider
 
Multiple numbers can be piped to the Cmdlet. Numbers must be in international
format (only numbers, no leading zero, '+', space or '-').
 
Currently 'Clickatell' is the only supported provider. Messages are sent via
the REST API (https://www.clickatell.com/help/apidocs/).
 
.INPUTS
 
You can pipe an array of telephone numbers (as String objects) to the Cmdlet.
 
.OUTPUTS
 
The Cmdlet returns a hashtable per recipient containing the following keys:
accepted True|False depending on result of operation
apiMessageId message id of SMS sent
to recipient of message
code error code if sending failed
description error description if sending message failed
 
.EXAMPLE
Send-ShortMessage 27999112345 'hello, world!' -Credential e2c479178dd741aabe4d05c25db9b9b3
Name Value
---- -----
apiMessageId 2249157aa12e410398ce8e72f6108a36
accepted True
to 27999112345
 
Send an SMS to '27999112345' (Clickatell test range) with the message text 'hello, world!'
and the authentication token 'e2c479178dd741aabe4d05c25db9b9b3'.
 
=== HTTP REQUEST ===
POST https://api.clickatell.com/rest/message HTTP/1.1
Authorization: Bearer e2c479178dd741aabe4d05c25db9b9b3
X-Version: 1
User-Agent: Mozilla/5.0 (Windows NT; Windows NT 6.1; en-US) WindowsPowerShell/3.0
Content-Type: application/json
Host: api.clickatell.com
Content-Length: 46
 
{"text":"'hello, world!","to":["27999112345"]}
 
=== HTTP RESPONSE ===
HTTP/1.1 202 Accepted
Date: Mon, 16 Feb 2015 07:35:05 GMT
Server: Apache
Content-Length: 109
Content-Type: application/json
 
{"data":{"message":[{"accepted":true,"to":"27999112345","apiMessageId":"2249157aa12e410398ce8e72f6108a36"}]}}
 
.EXAMPLE
'27999112345','27999112346' | Send-ShortMessage -Message 'hello, world!' -Credential e2c479178dd741aabe4d05c25db9b9b3
 
Send an SMS to '27999112345' and '27999112346' with the message text 'hello, world!'
and the authentication token 'e2c479178dd741aabe4d05c25db9b9b3'.
 
 
.EXAMPLE
'333' | Send-ShortMessage -Message 'hello, world!' -Credential e2c479178dd741aabe4d05c25db9b9b3
Name Value
---- -----
apiMessageId
accepted False
to 333
code 105
description Invalid Destination Address
 
Tries to send an SMS to '333' with the message text 'hello, world!' and the authentication
token 'e2c479178dd741aabe4d05c25db9b9b3'. This fails as the specified telephone number is invalid.
 
=== HTTP REQUEST ===
POST https://api.clickatell.com/rest/message HTTP/1.1
Authorization: Bearer e2c479178dd741aabe4d05c25db9b9b3
X-Version: 1
User-Agent: Mozilla/5.0 (Windows NT; Windows NT 6.1; en-US) WindowsPowerShell/3.0
Content-Type: application/json
Host: api.clickatell.com
Content-Length: 37
Connection: Keep-Alive
 
{"text":"hello, world!","to":["333"]}
 
=== HTTP RESPONSE ===
HTTP/1.1 400 Bad Request
Date: Mon, 16 Feb 2015 07:34:26 GMT
Server: Apache
Content-Length: 208
Connection: close
Content-Type: application/json
 
{"data":{"message":[{"accepted":false,"to":"333","apiMessageId":"","error":{"code":"105","description":"Invalid Destination Address","documentation":"http://www.clickatell.com/help/apidocs/error/105.htm"}}]}}
 
 
.EXAMPLE
Send-ShortMessage 27999112345 'hello, world!' -Credential e2c479178dd741aabe4d05c25db9b9b3 -From mySenderID
Name Value
---- -----
apiMessageId 2249157aa12e410398ce8e72f6108a36
accepted True
to 27999112345
 
Send an SMS to '27999112345' (Clickatell test range) with the message text 'hello, world!'
and the authentication token 'e2c479178dd741aabe4d05c25db9b9b3' and specify 'mySenderID'
as the SenderID (must be configured with your provider).
 
.LINK
 
Online Version: http://dfch.biz/biz/dfch/PS/System/Utilities/Send-ShortMessage/
 
 
.NOTES
 
See module manifest for required software versions and dependencies at:
http://dfch.biz/biz/dfch/PS/System/Utilities/biz.dfch.PS.System.Utilities.psd1/
 
 
#>

[CmdletBinding(
    SupportsShouldProcess = $true
    ,
    ConfirmImpact = 'Low'
    ,
    HelpURI = 'http://dfch.biz/biz/dfch/PS/System/Utilities/Send-ShortMessage/'
)]
Param (
    # Specifies the recipient's telephone number
    [Parameter(Mandatory = $true, ValueFromPipeline = $true, Position = 0)]
    [alias("to")]
    [alias("Rescipient")]
    $InputObject
    ,
    # Specfies the message to send. This can be larger than 160 characters and
    # will be automatically concatenated (depending on MaxParts parameter).
    [Parameter(Mandatory = $true, Position = 1)]
    [alias("text")]
    [String] $Message
    ,
    # Specfies the sender id of the message. This can a number of letters, numbers or
    # will be automatically concatenated (depending on MaxParts parameter).
    [ValidatePattern("^[a-zA-Z\ \d]{1,11}$")]
    [Parameter(Mandatory = $false)]
    [alias("SenderID")]
    [String] $From
    ,
    # Specifies the authentication token, can be either a plain string or a PSCredential object
    [Parameter(Mandatory = $true)]
    [alias("password")]
    [alias("token")]
    $Credential
    ,
    # Specify the maximum credits to spend on the message,
    # this setting might have no effect when overriden in provider's API definition
    [Parameter(Mandatory = $false)]
    [int] $MaxCredits
    ,
    # Specifies the maximum parts of the message (if longer than 160 chars),
    # this setting might have no effect when overriden in provider's API definition
    [Parameter(Mandatory = $false)]
    [int] $MaxParts
    ,
    # Specifies the provider via which to send the message
    [ValidateSet('Clickatell')]
    [Parameter(Mandatory = $false)]
    [String] $Provider = 'Clickatell'
)

BEGIN
{
    # Default test variable for checking function response codes.
    [Boolean] $fReturn = $false;
    # Return values are always and only returned via OutputParameter.
    $OutputParameter = @();
    $OutputParameterPrepare = New-Object System.Collections.ArrayList;
    $datBegin = [datetime]::Now;
    [string] $fn = $MyInvocation.MyCommand.Name;
    Log-Debug $fn ("CALL. Message[length: {0}] to '{1}' via '{2}'" -f $Message.Length, ((Out-String -InputObject $InputObject).Replace([environment]::NewLine, ',').TrimEnd(',')), $Provider);
    # Check authentication token
    if($Provider -eq 'Clickatell')
    {
        if($Credential -is [PSCredential])
        {
            if(![String]::IsNullOrWhiteSpace($Credential.GetNetworkCredential().Password))
            {
                $Credential = $Credential.GetNetworkCredential().Password;
            }
            else
            {
                $Credential = $Credential.UserName;
            }
        }
        elseif($Credential -is [String])
        {
            # String is ok, nothing to do.
        }
        else
        {
            $msg = "Credential: Parameter validation FAILED."
            $e = New-CustomErrorRecord -m $msg -cat InvalidArgument -o $Credential;
            $PSCmdlet.ThrowTerminatingError($e);
        }

        $Uri = 'https://api.clickatell.com/rest/message';
        $headers = @{};
        # tricky - version must be set as string, otherwise Invoke-RestMethod call fails
        # this is not a PowerShell issue but due to the Clickatell API
        $headers.'X-Version' = '1';
        $headers.'Authorization' = ( "Bearer {0}" -f $Credential );
        if($PSBoundParameters.ContainsKey('MaxCredits'))
        {
            $headers.maxCredits = $MaxCredits.ToString();
        }
        if($PSBoundParameters.ContainsKey('MaxParts'))
        {
            $headers.maxMessageParts = $MaxParts.ToString();
        }
    }
}
PROCESS
{
    try
    {
        # Currently only clickatell is supported. If there is more than one
        # provider in the future, this should be moved to a separate sub-function.
        # if($Provider -eq 'Clickatell')
        # {
            # # Invoke-ClickatellSubFunction ...
        # }
        foreach($Object in $InputObject) 
        {
            # Clickatell specific basic number normalisation
            $Object = $Object.ToString().Replace('+', '').Replace('-','').Replace(' ','');
            # escape new line etc
            $Object = $Object.Replace("`n", '\n\n');
            
            if($PSCmdlet.ShouldProcess( (("{0}: {1}" -f $Object, $Message)) ))
            {
                # The 'to' parameter MUST be set as an array, even if only one recipient is specified.
                $Body = @{};
                $Body.to = @($Object.ToString());
                $Body.text = $Message;
                if($PSBoundParameters.ContainsKey('From'))
                {
                    $Body.from = $From;
                }
                try
                {
                    # In PS 3.0 we cannot set an 'Accept' header, it is sufficient to only set 'Content-Type'.
                    # See https://connect.microsoft.com/PowerShell/feedback/details/757249/invoke-restmethod-accept-header
                    $BodyJson = ($Body | ConvertTo-Json -Compress);
                    $BodyJson = $BodyJson.Replace('\\n', '');
                    $r = Invoke-RestMethod -Method POST -Uri $Uri -ContentType 'application/json' -Headers $headers -Body $BodyJson;
                    if($r.error)
                    {
                        $ApiResponse = $r.error;
                        $r2 = @{};
                        $r2.accepted = $false;
                        $r2.code = $ApiResponse.code;
                        $r2.to = [String]::Empty;
                        $r2.apiMessageId = [String]::Empty;
                        $r2.description = $ApiResponse.description;
                        $null = $OutputParameterPrepare.Add($r2);
                    }
                    else
                    {
                        $ApiResponse = $r.data.message;
                        $r2 = @{};
                        $r2.accepted = $ApiResponse.accepted;
                        $r2.to = $ApiResponse.to;
                        $r2.apiMessageId = $ApiResponse.apiMessageId;
                        $null = $OutputParameterPrepare.Add($r2);
                    }
                }
                catch [System.Net.WebException]
                {
                    # http://stackoverflow.com/questions/18771424/how-to-get-powershell-invoke-restmethod-to-return-body-of-http-500-code-response
                    $result = $_.Exception.Response.GetResponseStream();
                    $reader = New-Object System.IO.StreamReader($result);
                    $reader.BaseStream.Position = 0;
                    $reader.DiscardBufferedData();
                    $responseBody = $reader.ReadToEnd();
                    $ApiResponse = (ConvertFrom-Json -InputObject $responseBody).data.message;
                    $r2 = @{};
                    $r2.accepted = $ApiResponse.accepted;
                    $r2.to = $ApiResponse.to;
                    $r2.apiMessageId = $ApiResponse.apiMessageId;
                    $r2.code = $ApiResponse.error.code;
                    $r2.description = $ApiResponse.error.description;
                    $null = $OutputParameterPrepare.Add($r2);
                    Log-Error $fn ($r2 | Out-String);
                }
            }
        }
    }
    # catch
    # {
        # No need to catch here, as we already did in inner block
        # $_.GetType();
    # }
    finally
    {
        # N/A
    }
}
END
{
    # $datEnd = [datetime]::Now;
    # Log-Debug -fn $fn -msg ("RET. fReturn: [{0}]. Execution time: [{1}]ms. Started: [{2}]." -f $fReturn, ($datEnd - $datBegin).TotalMilliseconds, $datBegin.ToString('yyyy-MM-dd HH:mm:ss.fffzzz')) -fac 2;
    $OutputParameter = $OutputParameterPrepare.ToArray();
    return $OutputParameter;
}

} # function

if($MyInvocation.ScriptName) { Export-ModuleMember -Function Send-ShortMessage; } 

#
# Copyright 2015 d-fens GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# SIG # Begin signature block
# MIIXDwYJKoZIhvcNAQ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