b0VIM 9.0s/f: ޒ:rootvoxpot-prod.prg1.druit/opt/voxpot-docker/www/wp-content/themes/voxpot-theme/inc/ecomail.php 3210#"! Utph0ad|zyxV9jSRQI6/  * $ C   i D <  { s L F  t l 6 0 vn@[TyZ5-~vO*"tnmld=h@:980 ~ public function addSubscriberBulk($list_id, array $data){ */ * @return array|stdClass|string * @param array $data Data * @param string $list_id ID listu /** } return $this->put($url, $data); $url = $this->joinString('lists/', $list_id, '/update-subscriber'); public function updateSubscriber($list_id, array $data){ */ * @return array|stdClass|string * @param array $data Data * @param string $list_id ID listu /** } return $this->delete($url, $data); $url = $this->joinString('lists/', $list_id, '/unsubscribe'); public function removeSubscriber($list_id, array $data){ */ * @return array|stdClass|string * @param string $list_id ID listu /** } return $this->post($url, $data); $url = $this->joinString('lists/', $list_id, '/subscribe'); public function addSubscriber($list_id, array $data){ */ * @return array|stdClass|string * @param array $data Data * @param string $list_id ID listu /** } return $this->get($url); $url = $this->joinString('lists/', $list_id, '/subscriber/', $email); public function getSubscriber($list_id, $email){ */ * @return array|stdClass|string * @param string $email Email * @param string $list_id ID listu /** } return $this->get($url); $url = $this->joinString('lists/', $list_id, '/subscribers'); public function getSubscribers($list_id){ */ * @return array|stdClass|string * @param string $list_id ID listu /** } return $this->put($url, $data); $url = $this->joinString('lists/', $list_id); { public function updateList($list_id, array $data) */ * @return array|stdClass|string * @param array $data Data * @param string $list_id ID listu /** } return $this->get($url); $url = $this->joinString('lists/', $list_id); { public function showList($list_id) */ * @return array|stdClass|string * @param string $list_id ID listu /** } return $this->post('lists', $data); { public function addListCollection(array $data) */ * @return array|stdClass|string * @param array $data Data * Vložení nového seznamu kontaktů /** } return $this->get('lists'); { public function getListsCollection() */ * @return array|stdClass|string * Práce se seznamy kontaktů a s přihlášenými odběrateli /** // === Lists === } return $this; $this->response = $response; $this->server = $server; $this->key = $key; { public function __construct($key, $response = self::JSONArray, $server = 'http://api2.ecomailapp.cz') */ * @return Ecomail * @param string $server Server API * @param string $response Návratový typ * @param string $key Klíč API * * Konstruktor /** private $response; /** @var string $response Návratový typ */ private $server; /** @var string $server Server API */ private $key; /** @var string $key Klíč API */ PlainText = 'plaintext'; JSONArray = 'jsona', const JSONObject = 'jsono',{class Ecomail */ * @version 1.1 * @author Filip Šedivý * * PHP knihovna pro přístup k API/**response == self::JSONObject ? false : true); if (is_object(json_decode($output))) { case self::JSONObject: case self::JSONArray: switch ($this->response) { curl_close($ch); $output = curl_exec($ch); )); 'key: ' . $this->key curl_setopt($ch, CURLOPT_HTTPHEADER, array( } curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); if (is_array($data)) { } curl_setopt($ch, CURLOPT_CUSTOMREQUEST, strtoupper($method)); if(!is_null($method)){ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $urlRequest); $ch = curl_init(); $urlRequest = $this->server . '/' . $request; { private function send($request, $data = NULL, $method = NULL) */ * @return array|stdClass|string * @param null|string $method Metoda (GET, POST, DELETE, PUT) * @param null|array $data Zaslaná data * @param string $request Požadavek * * Odeslání požadavku /** } return $this->send($request, $data, 'delete'); private function delete($request, array $data = []){ */ * @return array|stdClass|string * @param string $request Požadavek * * Pomocná metoda pro DELETE /** } return $this->send($request, $data, 'put'); private function put($request, array $data = []){ */ * @return array|stdClass|string * @param null|array $data Zaslaná data * @param string $request Požadavek * * Pomocná metoda pro PUT /** } return $this->send($request, $data); { private function post($request, array $data) */ * @return array|stdClass|string * @param null|array $data Zaslaná data * @param string $request Požadavek * * Pomocná metoda pro POST /** } return $this->send($request); { private function get($request) */ * @return array|stdClass|string * @param string $request Požadavek * * Pomocná metoda pro GET /** // === cURL === } return $join; } $join .= func_get_arg($i); for($i = 0; $i < func_num_args(); $i++){ $join = ""; private function joinString(){ {"id":167,"count":6,"description":"","link":"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/","name":"Uprchlick\u00e1 krize","slug":"uprchlicka-krize","taxonomy":"post_tag","meta":[],"yoast_head":"\nUprchlick\u00e1 krize Archivy - VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem<\/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.voxpot.cz\/tema\/uprchlicka-krize\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Uprchlick\u00e1 krize Archivy - VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/\" \/>\n<meta property=\"og:site_name\" content=\"VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"CollectionPage\",\"@id\":\"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/\",\"url\":\"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/\",\"name\":\"Uprchlick\u00e1 krize Archivy - VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem\",\"isPartOf\":{\"@id\":\"https:\/\/www.voxpot.cz\/#website\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/#breadcrumb\"},\"inLanguage\":\"cs\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Dom\u016f\",\"item\":\"https:\/\/www.voxpot.cz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Uprchlick\u00e1 krize\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.voxpot.cz\/#website\",\"url\":\"https:\/\/www.voxpot.cz\/\",\"name\":\"VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem\",\"description\":\"Propojujeme \u010cesko se sv\u011btem. Tvo\u0159\u00edme informa\u010dn\u00ed servis pro n\u00e1ro\u010dn\u00e9 publikum a pro ty nejlep\u0161\u00ed informace si jdeme p\u0159\u00edmo ke zdroji.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.voxpot.cz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"cs\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Uprchlick\u00e1 krize Archivy - VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem","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.voxpot.cz\/tema\/uprchlicka-krize\/","og_locale":"cs_CZ","og_type":"article","og_title":"Uprchlick\u00e1 krize Archivy - VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem","og_url":"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/","og_site_name":"VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"CollectionPage","@id":"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/","url":"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/","name":"Uprchlick\u00e1 krize Archivy - VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem","isPartOf":{"@id":"https:\/\/www.voxpot.cz\/#website"},"breadcrumb":{"@id":"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/#breadcrumb"},"inLanguage":"cs"},{"@type":"BreadcrumbList","@id":"https:\/\/www.voxpot.cz\/tema\/uprchlicka-krize\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Dom\u016f","item":"https:\/\/www.voxpot.cz\/"},{"@type":"ListItem","position":2,"name":"Uprchlick\u00e1 krize"}]},{"@type":"WebSite","@id":"https:\/\/www.voxpot.cz\/#website","url":"https:\/\/www.voxpot.cz\/","name":"VOXPOT: report\u00e1\u017ee, kter\u00e9 spojuj\u00ed \u010cesko se sv\u011btem","description":"Propojujeme \u010cesko se sv\u011btem. Tvo\u0159\u00edme informa\u010dn\u00ed servis pro n\u00e1ro\u010dn\u00e9 publikum a pro ty nejlep\u0161\u00ed informace si jdeme p\u0159\u00edmo ke zdroji.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.voxpot.cz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"cs"}]}},"_links":{"self":[{"href":"https:\/\/www.voxpot.cz\/wp-json\/wp\/v2\/tags\/167"}],"collection":[{"href":"https:\/\/www.voxpot.cz\/wp-json\/wp\/v2\/tags"}],"about":[{"href":"https:\/\/www.voxpot.cz\/wp-json\/wp\/v2\/taxonomies\/post_tag"}],"wp:post_type":[{"href":"https:\/\/www.voxpot.cz\/wp-json\/wp\/v2\/posts?tags=167"},{"href":"https:\/\/www.voxpot.cz\/wp-json\/wp\/v2\/stories?tags=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}