Index: includes/definitions/transports.inc.php =================================================================== --- includes/definitions/transports.inc.php (revision 13184) +++ includes/definitions/transports.inc.php (working copy) @@ -916,7 +916,7 @@ "DEVICE_DESCRIPTION":"%DEVICE_DESCRIPTION%","DEVICE_ID":"%DEVICE_ID%","DEVICE_URL":"%DEVICE_URL%","DEVICE_LINK":"%DEVICE_LINK%", "DEVICE_HARDWARE":"%DEVICE_HARDWARE%","DEVICE_OS":"%DEVICE_OS%","DEVICE_TYPE":"%DEVICE_TYPE%","DEVICE_LOCATION":"%DEVICE_LOCATION%", "DEVICE_UPTIME":"%DEVICE_UPTIME%","DEVICE_REBOOTED":"%DEVICE_REBOOTED%","TITLE":"%TITLE%"}' ], - //'token' => [ 'description' => 'Authentication token' ], + 'token' => [ 'description' => 'Authentication token' ], //'username' => [ 'description' => 'Authentication username' ], //'password' => [ 'description' => 'Authentication password' ], ], @@ -929,6 +929,7 @@ //'message_tags' => TRUE, // Pass all message tags as request ARRAY 'message_json' => '%json%', // Pass raw json (like message_tags) 'response_format' => 'json', + 'request_header' => [ 'Authorization: %token%' ], // additional request header(s) with token // FIXME. Need way for set custom response validate fields // 'response_test' => [ 'field' => 'status', 'operator' => 'eq', 'value' => 'successful' ] ],