开发者

Integration between ASP.NET & Google Apps

I am do开发者_开发知识库ing a research on integrating a CMS (DotNetNuke, Sitefinity, ... etc ...) or even any other ASP.NET application with Google Apps or Engine.

For instance, I would like the user to login on my Website, automatically to get logged in with Google. Another example, to allow the user to collaborate on a Document from inside the ASP.NET Website, maybe a link to it or so would suffice.

The major point is having the ASP.NET the core or base that utilizes Google apps from inside!

Any thoughts would be appreciated.

Thank you & regards


You can find a lot of information regarding this issue exploring Google API for developers and some wrappers to it on Codeplex. There is also exist .NET Client Library provided by Google.

For instance, to request a Calendar feed using the C# client library, for a user with email address "jo@gmail.com" and password "mypassword", use the following code:

// Create a query and service object:

FeedQuery query = new FeedQuery();
Service service = new Service("cl", "exampleCo-exampleApp-1"));
// Set your credentials:
service.setUserCredentials("jo@gmail.com", "mypassword");

// Create the query object:
query.Uri = new Uri("http://www.google.com/calendar/feeds/jo@gmail.com/private/full");

// Tell the service to query:
AtomFeed calFeed = service.Query(query);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜