You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Module: Aws::MTurk
- Defined in:
- (unknown)
Overview
This module provides a client for making API requests to Amazon Mechanical Turk.
Aws::MTurk::Client
The Client class provides one-to-one mapping for each API operation.
mturk = Aws::MTurk::Client.new(region: 'us-east-1')
mturk.operation_names
#=> [:accept_qualification_request, :approve_assignment, :associate_qualification_with_worker, :create_additional_assignments_for_hit, ...]
Each API operation method accepts a hash of request parameters and returns a response object.
resp = mturk.accept_qualification_request(params)
See Client for more information.
Aws::MTurk::Errors
Errors returned from Amazon Mechanical Turk are defined in the Errors module and extend Errors::ServiceError.
begin
# do stuff
rescue Aws::MTurk::Errors::ServiceError
# rescues all errors returned by Amazon Mechanical Turk
end
See Errors for more information.