I am developing an html5 hybrid app which needs to access an oauth2 api.
I am looking what should be the best plugin I should use to implement this task.
Based on my research, I've found two possible plugins which are "ChildBrowser and InAppBrowser".
What plugin should I use? Currently, I'm picking up the "ChildBrowser" in which I tried to follow using the below link.
https://github.com/andreassolberg/jso/blob/master/README-Phonegap.md
It seems that the documentation is quite not updated (ex. Cordova.plist was removed and use the config.xml instead).
I've followed the instruction step by step on the above link until "Setting up your WebApp with ChildBrowser" and I get build error.
You can use Cordova's InAppBrowser and do Oauth2 login using this jQuery plugin:
https://github.com/krisrak/jquery-cordova-oauth2
There is a working example for phonegap.
Related
One of my project is using Apache Wicket 6.x and I have some API (resources) using wicketstuff-rest and it is working perfectly.
But for my API documentations, I am maintaining a google document for these APIs. Problem is that whenever there are changes in any of the API, or even on new APIs... I need to update this API documentation. Chances are, this documentation may not be updated.
On my other springboot projects, I am using swagger and the API documentation can be viewed via swagger-ui.
I wonder if I can use swagger-ui with existing apache wicket 6.x project so that whenever there are new API(s) or any change on the existing API(s)... it will reflect in swagger-ui without the need to maintain any API documentation.
What I currently search is swagger2markup, but this seems to be old and I am having problems with the setup and there are very few resources on how to set this up.
Anyone who successfully setup swagger-ui with apache wicket rest?
Care to share resource/links on tutorials or how to setup swagger-ui on apache wicket rest?
Thanks!
I don't have an easy solution for you with Swagger but if you use Spring already then you could use Spring REST Docs to generate the documentation from the unit tests.
I created a web application by using HTML, JS, JQuery, and some Jquery plugins. Now I want to integrate it into Zendesk. Can I use it like just copy all my files and paste it into zendesk zip file ? Or Do I have to re-code entire thing to make it work for ZenDesk ?
I checked the examples in online, they didn't mentioned anywhere about reusing the apps that already developed in Zendesk.
I am currently doing some fairly extensive Zendesk integration. If you are referring to customisation on the Agent Portal side then it will have to be a Zendesk App under strict Zendesk adopted frameworks jquery is included (http://developer.zendesk.com/documentation/apps/). If in the customer facing Help Center you can simply go into there on screen editor and paste your html, js, etc into the relevant sections see (https://support.zendesk.com/entries/22618341)
Good luck,
Tris
If you want to integrate your app to Zendesk as an Agent App, you might consider the chance of using within an iframe.
Note that the url to which the iframe is pointing to must be served as HTTPS. Otherwise, it won't work.
EDIT:
As of version 2.0 of ZAF (Zendesk Application Framework), it's easy to integrate any webpage. In v2.0, you aren't restricted to any technology or environment.
Is there any example out there for google plus oAuth2 for grails?
I see a plugin on github with documentation
This one seems to be 2 years old and I could not find any examples of using this plugin.
I am willing to try this. but want to know if there are any other plugins out there which are up-to-date?
I have had success using this one: http://grails.org/plugin/spring-security-oauth-google, but it requires the use of the Spring Security Oauth Plugin: http://grails.org/plugin/spring-security-oauth
I was using a wordpress plugin "Twitter for Wordpress" located in wordpress plugins directory then it seems to suddenly stopped fetching my tweets showing "No public Twitter messages".
I went to the plugin url and find that the demo showing the same error message and I tried to contact the developer for code update as this plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress with no success.
As being not familiar with PHP I am asking anyone who may assist me with code modifying so that the plugin could back to work.
First of all, can you look at plugin configurations or inside PHP code for Twitter resource URLs? Since Twitter has dropped version "0", legacy code is probably the issue.
See https://dev.twitter.com/docs/api/1.1
Else, you should look at another plugin solution. Twitter is always improving, you need a plugin that follows updates
I'm looking into using PhoneGap for an iOS app so that I can utilize the camera API. The plan is to use Rails to manage the entire experience. At this point, I'm not particularly concerned about performance. If it wasn't for the need for the camera, I would simply design it as a true web app.
Most of the answers and tutorials I have found suggest using ajax to the backend server to render the frontend. At this point in the app development, I'm not sure I want to build so much of the view in JS and would prefer to use Rails to render the views. I have seen a few very brief references to use PhoneGap as a container to literally render the Rails app. Performance aside, is this possible and how would I set up the core html file in PhoneGap to let the mobile app run normally?
I do not believe such a container exists to run on the client side but it is possible to dynamically serve a PhoneGap app (i.e. the app acts as a web browser with native functionality available via javascript commands).
Here is code which demonstrate exactly what you are describing.
Here is a screen cast I did associated with demo.
NOTE: The demo is using an out 3.2.1, and is broken as of the latest version Xcode and/or PhoneGap but it is possible, and apps of this nature are valid in the the various app stores, (Linkedin alongwith many others are already doing it.) The logic is there I just haven't had the time to fix the bug with the new version of Xcode, or update the PhoneGap code (doing the update may actually fix the bug in one quick work session).
Maybe you can also check my example app that is exported to Phoengap. It doesn't use camera but it is possible to combine native parts with Phonegap.
https://github.com/joscas/base_app/tree/devel (currently in the devel branch for the exportable version)
Life deploy: https://starter-app-staging.herokuapp.com (the desktop version)
It is based on rails / ember.js plus with token authentication (ember-auth) + OAuth (Google, LinkedIn,..) and Devise.
It uses the (phonegap-rails) gem I've created to export assets, fix paths etc.