Comments (14)
I do have a local branch to do this. I'm a bit busy this week, but I'll try to get that up and integrated soon!
from legato.
Awesome, thanks!
from legato.
Can you check out this branch: https://github.com/tpitale/legato/tree/oauth-1-support It allows you to use oauth with an API key, and hang onto that token forever without having to refresh it. This was how I did single user support in my own stuff.
Check out the Rakefile for a way to get a new token.
I'm not sure if this is entirely what you're looking for, and it certainly needs better integration, tests, and documentation. But it might get you started.
from legato.
I was able to get an oauth verification code using your code from Rakefile. Do I use that to create a Legato::User?
from legato.
I think I figured it out. After manually retrieving the Token/Secret, I just create an access token in with those saved values:
def access_token
OAuth::AccessToken.new(consumer, token, secret)
end
@user = Legato::User.new(access_token, api_key)
Thanks for your help.
from legato.
Filtering on this branch must not match the docs right? Does this use the previous method of filtering from Garb?
from legato.
Nvm, just saw that oauth-1-support is up-to-date with master. I'll keep messing with it.
from legato.
Got this working. Thanks!
from legato.
Trying to get this working too....do you have any tips? I can only get it working if I continue to re-authorize my account and get a current token. I just want to use the api key. How can I do this? thanks!
from legato.
I'm trying to set up this type of access too, any tips?
from legato.
As far as I'm aware, Google has disabled access via oauth 1. OAuth 2 is the only thing available. You can, however, get a service account: https://github.com/tpitale/legato/wiki/OAuth2-and-Google#service-accounts
from legato.
FYI: Service accounts only work for Google Apps accounts. Since we were using a regular @gmail.com
google account, we went with an "Installed Application". And to streamline the process, we wrote this poorly named gem (google-oauth2-installed). I hope it helps someone :)
from legato.
Cool, if you open an issue I'll add it to the wiki so people can find it. Thanks!
On Mar 18, 2014, at 2:08 PM, Amiel Martin [email protected] wrote:
FYI: Service accounts only work for Google Apps accounts. Since we were using a regular @gmail.com google account, we went with an "Installed Application". And to streamline the process, we wrote this poorly named gem (google-oauth2-installed). I hope it helps someone :)
—
Reply to this email directly or view it on GitHub.
from legato.
@tpitale Will do, thanks!
from legato.
Related Issues (20)
- OAuth2::Error for `#web_property` on mobile app data profile HOT 4
- Adding quotaUser parameter to management API calls ? HOT 7
- Refactor management finder to use user request HOT 1
- Legato query will not load new collection when options changes
- Apply realtime tracking scope to filters HOT 9
- Allow `realtime` to be called anywhere in the query chain
- pull more then 1000 profiles HOT 1
- problem with event conversion rates HOT 1
- Adding metrics to Legato::Model HOT 3
- Provide directions for JSON format credentials HOT 3
- Programatically get a token HOT 1
- Http Request count for GA API HOT 1
- Getting sessions for a specific day HOT 4
- Accessing GA segments HOT 2
- Method to return grouped results? HOT 2
- Wrong escape when using gte condition on dimensions HOT 9
- Trying to upgrade from Garb. How do I update "Google Analytics Access"?
- Is this gem still being maintained? HOT 5
- API V4 Support HOT 17
- Access Search Console Data? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from legato.