Encode URL request service Deprecated, please use /v1/links, create your API key in the H2O Platform
Body
Required
-
enter a campaign name
Default value is
smart bear. -
Client id from the h2o service customer
Default value is
28Eyd2p2ofdVapXLDXNnzjTL2vC2. -
enter a custom domain
Default value is
h2o.ac. -
enter some metada json
Default value is
{}. -
enter a secondary link id
Default value is
0928374. -
URL to be encoded
Default value is
https://ecx-labs.com.
POST
/shortener/encode
curl \
-X POST https://api.h2olinks.com/shortener/encode \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: multipart/form-data" \
-F "campaign_name=smart bear" \
-F "client_id=28Eyd2p2ofdVapXLDXNnzjTL2vC2" \
-F "custom_domain=h2o.ac" \
-F "metadata={}" \
-F "sec_id=0928374" \
-F "url=https://ecx-labs.com"
Response examples (200)
{
"error": "string",
"result": "string"
}
Response examples (400)
{
"error": "string",
"result": "string"
}