/AWS1/IF_MTU=>SENDTESTEVENTNOTIFICATION()
¶
About SendTestEventNotification¶
The SendTestEventNotification
operation causes Amazon Mechanical Turk to send
a notification message as if a HIT event occurred, according to the provided
notification specification. This allows you to test notifications without
setting up notifications for a real HIT type and trying to trigger them using the website.
When you call this operation, the service attempts to send the test notification immediately.
Method Signature¶
IMPORTING¶
Required arguments:¶
io_notification
TYPE REF TO /AWS1/CL_MTUNOTIFICATIONSPEC
/AWS1/CL_MTUNOTIFICATIONSPEC
¶
The notification specification to test. This value is identical to the value you would provide to the UpdateNotificationSettings operation when you establish the notification specification for a HIT type.
iv_testeventtype
TYPE /AWS1/MTUEVENTTYPE
/AWS1/MTUEVENTTYPE
¶
The event to simulate to test the notification specification. This event is included in the test message even if the notification specification does not include the event type. The notification specification does not filter out the test event.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_mtusendtstevtnotifrsp
/AWS1/CL_MTUSENDTSTEVTNOTIFRSP
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_mtu~sendtesteventnotification(
io_notification = new /aws1/cl_mtunotificationspec(
it_eventtypes = VALUE /aws1/cl_mtueventtypelist_w=>tt_eventtypelist(
( new /aws1/cl_mtueventtypelist_w( |string| ) )
)
iv_destination = |string|
iv_transport = |string|
iv_version = |string|
)
iv_testeventtype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.