@@ -34,13 +34,13 @@ public function __construct($config, $httpCallBack = null)
34
34
* Gets a list of your media files. No query parameters are supported.
35
35
*
36
36
* @param string $accountId User's account ID
37
- * @param string $continuationToken (optional) Continuation token used to retrieve subsequent media.
37
+ * @param string|null $continuationToken (optional) Continuation token used to retrieve subsequent media.
38
38
* @return ApiResponse response from the API call
39
39
* @throws APIException Thrown if API call fails
40
40
*/
41
41
public function listMedia (
42
- $ accountId ,
43
- $ continuationToken = null
42
+ string $ accountId ,
43
+ string $ continuationToken = null
44
44
) {
45
45
46
46
//prepare query string for API call
@@ -128,8 +128,8 @@ public function listMedia(
128
128
* @throws APIException Thrown if API call fails
129
129
*/
130
130
public function getMedia (
131
- $ accountId ,
132
- $ mediaId
131
+ string $ accountId ,
132
+ string $ mediaId
133
133
) {
134
134
135
135
//prepare query string for API call
@@ -215,17 +215,17 @@ public function getMedia(
215
215
* @param string $mediaId The user supplied custom media ID
216
216
* @param string $body TODO: type description here
217
217
* @param string $contentType (optional) The media type of the entity-body
218
- * @param string $cacheControl (optional) General-header field is used to specify directives that MUST be obeyed
218
+ * @param string|null $cacheControl (optional) General-header field is used to specify directives that MUST be obeyed
219
219
* by all caching mechanisms along the request/response chain.
220
220
* @return ApiResponse response from the API call
221
221
* @throws APIException Thrown if API call fails
222
222
*/
223
223
public function uploadMedia (
224
- $ accountId ,
225
- $ mediaId ,
226
- $ body ,
227
- $ contentType = 'application/octet-stream ' ,
228
- $ cacheControl = null
224
+ string $ accountId ,
225
+ string $ mediaId ,
226
+ string $ body ,
227
+ string $ contentType = 'application/octet-stream ' ,
228
+ string $ cacheControl = null
229
229
) {
230
230
231
231
//prepare query string for API call
@@ -318,8 +318,8 @@ public function uploadMedia(
318
318
* @throws APIException Thrown if API call fails
319
319
*/
320
320
public function deleteMedia (
321
- $ accountId ,
322
- $ mediaId
321
+ string $ accountId ,
322
+ string $ mediaId
323
323
) {
324
324
325
325
//prepare query string for API call
@@ -399,35 +399,35 @@ public function deleteMedia(
399
399
/**
400
400
* Gets a list of messages based on query parameters.
401
401
*
402
- * @param string $accountId User's account ID
403
- * @param string $messageId (optional) The ID of the message to search for. Special characters need to be
402
+ * @param string $accountId User's account ID
403
+ * @param string|null $messageId (optional) The ID of the message to search for. Special characters need to be
404
404
* encoded using URL encoding
405
- * @param string $sourceTn (optional) The phone number that sent the message
406
- * @param string $destinationTn (optional) The phone number that received the message
407
- * @param string $messageStatus (optional) The status of the message. One of RECEIVED, QUEUED, SENDING, SENT,
405
+ * @param string|null $sourceTn (optional) The phone number that sent the message
406
+ * @param string|null $destinationTn (optional) The phone number that received the message
407
+ * @param string|null $messageStatus (optional) The status of the message. One of RECEIVED, QUEUED, SENDING, SENT,
408
408
* FAILED, DELIVERED, ACCEPTED, UNDELIVERED
409
- * @param integer $errorCode (optional) The error code of the message
410
- * @param string $fromDateTime (optional) The start of the date range to search in ISO 8601 format. Uses the
409
+ * @param integer|null $errorCode (optional) The error code of the message
410
+ * @param string|null $fromDateTime (optional) The start of the date range to search in ISO 8601 format. Uses the
411
411
* message receive time. The date range to search in is currently 14 days.
412
- * @param string $toDateTime (optional) The end of the date range to search in ISO 8601 format. Uses the
412
+ * @param string|null $toDateTime (optional) The end of the date range to search in ISO 8601 format. Uses the
413
413
* message receive time. The date range to search in is currently 14 days.
414
- * @param string $pageToken (optional) A base64 encoded value used for pagination of results
415
- * @param integer $limit (optional) The maximum records requested in search result. Default 100. The sum of
414
+ * @param string|null $pageToken (optional) A base64 encoded value used for pagination of results
415
+ * @param integer|null $limit (optional) The maximum records requested in search result. Default 100. The sum of
416
416
* limit and after cannot be more than 10000
417
417
* @return ApiResponse response from the API call
418
418
* @throws APIException Thrown if API call fails
419
419
*/
420
420
public function getMessages (
421
- $ accountId ,
422
- $ messageId = null ,
423
- $ sourceTn = null ,
424
- $ destinationTn = null ,
425
- $ messageStatus = null ,
426
- $ errorCode = null ,
427
- $ fromDateTime = null ,
428
- $ toDateTime = null ,
429
- $ pageToken = null ,
430
- $ limit = null
421
+ string $ accountId ,
422
+ string $ messageId = null ,
423
+ string $ sourceTn = null ,
424
+ string $ destinationTn = null ,
425
+ string $ messageStatus = null ,
426
+ int $ errorCode = null ,
427
+ string $ fromDateTime = null ,
428
+ string $ toDateTime = null ,
429
+ string $ pageToken = null ,
430
+ int $ limit = null
431
431
) {
432
432
433
433
//prepare query string for API call
@@ -524,14 +524,14 @@ public function getMessages(
524
524
/**
525
525
* Endpoint for sending text messages and picture messages using V2 messaging.
526
526
*
527
- * @param string $accountId User's account ID
527
+ * @param string $accountId User's account ID
528
528
* @param Models\MessageRequest $body TODO: type description here
529
529
* @return ApiResponse response from the API call
530
530
* @throws APIException Thrown if API call fails
531
531
*/
532
532
public function createMessage (
533
- $ accountId ,
534
- $ body
533
+ string $ accountId ,
534
+ Models \ MessageRequest $ body
535
535
) {
536
536
537
537
//prepare query string for API call
0 commit comments