Skip to main content

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 NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringInput 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 NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringInput 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 NameData TypeDescription
inputStringInput 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"