Class UrlResource.GetRequest
Expands a short URL or gets creation time and analytics.
Inheritance
System.Object
UrlResource.GetRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Urlshortener.v1
Assembly: Google.Apis.Urlshortener.v1.dll
Syntax
public class GetRequest : UrlshortenerBaseServiceRequest<Url>, IClientServiceRequest<Url>, IClientServiceRequest
Constructors
GetRequest(IClientService, String)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string shortUrl)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
System.String | shortUrl |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.MethodName
Projection
Additional information to return.
Declaration
[RequestParameter("projection", RequestParameterType.Query)]
public virtual UrlResource.GetRequest.ProjectionEnum? Projection { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<UrlResource.GetRequest.ProjectionEnum> |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.RestPath
ShortUrl
The short URL, including the protocol.
Declaration
[RequestParameter("shortUrl", RequestParameterType.Query)]
public virtual string ShortUrl { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Urlshortener.v1.UrlshortenerBaseServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.InitParameters()