{"id":350,"date":"2015-04-02T10:30:37","date_gmt":"2015-04-02T10:30:37","guid":{"rendered":"http:\/\/www.blog.microworkers.com\/?p=350"},"modified":"2015-04-02T10:30:37","modified_gmt":"2015-04-02T10:30:37","slug":"whats-new-in-microworkers-hg-lock-task-api","status":"publish","type":"post","link":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/","title":{"rendered":"What\u2019s New in Microworkers: HG Lock Task API"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Creating a campaign under \u201cHire Group\u201d allows you to set the maximum positions a Worker can accept and how many minutes they should complete the job.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-356\" src=\"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png\" alt=\"multiple2\" width=\"533\" height=\"245\" srcset=\"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png 533w, https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22-300x137.png 300w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>When a Worker starts working on the job, we lock one position to that Worker according to the number of minutes specified in the \u2018Create HG Campaign\u2019 page. Thus, the Worker must complete the task and submit proof before the job expires (allotted minutes run out).<\/p>\n<p>&nbsp;<\/p>\n<p>We just released a Task Lock API function you will find very useful in running your HG Campaigns with more than one \u201cMax positions a Worker can accept.\u201d<\/p>\n<p>&nbsp;<\/p>\n<p>Using the <a href=\"https:\/\/microworkers.com\/api.php?Id=37\">lock_task API<\/a> together with the <a href=\"https:\/\/microworkers.com\/api.php?Id=36\">submit_proof API<\/a>, the Worker doesn\u2019t have to come back to your campaign page to fetch more positions. If he is\u00a0allowed up to 10 positions, he\u00a0simply have to grab the first position, complete the first task, and then stay on the same page to perform the next 9 jobs allotted for him.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Here is an example.<\/p>\n<ul>\n<li>Worker opened HG Job with link to your Website, e.g. <span style=\"color: #0000ff\"><span style=\"color: #0000ff\">http:\/\/your_website.com\/task_page?worker_id=12345&amp;campaign_id=abc123456&amp;random_key=12345<\/span><\/span><\/li>\n<li>Worker did a task on your website and you submitted proof via API<\/li>\n<li>\/campaign_hg\/submit_proof returned successful response and extra_positions parameter (<a href=\"https:\/\/microworkers.com\/api.php?Id=36\">see API documentation page here<\/a>)<\/li>\n<li>If extra_positions is bigger than zero, you may show \u201cDo another task\u201d button on your website to Worker, so they don&#8217;t need to go back to Microworkers website to get a new link to the task on your website<\/li>\n<li>When worker clicked \u201cDo another task\u201d you do \/campaign_hg\/lock_task request (<a href=\"https:\/\/microworkers.com\/api.php?Id=37\">see API documentation page here<\/a>) and if it is successful, you get new random_key for that worker, e.g. 54321<\/li>\n<li>You redirect W to <span style=\"color: #0000ff\"><span style=\"color: #0000ff\">http:\/\/your_website.com\/task_page?worker_id=12345&amp;campaign_id=abc123456&amp;random_key=54321<\/span><\/span><\/li>\n<li>Worker will do second task&#8230;<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>API \/campaign_hg\/lock_task\/\u00a0 documentation page can be found here:<\/p>\n<p><a href=\"https:\/\/microworkers.com\/api.php?Id=37\">https:\/\/microworkers.com\/api.php?Id=37<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Creating a campaign under \u201cHire Group\u201d allows you to set the maximum positions a Worker can accept and how many minutes they should complete the job. &nbsp; &nbsp; When a Worker starts working on the job, we lock one position to that Worker according to the number of minutes specified in the \u2018Create HG [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[39,38,28],"class_list":["post-350","post","type-post","status-publish","format-standard","hentry","category-features","tag-microworkers","tag-multiple-positions-hg","tag-mw-hg"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What\u2019s New in Microworkers: HG Lock Task API  - MicroWorkers<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What\u2019s New in Microworkers: HG Lock Task API  - MicroWorkers\" \/>\n<meta property=\"og:description\" content=\"&nbsp; Creating a campaign under \u201cHire Group\u201d allows you to set the maximum positions a Worker can accept and how many minutes they should complete the job. &nbsp; &nbsp; When a Worker starts working on the job, we lock one position to that Worker according to the number of minutes specified in the \u2018Create HG [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/\" \/>\n<meta property=\"og:site_name\" content=\"MicroWorkers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microworkerscom\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-02T10:30:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png\" \/>\n<meta name=\"author\" content=\"Patricia\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@microworkers\" \/>\n<meta name=\"twitter:site\" content=\"@microworkers\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Patricia\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/\"},\"author\":{\"name\":\"Patricia\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#\\\/schema\\\/person\\\/0c62ccbf6f27ab104ed26abf65a9279c\"},\"headline\":\"What\u2019s New in Microworkers: HG Lock Task API\",\"datePublished\":\"2015-04-02T10:30:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/\"},\"wordCount\":352,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/multiple22.png\",\"keywords\":[\"microworkers\",\"multiple positions hg\",\"mw hg\"],\"articleSection\":[\"Features\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/\",\"url\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/\",\"name\":\"What\u2019s New in Microworkers: HG Lock Task API - MicroWorkers\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/multiple22.png\",\"datePublished\":\"2015-04-02T10:30:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/multiple22.png\",\"contentUrl\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/multiple22.png\",\"width\":533,\"height\":245},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/whats-new-in-microworkers-hg-lock-task-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.microworkers.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What\u2019s New in Microworkers: HG Lock Task API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#website\",\"url\":\"https:\\\/\\\/www.microworkers.com\\\/\",\"name\":\"MicroWorkers\",\"description\":\"The Official Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.microworkers.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#organization\",\"name\":\"Microworkers\",\"url\":\"https:\\\/\\\/www.microworkers.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/logo505.png\",\"contentUrl\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/logo505.png\",\"width\":387,\"height\":56,\"caption\":\"Microworkers\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/microworkerscom\\\/\",\"https:\\\/\\\/x.com\\\/microworkers\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.microworkers.com\\\/#\\\/schema\\\/person\\\/0c62ccbf6f27ab104ed26abf65a9279c\",\"name\":\"Patricia\",\"url\":\"https:\\\/\\\/www.microworkers.com\\\/blog\\\/author\\\/patty\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What\u2019s New in Microworkers: HG Lock Task API  - MicroWorkers","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/","og_locale":"en_US","og_type":"article","og_title":"What\u2019s New in Microworkers: HG Lock Task API  - MicroWorkers","og_description":"&nbsp; Creating a campaign under \u201cHire Group\u201d allows you to set the maximum positions a Worker can accept and how many minutes they should complete the job. &nbsp; &nbsp; When a Worker starts working on the job, we lock one position to that Worker according to the number of minutes specified in the \u2018Create HG [&hellip;]","og_url":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/","og_site_name":"MicroWorkers","article_publisher":"https:\/\/www.facebook.com\/microworkerscom\/","article_published_time":"2015-04-02T10:30:37+00:00","og_image":[{"url":"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png","type":"","width":"","height":""}],"author":"Patricia","twitter_card":"summary_large_image","twitter_creator":"@microworkers","twitter_site":"@microworkers","twitter_misc":{"Written by":"Patricia","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/#article","isPartOf":{"@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/"},"author":{"name":"Patricia","@id":"https:\/\/www.microworkers.com\/#\/schema\/person\/0c62ccbf6f27ab104ed26abf65a9279c"},"headline":"What\u2019s New in Microworkers: HG Lock Task API","datePublished":"2015-04-02T10:30:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/"},"wordCount":352,"commentCount":0,"publisher":{"@id":"https:\/\/www.microworkers.com\/#organization"},"image":{"@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png","keywords":["microworkers","multiple positions hg","mw hg"],"articleSection":["Features"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/","url":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/","name":"What\u2019s New in Microworkers: HG Lock Task API - MicroWorkers","isPartOf":{"@id":"https:\/\/www.microworkers.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/#primaryimage"},"image":{"@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png","datePublished":"2015-04-02T10:30:37+00:00","breadcrumb":{"@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/#primaryimage","url":"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png","contentUrl":"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2015\/04\/multiple22.png","width":533,"height":245},{"@type":"BreadcrumbList","@id":"https:\/\/www.microworkers.com\/blog\/whats-new-in-microworkers-hg-lock-task-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.microworkers.com\/"},{"@type":"ListItem","position":2,"name":"What\u2019s New in Microworkers: HG Lock Task API"}]},{"@type":"WebSite","@id":"https:\/\/www.microworkers.com\/#website","url":"https:\/\/www.microworkers.com\/","name":"MicroWorkers","description":"The Official Blog","publisher":{"@id":"https:\/\/www.microworkers.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microworkers.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microworkers.com\/#organization","name":"Microworkers","url":"https:\/\/www.microworkers.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microworkers.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2019\/04\/logo505.png","contentUrl":"https:\/\/www.microworkers.com\/blog\/wp-content\/uploads\/2019\/04\/logo505.png","width":387,"height":56,"caption":"Microworkers"},"image":{"@id":"https:\/\/www.microworkers.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microworkerscom\/","https:\/\/x.com\/microworkers"]},{"@type":"Person","@id":"https:\/\/www.microworkers.com\/#\/schema\/person\/0c62ccbf6f27ab104ed26abf65a9279c","name":"Patricia","url":"https:\/\/www.microworkers.com\/blog\/author\/patty\/"}]}},"_links":{"self":[{"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/posts\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":9,"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/posts\/350\/revisions"}],"predecessor-version":[{"id":362,"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/posts\/350\/revisions\/362"}],"wp:attachment":[{"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/media?parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/categories?post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microworkers.com\/blog\/wp-json\/wp\/v2\/tags?post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}