将长网址缩短为短网址

# 接口路径

/v1/short-url/create,如:https://alpha-engage.gridsumdissector.com/open-api/v1/short-url/create

# 请求参数

Name Type Description
profileId String

租户id

userId String

用户id

data Object

业务参数

data.url String

url

如:

{
  "profileId": "",
  "userId": "",
  "data": {
    "url": "http:/original-url.com/path"
  }
}

# 响应参数

Name Type Description
errorCode Number

错误码(0表示成功)

errorMessage String

错误信息

traceId String

追踪id

data Object

业务参数

data.shortUrl String

短网址

data.originalUrl String

原始网址

如:

{
  "errorCode": 0,
  "errorMessage": "",
  "data": {
    "shortUrl": "https://short/hwUwdL",
    "originalUrl": "http:/original-url.com/path"
  }
}