by Gordon McLean » Thu Feb 26, 2015 4:09 pm
Hi Harjo/Patrick
Firstly thank you for taking the time to develop this plugin and contributing it to the servoyforge community its much appreciated
Unfortunately I have fallen at the first hurdle with installation and think it may be down to clarification of some of the docs specifically
1) Is the application name described as the project ID by Google ? OR is it the project name top left of the console ?
2) When you create the new Client ID am I correct in thinking you select Web Application (I am using web client)
3) What should be specified as the redirect URL and Javascript origins the servoy home directory ??
What I am currently getting from the following code is a <null> from sURL and predictably a wrapped java.lang error
Cheers
Gordon
function testCalendar() {
var applicationName = 'MyProjectName';
var clientID = 'ClientID_4mi.apps.googleusercontent.com';
var clientSecret = 'BigSecret_yZJkgyA-Yx';
var sURL = plugins.Google2.setupApplication(applicationName,clientID,clientSecret);
plugins.Google2.getAuthorizationUrl(sURL)
}
Gordon McLean
Clickdigital.com