An easily-extensible php client for the Amazon Mechanical Turk API
As you can probably tell, this is not a complete implementation. Feel free to contribute, but please reference the contribution guidelines below. Thank you!
- Create a new class in
src/OldTimeGuitarGuy/MechanicalTurk/Operationsthat extends fromBase\Operation. The class name MUST be the exact name of the operation according to the documentation. - Add an entry to the operations array in
src/OldTimeGuitarGuy/MechanicalTurk/Requester.php. The key must be the camelcase version of the operation name. - Add an entry to the documentation array in
src/OldTimeGuitarGuy/MechanicalTurk/Exceptions/MechanicalTurkOperationException.php. The key must be the exact name of the operation according to the documentation. - Create a new (passing) test class in
tests/that extends fromOperationTestCase. The name of the class MUST be the exact name of the operation according to the documentation, followed by Test. (ex.tests/CreateHITTest.php) Reference the other tests for formatting examples.
When defining
satisfiesRequirements, you can use the instance methodisSetOnto easily determine the requirements.
NOTE: You should NOT include Operation as a requirement, as this will be set automatically during the request.