Integration of Google Calendar into MVC - asp.net-mvc

I don't normally ask for help on stack overflow, but when I do, it's usually after pulling out my hair for at least a few days!
That said, I'm having a heck of a time integrating Google Calendar in my MVC app. I need to be able to ask my users for their authorization and then do stuff with their calendar such as create events. I wouldn't say I'm having trouble getting the authorization from the user necessarily, but rather once I have it, how to go about using the refresh token. Or maybe I'm just not understanding the work flow.
Anyhow, Google's documentation on this is dismal at best. Searching for answers has been fruitless. The best solution I was able to find and actually make work is from here: nanovazquez/google-calendar-sample. Unfortunately that example is using a really early build and a lot had changed since.
So my question is this: does anyone know of, or have any working examples of an MVC project that uses the latest (or a more recent version) of the Google Calendar v3 api?
THANKS!

It seems that there's not going to be a lot of help in this area. I finally managed to figure things out for myself from what ever materials I was able to find. I suggest to start by creating a mock-up project to test things out. Once you have that working, you can port what you have over to an existing project. Be advised though, if it doesn't work there you'll probably end up doing a bit of sleuthing to chase down the problem that's not necessarily related to Google's API.

Related

Delphi OAuth authentication

I made an application that works with the twitter API to generate tweets.
Now I want to expand my application but to do the things I want in my application I have to authenticate with the twitter API.
The best example I found was here
But I can't seem to figure out how I can authenticate.
Is there anyone that has experience with this or if there is a good reliable OAuth class for delphi?
I dont consider the class in the example from the link as reliable since this post is from 2009. If you can prove me wrong, please do :)
Any help is much appreciated.
Thanks in advance.
I have made that same search myself a few months ago and come up empty handed. A similar question recently arose on the ADUG mailing list, and again to no avail.
I don't believe that there is a publicly available Delphi library for OAuth and/or Open Id. IMHO, this is an open source project ripe for development by some-one with the time and motivation.

I cant get to authenticate using Soundcloud account

Im programming an app that has to be able to allow the users to sign up using their soundcloud accounts, so far I haven't found any usefull tutorial using Omniauth, Can anyone help me giving some tips to start with?
I gave a presentation to my local meetup about integrating OmniAuth into your application using a demo application here. You can fork it and go through the steps in section 3 of the README. There are also some slides you can look at here.
There's a lot of refactoring that needs to still be done, but it was designed to be a basic intro start to a bunch of people who had never used OmniAuth before.
I also list resources that helped with putting together the presentation. I highly recommend checking them out.
Although the examples are not with the omniauth-soundcloud, it should work similarly.

Rails and Facebook - can I do this?

I am considering implementing a Facebook-integration to my web app. I want to be able to import friends names, their ages and their interests/likes.
A. First off, is this possible? Can I access this information?
This import will, more or less, be a one-time import.
I also want to be able to use Facebook-login and to use it parallell to my "normal" login (auth) functionality. I assume this should be quite straightforward since most websites have it this way (e.g. Fiverr.com).
B. These two things being my basic needs of my Facebook-integration, which gem would you recommend me to use?
C. I am 1 1/2 years into RoR and consider myself decent at Rails-programming but hardly know any JavaScript and very little jQuery. Will this integration be very difficult for me, you think?
Receommendations of useful blog posts etc will also be appreciated!
A. Check facebook doc on permissions. I'd say you can get a user friends list (id and names), but nothing more : the friends would have to allow your app in order for you to retrieve their data. I've stumbled upon this issue a few weeks ago, but we were retrieving albums and pictures. The data you want is less sensitive, so maybe you can do it anyway. Bottom line : check.
B. I'd suggest using devise for managing everything related to authentication. It is a well known gem, used by many and more. You can add support for facebook via omniauth; there's a wiki page on devise about how to achieve this.
C. Once you get your grasp around the OAuth concepts, you'll be good. You can use facebook connect without javascript/jQuery. Some features though, as the "like button", will require to use the js SDK. Besides these ones, you can do pretty much everything server-side. For more advanced queries, the koala gem can do that.
Hope this is enough for you.

Buy vs Build - Internal Analytics for a Web App Behind a Paywall

I am looking to track analytics for our web app. User accounts sit behind a paywall. Some basic questions I want to answer are time on site, most used sections of the app, where they are running in to problems...click tracking would be nice.
Is there a product out there that can track this data for my application? It is built on Ruby on Rails.
Searched G, Stackoverflow, looked everywhere for a good solution. Would love to hear some insight. Thanks!
We use Piwik, it's in PHP and simple to setup. If PHP is an option for you, it's the way to go.

Where to get help with Action Script 3 - User groups, etc?

I am developing in rails and have some programming background.
I'm looking for help with Action Script 3, but most of my googling turns up "copy-paste" style answers from designers who don't understand code, and the solutions rarely work.
Where do I go to find Action Script programmers, rather than designers?
To give you an idea of what I'm trying to solve, here's where I'm currently stuck:
Get the flash file to communicate with rails trying with json, I'm not seeing any requests to the rails server, and I can't tell where the block is. I'm not sure if I'm encountering security issues with the browser trying to stop communication, or if I'm missing something somewhere.
Get the flash file to redirect the browserI assume this is difficult because it's a security issue, so what's the solution? put javascript on the page, call the flash from javascript, get flash to communicate with javascript and then get javascript to get the browser to redirect?
I think overall it would be good to get some tools that helped debug the communications, requests in and out of flash. I can use wireshark, but I think what I need is something that can tell what flash is trying to get the browser to do, and how the browser is responding.
I think SO is a good place to get prompt and useful help / guidance. So, I'd ask here.
Other than that, I've been participating in these 2 groups for some time.
http://tech.groups.yahoo.com/group/Flash_tiger/
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
You'll find some nice and knowledgeable folks over there. Though I'm under the impression that lately these lists are not as active as they used to be a couple of years ago (but maybe that's just me comparing them to SO, which is a very different beast, with a different dynamic).
I mainly use stackowerflow nowadays, but here's two other forums (or a forum and a mailing list):
http://www.actionscript.org/forums/
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I like to use
livedocs.adobe.com
(this includes the adobe documentation online as well as tie-ins to forums),
gotoandlearn.com
(this is a great website for purely Flash AS2/AS3 problems),
and here... stackoverflow.com
I also do a lot of google searches, but I seem to come back to these three quite a bit more than the others.

Resources