This one goes out to all my (C# 2.0) homies

December 15, 2005

This is really rough right now but here is my Amazon Mechanical Turk controller class form my BTTS toolkit. This should help any C# developers get some HITs up on AMT. I basically took the code from the AWSzone.com and made it a bit more usable for me. I will keep posting updates if people find it useful. I don’t use any fancy factory patterns like the java tool kit, this just a basic controller for a model/view/controller setup. Oh yea I’m doing something a little bit funky, I decided to throw my errors via a static event. I have a output window in my applications, I just dump out the errors to that while I’m doing things, I found the WS fails randomly. I will clean this all up as I move towards production, but this helped me get some HITs and Qualifications online quickly.

Click here to download this code

Just add a web reference to AWS, put in your information and away you go. Here is a snippet.

private void BindQualifications()
{
lstQualifications.DataSource = TurkController.GetQualificationTypes();
}

If this helps you out let me know!

Tags: ,

5 Responses

  1. This looks very cool and I will add it to the AWS blog soon.

    You have a small typo in your example — “GetQualficationTypes” should be “GetQualificationTypes”.

    Very nice, thanks for sharing this.

    Jeff;

  2. Oops, thanks!

    Hey you used to be on the Visual Studio team, when are they gunna put a spell checker in that thing?:P

  3. Where is the rest of it? These 2 objects (AWSDataFormatter, AWSRequestSigner) don’t seem to exist

    DateTime timestamp = AWSDateFormatter.GetTimeStampAsDateTime(DateTime.Now);

    String signature = AWSRequestSigner.GenerateSignature(Security.SERVICE_NAME, “GetQualificationRequests”, timestamp, Security.SECRET_KEY);

  4. hmmm not sure — It has been a few months since I put this out — plus I heard there was at least one AWS API change since then. I might update the my toolkit + sample when I get some spare time.

    Until then the best I can say is to use the Scratch Pad — http://awszone.techies.net/scratchpads/aws/requester.us/index.aws

  5. Also check out my complete solution - http://www.bitporters.net/translationmanager/TranslationManager.zip

    I realize now I may have pulled some methods from some of the other AWS samples.

    Thanks!

Leave a Reply