I've a Rails app and now I'm building a phonegap app for mobiles.
My idea is create an API in my Rails app and the mobile app will be able read the json responses of my api controllers like in the #350 RailsCast tutorial:
http://railscasts.com/episodes/350-rest-api-versioning
In the Rails app, I've users, and they can register and login with Devise gem. For securing my API I read the #352 RailsCast tutorial:
http://railscasts.com/episodes/352-securing-an-api?view=asciicast
My question is if is possible securing my API somehow with Devise, because I want my users will be able register or login through phonegap app and if they log in the app successfully, they will be able read the json responses.
Someone knows tutorials about this?
Is better using also Oauth2 or only with Devise gem is possible?
thanks.
Here is a tutorioal of Google calendar with nice Omniauth 2.0 issues
http://blog.baugues.com/google-calendar-api-oauth2-and-ruby-on-rails
Related
I have a blogging application in Ruby on Rails.
I want to publish all the blogs which are published on my rails application to my facebook page automatically from background jobs.
I explore the Facebook Graph Api Feed Api and do some hit and try but didn't get any success.
So could anyone please suggest that how I achieve that.
Thanks in advance.
Well, definitely the gem you are looking for is Koala
It is a lightweight, flexible library for Facebook with support for OAuth authentication, the Graph and REST APIs, realtime updates. It also allows you to post on your page.
It also allows you to post pictures and videos on Facebook
Here is a complete documentation for this gem
Has anyone successfully implemented authentication on an Ionic application that uses a Rails application with Devise as a backend? If so, what implementation did you use to that end? Please Provide me a Good Tutorial.
we've just written a tutorial covering exactly this( Rails and Ionic - Authentication with Devise ). It also comes with github example repos you can download and try out.
I want to integrate QBO and QBD in my rails 3.2 application that I am developing. Please help me how to integrate QBO and QBD API in my web application. I have tried http://developer.intuit.com and created application there. I have a consumer key and consumer secret also. Now i want to integrate these key to my web application how to do this? Any nice resources or gem...please help me!
Please refer:
https://developer.intuit.com/docs/0025_quickbooksapi/0010_getting_started
There are sample apps also available for .net and java. You can refer them for implementing the same logic in your application.
You can download sample apps from the GITHUB-
https://github.com/IntuitDeveloperRelations/IPP_Sample_Code
Set your keys in web.config and debug it for more information.
Steps to be followed:
1)Get the opened information for the user using SignIn with Intuit.
2) Then implement Connect to QuickBooks on your home page and redirect to your call back url. Create oauth session and redirect to OAUTH grant url.
3) On the OAUTh grant url page, call AUthorize url - https://workplace.intuit.com/Connect/Begin
4) You will then have the realm id and open id info. The Blue Dot menu will then load.
I published a two-part tutorial on getting started with QuickBooks integration inside of a Rails app using the Quickeeboks gem.
Update: I just added some more tutorials and screencasts demonstrating integrating a Rails app with the new version 3 QuickBooks API. The previously mentioned tutorial covers the version 2 API.
I am using quickeebook gem for quickbook integration. It supports lots of features but Quickbook::Online::Job model is not supported in quickeebook gem. Thats why I am searching for some alternatives.
For learning about quickeebook gem, follow : https://github.com/ruckus/quickeebooks
really nice place to integrate quickbook in rails 3 application
I'm trying to add Google Apps authentication to my Rails (3) app using Devise (1.2.1). Thing is, I can't find anything that helpful on the interwebs other than the small mention in the devise wiki.
Question is, is this possible, and are there any examples out there I can check out?
Devise is to make your web application authenticate users. If you wanт users to login into your app with Google ID then look into OpenID. If you want to connect to Google services you need to implement Oauth client
I am exploring facebook integration with my rails app and wondering what is the best practice for rails applications.
1 - Is js sdk the better route or the facebooker gem? I would like to allow users to login via facebook, post content/links to their walls, see friend activity in the application, invite fb friends, from the rails app etc.
2 - Can either of these methods be tested locally or do I need a hosted internet app?
3 - I already do fb authentication for login using janrain/rpx-now via authlogic-rpx plugin. Will this have any conflict with the facebooker gem or the fb js sdk. And..in order to use the fb pluging/js sdk/facebooker etc, is it required to do the authentication via those methods or can I authenticate via rpx/janrain but access feeds/friend activity etc from the facebooker gem/js sdk etc?
Thanks
1) I often use both. I find most of the work to be easier using the server side SDK, but we do occasionally use the js one as well. I would check out Facebooker2, it's much more simple than the original Facebooker
2) Both can be used locally, but you do need internet connectivity to talk to Facebook.
3) If you get a valid access token, you can use Facebooker with the RPX stuff. You would need to change the way you do the client setup.