Lists experiments to which the user has access
GET
https://ga-services-zvqgeah36q-uc.a.run.app/ga/experiments/list/
Query Parameters
ya29.a0Aa4xrXM0TwarxXIOl5YP79Ls0mq9xuKXhAqdZ_-GhBGp6FprVAwb6n3Sll1u5ZnJaNXtNyDJL7QvZohrGS1jAvIohoBXZqCszVrsAPwqnSwXMVuuLa1DFI4FWL47z5dxvF-e9YMuy8gx5lsILG7jLKZgvyME1cXojMZi7aUUK060Y1QaCgYKATASARMSFQEjDvL9AIsi_IXQdzauIZsJekkYpw0182
{
"kind": "analytics#experiments",
"username": "sschouse@gmail.com",
"totalResults": 0,
"startIndex": 1,
"itemsPerPage": 1000,
"items": []
}
curl --location --request GET 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/experiments/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529' \
--header 'x-api-key: U2Fsd...' \
--header 'Authorization: ya29.a0Aa4xrXM0TwarxXIOl5YP79Ls0mq9xuKXhAqdZ_-GhBGp6FprVAwb6n3Sll1u5ZnJaNXtNyDJL7QvZohrGS1jAvIohoBXZqCszVrsAPwqnSwXMVuuLa1DFI4FWL47z5dxvF-e9YMuy8gx5lsILG7jLKZgvyME1cXojMZi7aUUK060Y1QaCgYKATASARMSFQEjDvL9AIsi_IXQdzauIZsJekkYpw0182'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/experiments/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529',
headers: {
'x-api-key': 'U2Fsd...',
'Authorization': 'ya29.a0Aa4xrXM0TwarxXIOl5YP79Ls0mq9xuKXhAqdZ_-GhBGp6FprVAwb6n3Sll1u5ZnJaNXtNyDJL7QvZohrGS1jAvIohoBXZqCszVrsAPwqnSwXMVuuLa1DFI4FWL47z5dxvF-e9YMuy8gx5lsILG7jLKZgvyME1cXojMZi7aUUK060Y1QaCgYKATASARMSFQEjDvL9AIsi_IXQdzauIZsJekkYpw0182'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/experiments/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: U2Fsd...',
'Authorization: ya29.a0Aa4xrXM0TwarxXIOl5YP79Ls0mq9xuKXhAqdZ_-GhBGp6FprVAwb6n3Sll1u5ZnJaNXtNyDJL7QvZohrGS1jAvIohoBXZqCszVrsAPwqnSwXMVuuLa1DFI4FWL47z5dxvF-e9YMuy8gx5lsILG7jLKZgvyME1cXojMZi7aUUK060Y1QaCgYKATASARMSFQEjDvL9AIsi_IXQdzauIZsJekkYpw0182'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;