Write a PHP script
you Need to make a PHP script that receives from Yandex.Metrics number of clicks for your keywords.
To implement using the library
Code should conform to PSR-2
There should be a method like this:
/**
* Getting the number of clicks on a given keyword
*
* @param string $siteName the site Name (similar to the counter name in the Metric)
* @param array $keywords List of keywords for which you want to obtain the number of transitions
* @return array a List of keywords indicating the number of transitions for each
*/
public function getHitsCount($siteName, $keywords)
In the future we plan to continue work on this class to retrieve other information from the Metric.
Write the approximate dates of implementation and cost.
16.03.2016 01:46