This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("googleAuthR") | |
library("googleAnalyticsR") | |
library("jsonlite") | |
# Сюда вставить то, что в json-файле. Обязательно заменить обратный слеш \ на двойной \\ | |
json <- 'credentials from json' | |
# функция для авторизации | |
gar_auth_service <- function(json, scope = getOption("googleAuthR.scopes.selected")){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Разработано в Netpeak. | |
# Если что-то не получается, пишите Ivan Kutas https://www.facebook.com/ivankutas | |
# Подключение требуемых пакетов | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(googlesheets) | |
### 1. Получение данных из справочника проектов. | |
# 1.1. Авторизация в Google Spreadsheets и получение данных оттуда. |