{"id":152,"date":"2013-11-26T12:46:18","date_gmt":"2013-11-26T12:46:18","guid":{"rendered":"http:\/\/wservice.solerpalau.com\/?page_id=152"},"modified":"2013-11-26T14:26:56","modified_gmt":"2013-11-26T14:26:56","slug":"getting-started-with-the-sdk-for-php","status":"publish","type":"page","link":"https:\/\/wservice.solerpalau.com\/en\/getting-started\/getting-started-with-the-sdk-for-php\/","title":{"rendered":"Getting started with the SDK for PHP"},"content":{"rendered":"<h3 id=\"cliente-php\">Cliente Php<\/h3>\n<p>The SDK for PHP provides a rich set of server-side functionality for accessing S&#038;P&#8217;s server-side API calls.<\/p>\n<p><button onclick=\"window.open('\/SP_API\/samples\/sp-connector.txt');\">Download PHP SDK<\/button><\/p>\n<h4>Install<\/h4>\n<p>For proper operation we include the file <strong>sp-connector.php <\/strong> to load the functionalities.<\/p>\n<pre><code>\u00a0&lt;?php require_once('sp-conector.php'); ?&gt;<\/code><\/pre>\n<p>And create a new connection.<\/p>\n<pre><code>\u00a0&lt;?php $sp = new sp_connector(); ?&gt;<\/code><\/pre>\n<p>The required calls to load the content provided by S&#038;P.<\/p>\n<pre><code>&lt;div class=\"wrapper\"&gt;\r\n&lt;?php echo $sp-&gt;showHeader(); # mostrara la cabecera ?&gt;\r\n\r\n&lt;?php echo $sp-&gt;showSlider(); # mostrara el slider ?&gt;\r\n\r\n&lt;?php echo $sp-&gt;showFooter(); # mostrara el footer ?&gt;\r\n&lt;\/div&gt;\r\n<\/code><\/pre>\n<h5>Params<\/h5>\n<p><strong>accountID<\/strong><br \/>\n(string) (necesario) The user ID provided by S&#038;P<\/p>\n<p><strong>isoLanguage<\/strong><br \/>\n(string) Language in ISO 639-1.<\/p>\n<p><strong>isoCountry<\/strong><br \/>\n(string) The country in ISO 639-1 to load a separate content for a country.<\/p>\n<p><strong>menuItems<\/strong><br \/>\n(array) <strong>title<\/strong>: Title link. <strong>url<\/strong> Link relative to baseURL.<\/p>\n<pre><code>\r\n$sp = new sp_connector();\r\n$sp-&gt;accountID = 'easyvent';\r\n$sp-&gt;isoLanguage = $lang;\r\n$sp-&gt;isoCountry = $country;\r\n$sp-&gt;menuItems = array(\r\narray('title' =&gt; 'Inicio', url =&gt; ''),\r\narray('title' =&gt; 'Cat\u00e1logo', url =&gt; '\/catalogue'),\r\narray('title' =&gt; 'Seletores', url =&gt; '\/selector'),\r\narray('title' =&gt; 'Projeto', url =&gt; '\/project'),\r\narray('title' =&gt; 'Contato', url =&gt; '\/contact'),\r\n);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Cliente Php The SDK for PHP provides a rich set of server-side functionality for accessing S&#038;P&#8217;s server-side API calls. Download PHP SDK Install For proper operation we include the file sp-connector.php to load the functionalities. \u00a0&lt;?php require_once(&#8216;sp-conector.php&#8217;); ?&gt; And create a new connection. \u00a0&lt;?php $sp = new sp_connector(); ?&gt; The required calls to load the &hellip; <a href=\"https:\/\/wservice.solerpalau.com\/en\/getting-started\/getting-started-with-the-sdk-for-php\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Getting started with the SDK for PHP<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":150,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/pages\/152"}],"collection":[{"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/comments?post=152"}],"version-history":[{"count":7,"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/pages\/152\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/pages\/152\/revisions\/190"}],"up":[{"embeddable":true,"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/pages\/150"}],"wp:attachment":[{"href":"https:\/\/wservice.solerpalau.com\/en\/wp-json\/wp\/v2\/media?parent=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}