{"id":1379,"date":"2024-03-13T11:29:21","date_gmt":"2024-03-13T10:29:21","guid":{"rendered":"https:\/\/contecon.de\/picapportwiki\/?page_id=1379"},"modified":"2024-03-13T11:33:47","modified_gmt":"2024-03-13T10:33:47","slug":"runquery","status":"publish","type":"page","link":"https:\/\/contecon.de\/picapportwiki\/runquery\/","title":{"rendered":"runQuery"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1379\" class=\"elementor elementor-1379\">\n\t\t\t\t<div class=\"elementor-element elementor-element-15d56d7 e-flex e-con-boxed e-con e-parent\" data-id=\"15d56d7\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f18505b elementor-widget elementor-widget-heading\" data-id=\"f18505b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.19.0 - 07-02-2024 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h2 class=\"elementor-heading-title elementor-size-default\">runQuery<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e3a71ba elementor-widget elementor-widget-text-editor\" data-id=\"e3a71ba\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.19.0 - 07-02-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<p>Run a PicApport query inside of a WebApi-Session that has previously created with\u00a0<em>createWebApiSession<\/em>.<\/p><p>Working example URL: <a class=\"external-link\" href=\"https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/runQuery?query=animals\" rel=\"nofollow\">https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/runQuery?query=animals<\/a><\/p><h3 id=\"runQuery-APIversion\">API version<\/h3><p>1.0<\/p><h3 id=\"runQuery-Parameter\">Parameter<\/h3><div class=\"table-wrap\">\u00a0<\/div><div class=\"table-wrap\"><table class=\"confluenceTable tablesorter tablesorter-default stickyTableHeaders\" role=\"grid\"><tbody aria-live=\"polite\" aria-relevant=\"all\"><tr role=\"row\"><td class=\"confluenceTd\">apisid<\/td><td class=\"confluenceTd\">string<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">yes<\/td><td class=\"confluenceTd\"><em>\u00a0<\/em><span class=\"conf-macro output-inline\" data-hasbody=\"false\" data-macro-name=\"excerpt-include\">Based on the setting of <em><strong>webapi.default.uid<\/strong><\/em> in picapport.properties you may provide one of the following values<\/span><ul><li>Session-ID returned from <em>createWebApiSession<br \/><br \/><\/em><\/li><li>If you do not provide <em><strong>apisid<\/strong> <\/em>and configuration parameter <em><strong>webapi.default.uid<\/strong><\/em> is set to a valid userid (with same password)<br \/>a WebApi-Session will be created implicitly for the defined user.<br \/><br \/><\/li><li>If an existing userID is provided (with password set to same value as userID ) a WebApi-Session will be created implicitly<br \/>for the defined userID.<\/li><\/ul><\/td><\/tr><tr role=\"row\"><td class=\"confluenceTd\">query<\/td><td class=\"confluenceTd\" colspan=\"1\">string<\/td><td class=\"confluenceTd\" colspan=\"1\">7.4<\/td><td class=\"confluenceTd\" colspan=\"1\">yes<\/td><td class=\"confluenceTd\"><p>A valid PicApport query. see: <a class=\"external-link\" href=\"http:\/\/onlinedemo.picapport.de:8080\/picapport#help\" rel=\"nofollow\">http:\/\/onlinedemo.picapport.de:8080\/picapport#help<\/a><\/p><div class=\"confluence-information-macro confluence-information-macro-note conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"note\"><div class=\"confluence-information-macro-body\"><p>Because PicApport query may contain special characters make sure that you URL are properly encoded e.g wig the JavaScript function <em><strong>encodeURIComponent()<\/strong><\/em><\/p><\/div><\/div><\/td><\/tr><\/tbody><\/table><\/div><h3 id=\"runQuery-Result\">Result<\/h3><div class=\"table-wrap\"><table class=\"confluenceTable\"><thead><tr><th class=\"confluenceTh\">mime type<\/th><td class=\"confluenceTd\">application\/json<\/td><\/tr><\/thead><tbody><tr><th class=\"confluenceTh\">content<\/th><td class=\"confluenceTd\">Session token to identify the authorized session and an information to access the photos<\/td><\/tr><tr><th class=\"confluenceTh\" colspan=\"1\">http status codes<\/th><td class=\"confluenceTd\" colspan=\"1\"><ul><li>200 OK<\/li><li>400 Bad Request<\/li><li>403 Forbidden<\/li><li>404 Not Found<\/li><li>500 Internal Server Error<\/li><li>501 Not implemented<\/li><\/ul><\/td><\/tr><\/tbody><\/table><\/div><h3 id=\"runQuery-Result:JSON\">Result:JSON<\/h3><div class=\"table-wrap\">\u00a0<\/div><table class=\"confluenceTable tablesorter tablesorter-default stickyTableHeaders\" role=\"grid\"><tbody aria-live=\"polite\" aria-relevant=\"all\"><tr role=\"row\"><td class=\"confluenceTd\">apisid<\/td><td class=\"confluenceTd\">string<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">Session-ID returned from <em>createWebApiSession<\/em><\/td><\/tr><tr role=\"row\"><td class=\"confluenceTd\">vid<\/td><td class=\"confluenceTd\">int<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">A view id to identify the query<\/td><\/tr><tr role=\"row\"><td class=\"confluenceTd\" colspan=\"1\">count<\/td><td class=\"confluenceTd\" colspan=\"1\">int<\/td><td class=\"confluenceTd\" colspan=\"1\">7.4<\/td><td class=\"confluenceTd\" colspan=\"1\">Number of photos found for the query<\/td><\/tr><\/tbody><\/table>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-8ca20ce e-flex e-con-boxed e-con e-parent\" data-id=\"8ca20ce\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>runQuery Run a PicApport query inside of a WebApi-Session that has previously created with\u00a0createWebApiSession. Working example URL: https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/runQuery?query=animals API version 1.0 Parameter \u00a0 apisid string 7.4 yes \u00a0Based on the setting of webapi.default.uid in picapport.properties you may provide one of the following values Session-ID returned from createWebApiSession If you do not provide apisid and configuration [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1379","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/comments?post=1379"}],"version-history":[{"count":4,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1379\/revisions"}],"predecessor-version":[{"id":1384,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1379\/revisions\/1384"}],"wp:attachment":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/media?parent=1379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}