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
// @ts-nocheck | |
var TOAL_COUNT_SHEET_NEME = "視聴回数" | |
var EACH_DAY_COUNT_SHEET_NEME = "日ごとの視聴回数" | |
var HEADER_ROW = 1 | |
var VIDEO_NAME_COLUMN = 1 | |
var VIDEO_ID_COLUMN = 2 | |
var SLACK_URL = "https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXXX" | |
var CHANNEL_NAME = "#test" | |
function updateSheets(){ |
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(shiny) | |
shinyServer(function(input, output) { | |
output$distPlot <- renderPlot({ | |
x <- iris[, input$numericInputData] | |
bins <- seq(min(x), max(x), length.out = input$sliderInputData + 1) | |
hist(x, breaks = bins, col = 'darkgray', border = 'white') |
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
var token = "XXXXXXX";//Slackで生成されたTokenを貼り付ける | |
function doPost(e) { | |
if (token != e.parameter.token) { | |
return | |
} | |
var text = e.parameter.text; | |
var textForSlack = getAnalyticsData(text); | |
var res = {"response_type": "in_channel", "text": textForSlack}; |
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
var token = "XXXXXXXXXXXXXXX";//Slackで生成されたTokenを貼り付ける | |
function doPost(e) { | |
if (token != e.parameter.token) { | |
return | |
} | |
var text = e.parameter.text; | |
var textForSlack = getAdsenseData(text); | |
var res = {"response_type": "in_channel", "text": textForSlack}; |
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(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
library(ggplot2) | |
library(gridExtra) | |
library(Rmisc) | |
library(dplyr) | |
library(ReporteRs) | |
library(rJava) |
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(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
library(ggplot2) | |
library(gridExtra) | |
library(Rmisc) | |
options(shiny.port = 1221) | |
options(googleAuthR.webapp.client_id = "") |
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(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
library(ggplot2) | |
library(gridExtra) | |
library(Rmisc) | |
navbarPage("疑似query explorer", | |
tabPanel("Google アカウント連携", tabName = "setup", icon = icon("cogs"), |
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(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
navbarPage("疑似query explorer", | |
tabPanel("Google アカウント連携", tabName = "setup", icon = icon("cogs"), | |
h1("Setup"), | |
googleAuthUI("Google_login"), | |
authDropdownUI("viewId_select") |
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(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
library(ggplot2) | |
options(shiny.port = 1221) | |
options(googleAuthR.webapp.client_id = "先程作成したクライアントIDをコピペ") | |
options(googleAuthR.webapp.client_secret = "先程作成したクライアントシークレットをコピペ") | |
options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/analytics.readonly")) |
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
## インストールがまだの場合は下記のコメントを外してそれぞれインストール | |
#install.packages("rvest", dependencies=T) | |
#install.packages("dplyr", dependencies=T) | |
#install.packages("jsonlite", dependencies=T) | |
#install.packages("stringr", dependencies=T) | |
#install.packages("magrittr", dependencies=T) | |
# ライブラリの読み込み | |
library(rvest) | |
library(dplyr) |
NewerOlder