diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-03-10 01:20:48 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2016-03-10 01:20:48 +0300 |
commit | 687e459a25f49ff92c7fbb5caa70e04681d1dd8c (patch) | |
tree | aa3d709cd6d5edf124c25a82d4ab8f3caa5d3c48 /plugins/SitesManager/API.php | |
parent | dd408624eb63ce74385a94f4ab471b35e23fa21b (diff) |
added example re how to specify multiple URLs via HTTP API
fixes #9901
Diffstat (limited to 'plugins/SitesManager/API.php')
-rw-r--r-- | plugins/SitesManager/API.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/SitesManager/API.php b/plugins/SitesManager/API.php index 739af7d5e9..d6b969f9ad 100644 --- a/plugins/SitesManager/API.php +++ b/plugins/SitesManager/API.php @@ -491,6 +491,7 @@ class API extends \Piwik\Plugin\API * @param array|string $urls The URLs array must contain at least one URL called the 'main_url' ; * if several URLs are provided in the array, they will be recorded * as Alias URLs for this website. + * When calling API via HTTP specify multiple URLs via `&urls[]=http...&urls[]=http...`. * @param int $ecommerce Is Ecommerce Reporting enabled for this website? * @param null $siteSearch * @param string $searchKeywordParameters Comma separated list of search keyword parameter names @@ -767,7 +768,7 @@ class API extends \Piwik\Plugin\API * they won't be duplicated. The 'main_url' of the website won't be affected by this method. * * @param int $idSite - * @param array|string $urls + * @param array|string $urls When calling API via HTTP specify multiple URLs via `&urls[]=http...&urls[]=http...`. * @return int the number of inserted URLs */ public function addSiteAliasUrls($idSite, $urls) @@ -1077,6 +1078,7 @@ class API extends \Piwik\Plugin\API * @param int $idSite website ID defining the website to edit * @param string $siteName website name * @param string|array $urls the website URLs + * When calling API via HTTP specify multiple URLs via `&urls[]=http...&urls[]=http...`. * @param int $ecommerce Whether Ecommerce is enabled, 0 or 1 * @param null|int $siteSearch Whether site search is enabled, 0 or 1 * @param string $searchKeywordParameters Comma separated list of search keyword parameter names |