How refresh token to build Credential object

Au Lai Seong <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
How to set refresh token to build Credential object? I got refresh token 
from datastore, but how to build credential object for 
following Blogger.Builder?? Any code sample?

Builder blog = new Blogger.Builder(HTTP_TRANSPORT, JSON_FACTORY, 
credential);

I can not set refresh token due to following error.
 Credential credential =
        new 
Credential(BearerToken.authorizationHeaderAccessMethod()).setAccessToken(credential.getAccessToken()).setRefreshToken(credential.getRefreshToken());

 java.lang.IllegalArgumentException: Please use the Builder and call 
setJsonFactory, setTransport, setClientAuthentication and 
setTokenServerUrl/setTokenServerEncodedUrl

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/groups/opt_out.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.