Skip to content

Commit 07ce0a6

Browse files
committed
Compatible to matomo 3.0
1 parent 3655a14 commit 07ce0a6

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/Matomo.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,26 @@ public function getBulkRequest($methods = [], $optional = [])
817817
return $this->_request('API.getBulkRequest', $urls, $optional);
818818
}
819819

820+
/**
821+
* Get a list of available widgets.
822+
*
823+
* @return array
824+
*/
825+
public function getWidgetMetadata()
826+
{
827+
return $this->_request('API.getWidgetMetadata');
828+
}
829+
830+
/**
831+
* Get a list of all available pages that exist including the widgets they include.
832+
*
833+
* @return array
834+
*/
835+
public function getReportPagesMetadata()
836+
{
837+
return $this->_request('API.getReportPagesMetadata');
838+
}
839+
820840
/**
821841
* Get suggested values for segments
822842
*
@@ -3679,6 +3699,16 @@ public function getSitesIdFromSiteUrl($url, $optional = [])
36793699
], $optional);
36803700
}
36813701

3702+
/**
3703+
* Get a list of all available settings for a specific site.
3704+
*
3705+
* @return array
3706+
*/
3707+
public function getSitesIdFromSiteUrl()
3708+
{
3709+
return $this->_request('SitesManager.getSiteSettings');
3710+
}
3711+
36823712
/**
36833713
* Add a website.
36843714
* Requires Super User access.

0 commit comments

Comments
 (0)