Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何获取hittypeid?_Amazon Web Services_Mechanicalturk - Fatal编程技术网

Amazon web services 如何获取hittypeid?

Amazon web services 如何获取hittypeid?,amazon-web-services,mechanicalturk,Amazon Web Services,Mechanicalturk,要运行updateHITs.sh,我必须使用HIT ID和hittypeid。我有ID,但不确定如何从命令行工具获取类型。有什么想法吗?有两个地方可以使用命令行工具获取HITTypeID。首先,它在创建点击时显示。例如,以下是helloworld示例中执行run.sh的输出运行: 0088653dacfc:helloworld jrb$ ./run.sh Unable to find a $JAVA_HOME at "/usr", continuing with system-provided

要运行
updateHITs.sh
,我必须使用HIT ID和
hittypeid
。我有ID,但不确定如何从命令行工具获取类型。有什么想法吗?

有两个地方可以使用命令行工具获取HITTypeID。首先,它在创建点击时显示。例如,以下是helloworld示例中执行run.sh的输出运行:

0088653dacfc:helloworld jrb$ ./run.sh 
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
--[Initializing]----------
 Input: ../samples/helloworld/helloworld.input
 Properties: ../samples/helloworld/helloworld.properties
 Question File: ../samples/helloworld/helloworld.question
 Preview mode disabled
--[Loading HITs]----------
  Start time: Thu Mar 31 17:01:16 PDT 2016
Created HIT 1: HITId=3EHVO81VN5LKU5SFUDTKRPRS0ZQ1HA
Created HIT 2: HITId=3FBEFUUYRK50R4LYUDV95ZV5VFG6A2
Created HIT 3: HITId=307L9TDWJYS8E4S5KF2GK23LKVD3ND
Created HIT 4: HITId=35ZRNT9RUIYQWPSHLU2TZR3QA5I3OS
Created HIT 5: HITId=3X55NP42EOG8HP4I0UF8OR8GKAE3P9

You may see your HIT(s) with HITTypeId '3PFYYPJUJW5X02IODV4MGVYUBJX2Z0' here: 

  https://workersandbox.mturk.com/mturk/preview?groupId=3PFYYPJUJW5X02IODV4MGVYUBJX2Z0

  End time: Thu Mar 31 17:01:17 PDT 2016
--[Done Loading HITs]----------
  Total load time: 1 seconds.
  Successfully loaded 5 HITs.
此外,您还可以在执行run.sh命令(创建命中)时生成的.success文件中获取HITTypeId。例如,在我运行上述命令后,我在同一文件夹中有一个名为helloworld.success的文件,其内容为(注意,我添加了一些选项卡以使其看起来美观,但不要尝试在文件中直接使用它,额外的选项卡意味着它可能无法工作):

updateHITs.sh文件需要一个.success文件作为输入。如果你只有一个希特勒,其实有一种偷偷摸摸的方法。事实证明,在.success文件中,实际上不需要hittypeid,它就可以工作。因此,请将代码粘贴到一个文件中,并将其命名为Skilly.success:

hitid
3FBEFUUYRK50R4LYUDV95ZV5VFG6A2
然后运行以下命令:

./updateHITs.sh -success sneaky.success -properties new_hit.properties

其中“new_hit.properties”包含您要更新这些点击的所有属性

总之,只有通过命令行创建HIT才能获得此ID?您也可以通过使用HITId调用GetHIT从API获得ID。您可以通过单击“单独管理点击次数”从用户界面获取该信息,但如果您的帐户中有大量点击次数,则此方法可能无法使用。我希望这有助于回答您的问题,但如果有帮助的话,我绝对愿意帮助添加更多颜色。祝你好运!
./updateHITs.sh -success sneaky.success -properties new_hit.properties