Skip to content
Extraits de code Groupes Projets
Valider e75e4d8d rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Fixes #3136 will be used in the upcoming SDK

git-svn-id: http://dev.piwik.org/svn/trunk@6319 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent a4bf838d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -507,3 +507,13 @@ PluginsInstalled[] = Installation ...@@ -507,3 +507,13 @@ PluginsInstalled[] = Installation
Plugins_Tracker[] = Provider Plugins_Tracker[] = Provider
Plugins_Tracker[] = Goals Plugins_Tracker[] = Goals
Plugins_Tracker[] = DoNotTrack Plugins_Tracker[] = DoNotTrack
[APISettings]
; Any key/value pair can be added in this section, they will be available via the REST call
; index.php?module=API&method=API.getSettings
; This can be used to expose values from Piwik, to control for example a Mobile app tracking
SDK_batch_size = 10
SDK_interval_value = 30
; NOTE: do not directly in this file! See notice at the top
\ No newline at end of file
...@@ -104,6 +104,15 @@ class Piwik_API_API ...@@ -104,6 +104,15 @@ class Piwik_API_API
return Piwik_Version::VERSION; return Piwik_Version::VERSION;
} }
/**
* Returns the section [APISettings] if defined in config.ini.php
* @return array
*/
public function getSettings()
{
return Piwik_Config::getInstance()->APISettings;
}
/** /**
* Derive the unit name from a column name * Derive the unit name from a column name
* @param $column * @param $column
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter