{"id":21259,"date":"2022-04-11T13:56:06","date_gmt":"2022-04-11T11:56:06","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/objects\/obwebresponse\/"},"modified":"2026-05-13T09:36:47","modified_gmt":"2026-05-13T07:36:47","slug":"obwebresponse","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/objects\/obwebresponse\/","title":{"rendered":"OBWebResponse"},"content":{"rendered":"\n<p>The OBWebResponse type is a return type for all Web Services calls that is used to process responses from Web Services calls.<\/p>\n\n<h1 class=\"wp-block-heading\" id=\"OBWebResponse-Structure\">Structure<\/h1>\n\n<ul class=\"wp-block-list\">\n<li><strong>StringResponse<\/strong>: The body of the response in string format<\/li>\n\n\n\n<li><strong>Response<\/strong>: The response object of the WebService\n<ul class=\"wp-block-list\">\n<li><strong>StatusCode<\/strong> : The http status code of the response<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>isOK<\/strong>(): A method that verifies that the response has http code 200. Returns a Boolean<\/li>\n<\/ul>\n\n<h1 class=\"wp-block-heading\" id=\"OBWebResponse-Exemple\">Example<\/h1>\n\n<pre class=\"wp-block-code\"><code>{  \n   \tStringResponse: \"OK\",\n   \tResponse: {\n\t\tStatusCode: 200\n\t},\n\tfunction isOK(){} \/\/ true \/ false\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The OBWebResponse type is a return type for all Web Services calls that is used to process responses from Web Services calls. Structure Example<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21242,"menu_order":9,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21259","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=21259"}],"version-history":[{"count":1,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21259\/revisions"}],"predecessor-version":[{"id":21261,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21259\/revisions\/21261"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21242"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}