Hello
thanks for the quick reply,
I tried to use Java components to create a group, however, the example
seams not complete because uses a variable groupsService which is not
defined the class
This is the example:
> *import sample.appsforyourdomain.AppsForYourDomainClient;*
> ...*AppsForYourDomainClient client = new AppsForYourDomainClient(email,
> password, domain);**groupsService.createGroup(String groupId, String
> groupName, String groupDescription, String emailPermission)*
>
>
So I downloaded the source code to better understand what object to use and
I found this in AppsForYourDomainClient.java
line 124
> groupService = new AppsGroupsService(adminEmail, adminPassword, domain,
> "gdata-sample-AppsForYourDomain-AppsGroupService");
Then I wrote the following code
AppsForYourDomainClient client
> =Authentication.login("[email protected]", "******",
> "kelom.freehosting.com");
> AppsGroupsService groupService = new
> AppsGroupsService("[email protected]", "********",
> "kelom.freehosting.com","gdata-sample-AppsForYourDomain-AppsGroupService");
> GenericEntry entry =groupService.createGroup("MyGr", "MyGrName",
> "MyGrDes", null);
but at runtime I have this error
com.google.gdata.util.InvalidEntryException: Bad Request [Line 1, Column
319, element apps:property] apps:property/@value is required.
at
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:594)
at
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563)
at
com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:552)
at
com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530)
at
com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535)
at com.google.gdata.client.Service.insert(Service.java:1409)
at com.google.gdata.client.GoogleService.insert(GoogleService.java:599)
at
com.google.gdata.client.appsforyourdomain.AppsForYourDomainService.insert(AppsForYourDomainService.java:100)
at
com.google.gdata.client.appsforyourdomain.AppsGroupsService.createGroup(AppsGroupsService.java:185)
at com.accenture.sdp.wrapper.google.Provisioning.main(Provisioning.java:63)
Could help me understand what's wrong?
Regards
Patrizio
--
You received this message because you are subscribed to the Google Groups
"Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-apps-mgmt-apis/-/OG7mShkZ_ZwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.