Alexandre-

All of the google-api-client classes are open source, I would recommend that 
you download them as it helps a bunch when trying to troubleshoot this type 
of thing. In this case, if you look at line 69 of the AbstractOAuthGetToken 
class you can see that the only possibility for a null pointer exception is 
if you have a null transport. From your code above I see that you have 
commented out that line, so I'm going to assume that's why you're getting 
your exception.

If you want to be able to execute the temporary token request you're going 
to have to set a transport on the temporary token. The transport you use 
will vary depending on the environment you're in, but it can be as easy as 
just new NetHttpTransport().

Also, you may find it more helpful for posting questions pertaining to the 
Google API Java Client in its specific group: 
https://groups.google.com/group/google-api-java-client?pli=1

-Aaron

-- 
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/-/js4QO5SqAtgJ.
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.

Reply via email to