Google apps and OAuth - c#

I am having an ASP.NET application that is integrating Google apps market place and there I am creating sub domain on that means my project is Scheduleonce so any one can access the scheduleonce from Google apps market place directly. So is it possible to access the market Place using OAuth process and currently we are on Google API version 2, and we are planning to move to version 3. So OAuth is supportable for Google Apps marketplace.

I guess below links may help you to achieve your goal :-
http://blog.startq.com/index.php/2013/03/28/prevent-multiple-tabs-on-c-web-applications/
http://www.c-sharpcorner.com/forums/thread/201221/C-Sharp-how-restrict-the-user-from-opening-a-link-in-new-tab.aspx
http://code.msdn.microsoft.com/CSASPNETPreventMultipleWind-b1dd2bd6

Related

Accesing LinkedIn API V2 from .NET C#

I am building an application that should work with LinkedIn API V2 to make a data provider that will go through authorization process with OAuth2.0 and that will exchange the code with access token in order to make API calls towards LinkedIn in order to access the specific data from the user.
Does anyone know if there is any up-to-date library for easier implementation of LinkedIn API V2 in order to use it within my .NET Application, it is made with WPF (Windows Presentation Forms)
Basically what I am looking for is something similar to Facebook and Instagram Graph-API, I hope there is or there will be something for LinkedIn, let me know if you have some info!
Thank you!

Console Application to retrieve Domain Shared Contacts (Google Apps Admin SDK)

I need to write a console application to retrieve domain shared contacts (eventually update, add or delete them, too).
What I found so far is "Google Domain Shared Contacts API" should do just that, but I am a bit clueless as where to start.
I don't know how to access this API in .NET and I haven't found any examples of such a code.
As far as I can see in the documentation, Domain Shared Contacts API is not currently included in the list of Supported Google APIs for .NET .
You may, however, check in Release Notes for the Google API Client Library for .NET for announcement or updates regarding this API.
If the time comes that Domain Shared Contacts API becomes supported, you may use the following references to get started:
Easily access Google APIs from .NET
GitHub post - google-api-dotnet-client
GitHub post - google-api-dotnet-client-samples
I managed to come up with an application that sends http requests to the API, however their documentation is terrible as it lacks complete description of how exactly the requests should look like and I had to experiment a bit.

Can I move a Google API implementation to a web-service?

I have an in-house CMS system written in ASP.NET C#, and I need to implement a few pages that can allow the user to access and alter their Google Analytics management settings using the Google Analytics management API.
I have added the Google.Apis.Analytics.v3 library from NuGet, and I managed to make it work using OAuth2 authentication.
However, the library installs several dependencies, and some of them are upgrading some of my existing DLL files. This is not good, because I have a lot of functionality in this solution and some other solutions that are based on these old DLLs.
Would it be possible to move all the Google API implementation into an external web-service and just call this from my CMS? That way, I would not have to upgrade the CMS's old references. The only problem that I've run into with this is that I have no idea how to use OAuth2 to allow the CMS user to use his own Google account since all this is now done in the web-service, and the authentication page from google will not open in the user's browser.
I don't think a web service will work. The user needs to be prompted for authentication with the web browser. You cant really do that from a web service and return the proper authentication.
The Google .net client lib uses the newest DLLs you may want to look into upgrading yours.

Integrating all the social sites using asp.net

I am developing a website using ASP.Net and I want to integrate Social Network that gives the user to share a page to their Facebook, twitter,Google plus, linked in and other accounts
These sites will use OAuth, which you will need to integrate into your site.
For example, you could create a Facebook Application using the developers section on Facebook and then use the c# Facebook API from your ASP.Net application to authenticate with the application and post content to the users timeline. I implemented something like this recently, it's pretty simple to do.
You won't have a 'universal set of credentials' for all of the social media that you have mentioned, so you would need to manage and perform OAuth for each of the different Media, e.g. As well as post to Facebook, create a tweet for the user as well.
It's certainly possible, there are Social Marketing applications that do something like this, you just need to manage the access to the OAuth partners.
Just remember, never store credentials that the user has entered in your site. They are not managed by your site so you should never attempt to store them or do anything with them, always delegate to the 3rd party site and receive your access token back. That's all your application should be interested in
Have a read up on how OAuth works. Also, visit each sites developer documentation to see how their specific implementation of OAuth works. There are c# client applications for accessing the sites (c# facebook api, c# twitter api etc etc)

How do I embed ads in .NET Compact Framework application?

I'm writing a C# .NET Compact Framework application and would like to embed ads into it (e.g. small banner on top of every screen). However, I couldn't find any advertising SDKs. Aren't there really any?
If implementing it from scratch, how would you do it? Google's Ad Sense for example only works with mobile websites (that can be reached by Google's bot).
Most mobile ad networks are focused on iPhone apps, but the only one I could see that supports Windows Mobile is SOMA by a company called Smaato.
Amobee has a advertisement SDK that can return a banner of predefined size to an application.
They offer a JAVA Api, but getting an ad from their service is as easy as accessing a URL with some query-string and downloading a image.

Categories