URL & Web
removeTrailingSlash
You can use this service to remove a slash at the end of a URL. For example, You have a String named str with value "https://salesforce.com/". The API will return the string value "https://salesforce.com".
URL:
https://api.rightwave.net/rdn/api/ss/removeTrailingSlash?input={Marketo token for input}
Headers:
| Key Name | Value | Description |
|---|---|---|
| auth-key | 5wt-be28f07942848582b5915443 | Use for authentication |
| Content-Type | application/json | Header for Content-Type |
Query Parameters:
| Parameter Name | Data Type | Description |
|---|---|---|
| input | String | Input for removeTrailingSlash |
Output:
{
"success": true,
"input": {
"input": "https://salesforce.com/"
},
"result": {
"output": "https://salesforce.com"
},
"requestId": "2166696378049770"
}
Example:
curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/removeTrailingSlash?input=https://salesforce.com/"
removeWWW
You can use this service to remove www. from a URL. For example, You have a String named str with value "https://www.google.com". The API will return the string value "google.com".
URL:
https://api.rightwave.net/rdn/api/ss/removeWWW?input={Marketo token for input}
Headers:
| Key Name | Value | Description |
|---|---|---|
| auth-key | 5wt-be28f07942848582b5915443 | Use for authentication |
| Content-Type | application/json | Header for Content-Type |
Query Parameters:
| Parameter Name | Data Type | Description |
|---|---|---|
| input | String | Input for removeWWW |
Output:
{
"success": true,
"input": {
"input": "https://www.rightwave.com"
},
"result": {
"output": "rightwave.com"
},
"requestId": "21666964215757967"
}
Example:
curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/removeWWW?input=https://www.rightwave.com"
removeProtocol
You can use this service to remove the protocol from a URL. For example, You have a String named str with value "https://www.rightwave.com". The API will return the string value "www.rightwave.com".
URL:
https://api.rightwave.net/rdn/api/ss/removeProtocol?input={Marketo token for input}
Query Parameters:
| Parameter Name | Data Type | Description |
|---|---|---|
| input | String | Input for removeProtocol |
Output:
{
"success": true,
"input": {
"input": "https://www.rightwave.com"
},
"result": {
"output": "www.rightwave.com"
},
"requestId": "21667198680119735"
}
Example:
curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/removeProtocol?input=https://www.rightwave.com"
Was this page helpful?