Removing URLs
Definition
This api endpoint is used for removal of shortened url from BulkGate Portal.
API URL
URL used to send HTTP requests:
https://portal.bulkgate.com/api/1.0/shortener/remove
POST /api/1.0/shortener/remove HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
Cache-Control: no-cache
API has
20
request per minute limit.
Parameters table
PARAMETER NAME | VALUE | MANDATORY | DEFAULT VALUE |
---|---|---|---|
application_id | Application ID | Yes | - |
application_token | Application token | Yes | - |
short_url | Shortened url to be removed | Yes | - |
Example of full request:
POST /api/1.0/shortener/remove HTTP/1.1
Host: portal.bulkgate.com
Content-Type: application/json
Cache-Control: no-cache
{
"application_id": "APPLICATION_ID",
"application_token": "APPLICATION_TOKEN",
"short_url": "http://u1.pm/W/1",
}
Response to this command may be:
In case of success:
{
"data": {
"short_url": "http://u1.pm/W"
}
}
In case of error:
{
"type": "url_not_found",
"code": 400,
"error": "Url not found",
"detail": null
}
{
"type": "url_type_is_incorrect",
"code": 400,
"error": "Url type is incorrect",
"detail": null
}
{
"type": "the_per_minute_quota_has_been_exceeded",
"code": 400,
"error": "The per minute quota has been exceeded",
"detail": null
}