public class Oauth2.Userinfo.Get extends Oauth2Request<Userinfoplus>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Oauth2.Userinfo.Get()
Get user info
Create a request for the method "userinfo.get".
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
Oauth2.Userinfo.Get |
set(String parameterName,
Object value) |
Oauth2.Userinfo.Get |
setAlt(String alt)
Data format for the response.
|
Oauth2.Userinfo.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Oauth2.Userinfo.Get |
setKey(String key)
API key.
|
Oauth2.Userinfo.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Oauth2.Userinfo.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Oauth2.Userinfo.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Oauth2.Userinfo.Get |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Oauth2.Userinfo.Get()
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Oauth2.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be
called to initialize this instance immediately after invoking the constructor.
public HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<Userinfoplus>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<Userinfoplus>
IOException
public Oauth2.Userinfo.Get setAlt(String alt)
Oauth2Request
setAlt
in class Oauth2Request<Userinfoplus>
public Oauth2.Userinfo.Get setFields(String fields)
Oauth2Request
setFields
in class Oauth2Request<Userinfoplus>
public Oauth2.Userinfo.Get setKey(String key)
Oauth2Request
setKey
in class Oauth2Request<Userinfoplus>
public Oauth2.Userinfo.Get setOauthToken(String oauthToken)
Oauth2Request
setOauthToken
in class Oauth2Request<Userinfoplus>
public Oauth2.Userinfo.Get setPrettyPrint(Boolean prettyPrint)
Oauth2Request
setPrettyPrint
in class Oauth2Request<Userinfoplus>
public Oauth2.Userinfo.Get setQuotaUser(String quotaUser)
Oauth2Request
setQuotaUser
in class Oauth2Request<Userinfoplus>
public Oauth2.Userinfo.Get setUserIp(String userIp)
Oauth2Request
setUserIp
in class Oauth2Request<Userinfoplus>
public Oauth2.Userinfo.Get set(String parameterName, Object value)
set
in class Oauth2Request<Userinfoplus>