Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.81 KB

File metadata and controls

50 lines (32 loc) · 1.81 KB

ShortURLs

(ShortURLs)

Overview

REST APIs for managing short URLs

Available Operations

Create

Shorten a URL.

Example Usage

using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;

var sdk = new SDK(security: new Security() {
    APIKey = "<YOUR_API_KEY_HERE>",
});

CreateRequestBody req = new CreateRequestBody() {
    Url = "http://limp-pastry.org",
};

var res = await sdk.ShortURLs.CreateAsync(req);

// handle response

Parameters

Parameter Type Required Description
request CreateRequestBody ✔️ The request object to use for the request.

Response

CreateResponse

Errors

Error Object Status Code Content Type
SpeakeasySDK.Models.Errors.SDKException 4xx-5xx /