8000 mturk CreateHIT does not support QualificationRequirement · Issue #79 · goamz/goamz · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mturk CreateHIT does not support QualificationRequirement #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
changlan opened this issue Apr 29, 2015 · 0 comments
Open

mturk CreateHIT does not support QualificationRequirement #79

changlan opened this issue Apr 29, 2015 · 0 comments

Comments

@changlan
Copy link

It seems that CreateHIT in the mturk API does not support QualificationRequirement.

I create a QualificationRequirement:

    qual := &mturk.QualificationRequirement{
        QualificationTypeId: "00000000000000000071",
        Comparator:          "NotEqualTo",
        IntegerValue:        0,
        LocaleValue:         "CN",
        RequiredToPreview:   true,
    }

Then I called CreateHIT with qual as the argument:

                hit, err := turk.CreateHIT(
                    "Crowdproxy", "Host a proxy and help defeat censorship!",
                    question,
                    reward,
                    1800,         // assignmentDurationInSeconds
                    3600,         // lifetimeInSeconds
                    "javascript", // keywords
                    1000,         // maxAssignments
                    qual,         // qualificationRequirement
                    "",           // requesterAnnotation
                )
                if err == nil {
                    fmt.Println(hit)
                }

Here is what the call returns:

&{{ False [{0 AWS.InvalidEnumeratedParameter The value "Illegal Text data found as child of: QualificationRequirement" you specified for enumeration is invalid. (1430347307855 s) }]}        {  } 0 0 0 0 {  0  false} <nil>  0  0 0 0}

Is there anything wrong with how I use the API? Or it is just not supported? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0