List
GET https://ga-services-zvqgeah36q-uc.a.run.app/ga/accounts/summaries/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
ga-02
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
Authorization*
String
ya29.a0Aa4xrXOxdvIydkYSWJzPl_zcyGi0C2Fwlqf13ZsGI7dr4TF7F2lML3CDEgwC7YCQ2Ebswj1WZALSUjHaFR1NfhW6mLglSwPFcX0jPndxUPNJiEruM0ikYDTgbxG_fK2gwfXH9XWFeqh0GIJ7OaCtVgu5o-D3L3Ov8MboeXDRjDoDukoaCgYKATASARMSFQEjDvL9AZgOYpou4PU0xoBbaq9bPQ0182
{
"kind": "analytics#accountSummaries",
"username": "sschouse@gmail.com",
"totalResults": 1,
"startIndex": 1,
"itemsPerPage": 1000,
"items": [
{
"id": "6712930",
"kind": "analytics#accountSummary",
"name": "sschouse@gmail.com",
"webProperties": [
{
"kind": "analytics#webPropertySummary",
"id": "UA-6712930-1",
"name": "http://sschouse.site50.net/",
"internalWebPropertyId": "12923520",
"level": "STANDARD",
"websiteUrl": "http://sschouse.site50.net/",
"profiles": [
{
"kind": "analytics#profileSummary",
"id": "13573529",
"name": "sschouse.site50.net/",
"type": "WEB"
}
]
}
]
}
]
}curl --location --request GET 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/accounts/summaries?name=ft-4&connection_name=ga-02' \
--header 'x-api-key: U2Fsd...' \
--header 'Authorization: ya29.a0Aa4xrXOxdvIydkYSWJzPl_zcyGi0C2Fwlqf13ZsGI7dr4TF7F2lML3CDEgwC7YCQ2Ebswj1WZALSUjHaFR1NfhW6mLglSwPFcX0jPndxUPNJiEruM0ikYDTgbxG_fK2gwfXH9XWFeqh0GIJ7OaCtVgu5o-D3L3Ov8MboeXDRjDoDukoaCgYKATASARMSFQEjDvL9AZgOYpou4PU0xoBbaq9bPQ0182'var axios = require('axios');
var config = {
method: 'get',
url: 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/accounts/summaries?name=ft-4&connection_name=ga-02',
headers: {
'x-api-key': 'U2Fsd...',
'Authorization': 'ya29.a0Aa4xrXOxdvIydkYSWJzPl_zcyGi0C2Fwlqf13ZsGI7dr4TF7F2lML3CDEgwC7YCQ2Ebswj1WZALSUjHaFR1NfhW6mLglSwPFcX0jPndxUPNJiEruM0ikYDTgbxG_fK2gwfXH9XWFeqh0GIJ7OaCtVgu5o-D3L3Ov8MboeXDRjDoDukoaCgYKATASARMSFQEjDvL9AZgOYpou4PU0xoBbaq9bPQ0182'
}
};
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/accounts/summaries?name=ft-4&connection_name=ga-02',
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.a0Aa4xrXOxdvIydkYSWJzPl_zcyGi0C2Fwlqf13ZsGI7dr4TF7F2lML3CDEgwC7YCQ2Ebswj1WZALSUjHaFR1NfhW6mLglSwPFcX0jPndxUPNJiEruM0ikYDTgbxG_fK2gwfXH9XWFeqh0GIJ7OaCtVgu5o-D3L3Ov8MboeXDRjDoDukoaCgYKATASARMSFQEjDvL9AZgOYpou4PU0xoBbaq9bPQ0182'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated