Hello Fabien,

I am having troubles with Google Calendar and Google + API aswell. I think 
something is wrong with my proyect or my user-Id. I have enable in 
code.google.com both service but for example when I am triying to get my 
profile (I already have acces_token), I always get 403 error (usage limits 
or Access Not Configured): 

https://www.googleapis.com/plus/v1/people/me?alt=json&key=APIKEY

If I use Plus objects, I always get  404 NoT Found:

 // Set up the HTTP transport and JSON factory
            HttpTransport httpTransport = new NetHttpTransport();
            JsonFactory jsonFactory = new JacksonFactory();
            
        
        
        
//            GoogleCredential credential = new 
GoogleCredential().setAccessToken(accessToken)
            GoogleCredential credentials = new GoogleCredential.Builder()
                    .setClientSecrets(CLIENT_ID, CLIENT_SECRET)
                    
.setJsonFactory(jsonFactory).setTransport(httpTransport).build()
                    .setAccessToken(accessToken); 

            Plus plus = new Plus.Builder(new NetHttpTransport(), new 
JacksonFactory(),null)
                .setApplicationName("Simple-Google-Plus/1.0")
                .setHttpRequestInitializer(credentials)
                .build()
            
            // Make a request to access your profile and display it to 
console
            Plus.People.Get personMe = plus.people().get("me");
            Person profile= personMe.execute();
            plus.people().setUserId("me");
            System.out.println("ID: " + profile.getId());
            System.out.println("Name: " + profile.getDisplayName());
            System.out.println("Image URL: " + profile.getImage().getUrl());
            System.out.println("Profile URL: " + profile.getUrl());

I have been stuck for a while and I have no idea what else to try.

Any help will be usefull

PD: I am working with groovy

Thanks

El domingo, 28 de octubre de 2012 23:30:05 UTC+1, Fabien Castell escribió:
>
> Thanks a lot. It works.
> Fabien
>

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax-search-api@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-search-api+unsubscr...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/hDL3GP_2sqQJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to