UrlShortenerClientShorten(Uri) Method
Shortens the specified Url.
Namespace: DevCase.ThirdParty.Google.UrlShortenerAssembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public string Shorten(
Uri uri
)
Public Function Shorten (
uri As Uri
) As String
Dim instance As UrlShortenerClient
Dim uri As Uri
Dim returnValue As String
returnValue = instance.Shorten(uri)
public:
String^ Shorten(
Uri^ uri
)
member Shorten :
uri : Uri -> string
No code example is currently available or this language may not be supported.
- uri Uri
-
The source URI to shorten.
String
The resulting shortened Url.
This is a code example.
No code example is currently available or this language may not be supported.
Dim client As New UrlShortenerClient("YOUR API KEY")
Dim authSuccess As Boolean = client.Authorize()
Dim sourceUrl As String = "https://msdn.microsoft.com/"
Dim shortenedUrl As String = client.Shorten(sourceUrl)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.