I'm looking for a worked example of how to call into Googles oAuth service with a view to simply uploading a txt file. On googles docs I have the followed the example
http://code.google.com/p/google-api-java-client/wiki/OAuth2
but it won't compile .... CalendarScopes.CALENDAR is the problem and I can't see what Jar contains this class. I imported every Jar in the google-oauth-java-client-1.12.0-beta download (Also every jar in google-api-java-client-1.12.0-beta ) I dobn't understand the diff between these but that is for another day.
Any pointers would be welcome.
CalendarScopes.CALENDAR that you mentioned is not a part of a jar file but a scope for Calendar API provided by Google. For a sample to show how to implement that, here is one.
In the meanwhile, I would also suggest going over the following links to develop an understanding of the OAuth and how to use it with the different APIs.
OAuth Playground - This is very helpful when trying to learn about different API and permissions relating to those.
OpenID Connect Official Documentation
Hope this helps.
Related
I am trying to integrate Google Tag Manager into an Electron app,
but it doesn't seem to be working. it seems like gtm codes I planted in the app are NOT sending the analytics data anywhere.
I found this issue on Electron github repo. Seems like some people are having the same issue.
I wonder if it's impossible at all to integrate GTM on Electron, or is there any way around to do this?
[Update]
While reading Alexander Leithner's answer, a further question popped up.
on Google Tag Manager - Dev Guide - Security, it says:
While most of the tag templates in Google Tag Manager are also
protocol relative, it's important to make sure that, when setting up
custom tags to fire on secure pages, those tags are also either
protocol relative or secure.
Does file:// protocol matters because GTM is protocol relative? Wouldn't it be possible to bypass this with GA's forceSSL=true option which can be set on GTM Interface?
[Final Update]
I found the perfect answer in this blog post:
Run Google Tag Manager And Google Analytics In Local Files.
Thank you Eike Pierstorff, for giving me the hint of setting storage to none, it led me to this post.
GTM by default used to use the same protocol as the webpage - that's what "protocol relative" means. I.e. there is a bit of code that loads the GTM library, and if this uses the file protocol (as per the embedded wegpage) it will try to load the library as a file, which does not work. However GTM has switched from protocol relative to https by default, so I don't think GTM is your problem here.
You mention Analytics data, and if this refers to Google Analytics then your problem is not with GTM, it is that GA does not work on local files. Google Analytics uses a cookie to store the clientId (which is needed to aggregate individual hits into sessions/users), and since you cannot set cookies on a local file this does not work.
A possible workaround would be to go to your GA tag in GTM, to the "set fields" settings, set "storage" to "none" (which means that no cookie is set) and pass in a clientId manually.
As this comment by Samuel Attard (MarshallOfSound), who is an Electron developer, states that Google Tag Manager does not work when the including webpage is loaded using a file:// URL.
If you'd instead load your application via http:// (or more preferably via https://), you would be able to use Google Tag Manager.
I need to help. I'm doing a project about Twitter, but I don't know how to build it by using Retrofit. I really need some documents or an available one to make a reference.
Thank you!!!
This is an example in a complete tutorial for retrofit, I suggest you read the whole tutorial before you start working on the Twitter example, good luck:
http://www.vogella.com/tutorials/Retrofit/article.html#exercise-using-retrofit-with-oauth-to-request-user-details-from-twitter-in-android
I was searching google a lot these days but I couldn't found proper solution.
In my ASP.NET MVC application I want to use external log in so that the users can log via their google accounts. At first at localhost in AuthConfig.cs file I used:
OAuthWebSecurity.RegisterGoogleClient();
Then when moving on the server I got the error:
So I found a lot of links leading to creating a project on this link and I created one, but I still can not figure out where and how to add the credentials. In my AuthConfig.cs file I have this structure so far:
public static void RegisterAuth()
{
//OAuthWebSecurity.RegisterGoogleClient();
}
and I can not use the format that starts with (I found this i a few places):
app.UseGoogleAuthentication(
clientId: "000-000.apps.googleusercontent.com",
clientSecret: "00000000000");
because that app is not part of my file at all. Can anyone give me a direction how I should continue?
The new OWIN/ASP.NET Identity looks good. I also tried the walk through that DSR mentioned, it is pretty easy.
You can take a look at:
http://www.asp.net/identity
Which has a link to the good walk through about OAuth mentioned in the comments, but also this one, about adding Identity to an existing project:
http://www.asp.net/identity/overview/getting-started/adding-aspnet-identity-to-an-empty-or-existing-web-forms-project
I need rally api to get data for Release Burnup, to display chart in iOS. I tried rally rest api, but i'm having a trouble to figure out how it works. Can anyone help me? Here is the link for https://rally1.rallydev.com/slm/doc/webservice/ where you can get more info.
See Developer Portal here for links to API toolkits and for javascript AppSDK2. There is no toolkit specific for iOS. A built-in ReleaseBurnup served by a first generation analytics service can be displayed via AppSDK2rc3 StandardReport component. This is the same report that used to be available in AppSDK1, so for the supported config parameters see this page.
End up using look back apis, worked for me.
I have created a website that downloads videos from Youtube. But now I want this as a firefox plugin.
I searched in google since last 2 days but hard luck to find the things. So please help me to convert my website code to firefox plugin.
Thanks
Take a look to Add-on SDK. Here the documentation, and you can also download it from Github.
I would say that the Getting Started section of Add-on SDK docs is a good place to start your reading.
You can also join the IRC channel #jetpack on irc.mozilla.org and ask help directly to the SDK team, if you have any doubt!