使用C#从MTurk获取结果

时间:2019-06-04 15:24:18

标签: c# mechanicalturk

我正在使用C#库与Mechanical Turk合作。我很好奇如何获取HIT请求的结果?

        AmazonMTurkClient mturkClient = new AmazonMTurkClient(
            awsAccessKeyId,
            awsSecretAccessKey,
            config);
        CreateHITRequest hitRequest = new CreateHITRequest();
        hitRequest.Title = "Test Title";
        hitRequest.Description = "Test Description";
        hitRequest.Reward = "0.50";
        hitRequest.AssignmentDurationInSeconds = 60 * 60; //1 hr
        hitRequest.LifetimeInSeconds = 60 * 60 * 24; // 1 day
        hitRequest.Question = question;
        CreateHITResponse hit = mturkClient.CreateHIT(hitRequest);
        ListHITsRequest item = new ListHITsRequest();
        var results = mturkClient.ListHITs(item);

我尝试调用listhits方法,但仅创建的某些Hits并不会返回任何结果。

0 个答案:

没有答案