Hi i want to retrieve the list of all users of domain cloudspokestest.appspot.com.so i created a class.
public class Hello {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
AppsForYourDomainClient client=new AppsForYourDomainClient("riteshmeh...@gmail.com","password","cloudspokestest.appspot.com");
client.retrieveAllUsers();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
but i am getting the following error can anyonne please help how to get rid of this error.
1 Jul, 2012 9:06:33 AM sample.appsforyourdomain.AppsForYourDomainClient retrieveAllUsers INFO: Retrieving all users. com.google.gdata.util.ServiceForbiddenException: Invalid domain. Invalid domain.
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:605)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:564)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)
at com.google.gdata.client.Service.getFeed(Service.java:1135)
at com.google.gdata.client.Service.getFeed(Service.java:998)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:645)
at com.google.gdata.client.Service.getFeed(Service.java:1017)
at com.google.gdata.client.appsforyourdomain.AppsForYourDomainService.getFeed(AppsForYourDomainService.java:137)
at sample.appsforyourdomain.AppsForYourDomainClient.retrieveAllUsers(AppsForYourDomainClient.java:499)
at Hello.main(Hello.java:21)
i am using provisioning api.so i have to enable them may be because of this i am getting this error i read https://developers.google.com/google-apps/provisioning/ but in this document they tell How to enable them in google apps not in google app engine.
To enable the Provisioning API for a Next generation control panel
Log in to your admin account and select Domain settings. Select the User settings tab. Select the checkbox enabling the Provisioning API, and save your changes.
when i login there is my applicaion cloudsppokestest when i click on this there is one application setting option but no domain setting option.please help how to remove this error and riteshmeh...@gmail.com is the administrator.