Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.63 KB

URLExpanderApi.md

File metadata and controls

56 lines (38 loc) · 1.63 KB

swagger_client.URLExpanderApi

All URIs are relative to https://app.linksgpt.com/api/v1

Method HTTP request Description
url_expander POST /tools/url-expander Expand a shortened URL

url_expander

InlineResponse200 url_expander(body)

Expand a shortened URL

Takes a shortened URL and returns detailed information about the redirection process and the final destination.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.URLExpanderApi()
body = swagger_client.ToolsUrlexpanderBody() # ToolsUrlexpanderBody | JSON payload containing the URL to expand

try:
    # Expand a shortened URL
    api_response = api_instance.url_expander(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling URLExpanderApi->url_expander: %s\n" % e)

Parameters

Name Type Description Notes
body ToolsUrlexpanderBody JSON payload containing the URL to expand

Return type

InlineResponse200

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]