Generate Token
Step 1

Step 2

GET https://ga-services-zvqgeah36q-uc.a.run.app/ga/auth/generate-token/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
ga-02
Headers
Name
Type
Description
x-api-key*
String
U2FsdGVkX1++ZZ4P1XMNg5SK1wAlLl+43SGcdaHpyt+f0fBNSVUHaKvtsRWP4Eu75QTIU5i2oAaBORnsQrRGYQ==
{
"url": "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.edit%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.manage.users%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.manage.users.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&response_type=code&client_id=329011709740-4ib94k88i826braifb2hthfiqoig6bp3.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fga-services-zvqgeah36q-uc.a.run.app%2Fga%2Fauth%2Fcallback"
}curl --location --request GET 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/auth/generate-token?name=ft-4&connection_name=ga-02' \
--header 'x-api-key: U2FsdGVkX1++ZZ4P1XMNg5SK1wAlLl+43SGcdaHpyt+f0fBNSVUHaKvtsRWP4Eu75QTIU5i2oAaBORnsQrRGYQ=='var axios = require('axios');
var config = {
method: 'get',
url: 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/auth/generate-token?name=ft-4&connection_name=ga-02',
headers: {
'x-api-key': 'U2FsdGVkX1++ZZ4P1XMNg5SK1wAlLl+43SGcdaHpyt+f0fBNSVUHaKvtsRWP4Eu75QTIU5i2oAaBORnsQrRGYQ=='
}
};
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/auth/generate-token?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: U2FsdGVkX1++ZZ4P1XMNg5SK1wAlLl+43SGcdaHpyt+f0fBNSVUHaKvtsRWP4Eu75QTIU5i2oAaBORnsQrRGYQ=='
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated