-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add google_webmaster collector. #1959
Conversation
func analyticsClient(clientid string, secret string, tokenstr string) (*http.Client, error) { | ||
// googleAPIClient() takes in a clientid, secret, a base64'd gob representing | ||
// the cached oauth token, and a list of oauth scopes. Generating the token is | ||
// left as an exercise to the reader. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because generating the token requires you to fire up an web endpoint, have the user open a URL, and then wait around for the user to authorize. Back when the GA collector was written, we decided that scollector should not be involved in doing that.
sorry to be more clear, I meant why not document the process? On Wed, Nov 16, 2016 at 12:36 PM, Jason Harvey notifications@github.com
|
@kylebrandt because I don't remember how to do it. I'm just reusing the token I generated last time. Could look into how that is done and document how to do it, but that's out of scope for this project. |
Fair enough - code looks good to me On Wed, Nov 16, 2016 at 12:38 PM, Jason Harvey notifications@github.com
|
No description provided.