garb-gem

Cannot get oAuth2 Access Token for Google Analytics API

微笑、不失礼 提交于 2019-12-06 04:18:36
问题 I am using Rails + Garb Gem (Sija Branch) + omniauth-google-oauth2 Gem and I can successfully authenticate with the Google Analytics API and extract data that our app is generating when using a user login, e.g.: Garb::Session.login('USERNAME', '<PASSWORD>') I can then use Garb to connect to the Analytics Profile I want and pull the data from it and display some charts on a webpage. This all works fine. However, I want to use oAuth2 to authenticate with Analytics which is why I had to install

Cannot get oAuth2 Access Token for Google Analytics API

偶尔善良 提交于 2019-12-04 09:46:37
I am using Rails + Garb Gem (Sija Branch) + omniauth-google-oauth2 Gem and I can successfully authenticate with the Google Analytics API and extract data that our app is generating when using a user login, e.g.: Garb::Session.login('USERNAME', '<PASSWORD>') I can then use Garb to connect to the Analytics Profile I want and pull the data from it and display some charts on a webpage. This all works fine. However, I want to use oAuth2 to authenticate with Analytics which is why I had to install the Sija branch of the Garb Gem from Github (it supports oAuth2) and I also installed the omniauth

OAuth 2.0 with Google Analytics API v3

和自甴很熟 提交于 2019-11-27 11:14:48
I used to be able to query the Google Analytics API with my account's login & password. Google is now using OAuth for authentication which is great... The only issue is that I only need ONE access token. I don't wanna allow other users to fetch THEIR analytics data. I just wanna be able to fetch MY data. Is there a way I can generate an access token only for my app or my analytics account? I know such solutions exists... For instance, Twitter provides what they call a "single-user oauth" for apps that don't require a specific user to sign in. One again, all I'm trying to accomplish here is to

OAuth 2.0 with Google Analytics API v3

倖福魔咒の 提交于 2019-11-26 22:20:08
问题 I used to be able to query the Google Analytics API with my account's login & password. Google is now using OAuth for authentication which is great... The only issue is that I only need ONE access token. I don't wanna allow other users to fetch THEIR analytics data. I just wanna be able to fetch MY data. Is there a way I can generate an access token only for my app or my analytics account? I know such solutions exists... For instance, Twitter provides what they call a "single-user oauth" for