Firstly, in advance for someone who reads this post.
My school (I'm a teacher / technology coordinator) uses Google Apps for education. I used the Provisioning API to communicate with our Microsoft Active Directory Server to synchronize users and groups with Google. I have a web server that runs ColdFusion 9 and PHP. I am the base for an honest ColdFusion programmer, and my PHP skills are a neophyte level.
I have a minimum of 3028 groups. I would like to update the replyTo field to say REPLY_TO_LIST (by default, when a group is created, users have a choice)
Ideally, I would like the ColdFusion server to automatically (at night) contact Google, get a list of all groups in the domain (users have the right to create groups so that this list can change daily) and ensure that the answer to the field is set correctly.
I am currently having a problem with OAuth 2.0. I read the documentation and am confused by what I need to do. I looked all over the Internet and found a lot of material that is above my head. The closest I got a great post from Ray Camden . However, when I change it for Google Groups, I get:
Error: invalid_request Required parameter missing: response_type
However, the response_type parameter is definitely present.
I am sure this is my scope, which is the beginning of my problem, and I found several different links, for example:
Here is what I still have at GoogleGroupModifier.cfm:
<cfset authurl = "https://accounts.google.com/o/oauth2/auth?" & "client_id=#urlEncodedFormat(application.clientid)#" & "&redirect_uri=#urlEncodedFormat(application.callback)#" & "&scope=https://www.googleapis.com/auth/apps.groups.settings?response_type=code"> <cfoutput> /groups/v1/groups/ authurl=#authurl# <p><a href="#authurl#">Login</a></p> </cfoutput>
And Application.cfc:
<cfcomponent> <cfset This.name = "googlegroups"> <cfset This.Sessionmanagement="True"> <cffunction name="onApplicationStart" returntype="boolean" access="public"> <cfset application.clientid = "88888.apps.googleusercontent.com"> <cfset application.clientsecret="zzzzzz_"> <cfset application.callback="http://mydomain.org/wwp/google/GoogleGroupModifier.cfm"> <cfreturn true> </cffunction> </cfcomponent>
Can anyone suggest any suggestions? I know that there is information about GITHUB, but what I tried, I also can not work.