Class UrlResource
The "url" collection of methods.
Inheritance
System.Object
UrlResource
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 UrlResource
Constructors
UrlResource(IClientService)
Constructs a new resource.
Declaration
public UrlResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(String)
Expands a short URL or gets creation time and analytics.
Declaration
public virtual UrlResource.GetRequest Get(string shortUrl)
Parameters
Type | Name | Description |
---|---|---|
System.String | shortUrl | The short URL, including the protocol. |
Returns
Type | Description |
---|---|
UrlResource.GetRequest |
Insert(Url)
Creates a new short URL.
Declaration
public virtual UrlResource.InsertRequest Insert(Url body)
Parameters
Type | Name | Description |
---|---|---|
Url | body | The body of the request. |
Returns
Type | Description |
---|---|
UrlResource.InsertRequest |
List()
Retrieves a list of URLs shortened by a user.
Declaration
public virtual UrlResource.ListRequest List()
Returns
Type | Description |
---|---|
UrlResource.ListRequest |