ROV.ONE

Fastest way to shorts your urls also free

Use Form


API Usage

C#

        public string Convert(string url) {

            var apiRequest = new {
                FullUrl = url
            };
            var requestData = JsonConvert.SerializeObject(apiRequest);
            var uri = "http://rov.one/api/cut";

            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
            request.Method = "POST";
            request.ContentType = "application/json; charset=utf8";
            request.ContentLength = requestData.Length;

            using (Stream webStream = request.GetRequestStream()) {
                using (StreamWriter requestWriter = new StreamWriter(webStream, System.Text.Encoding.ASCII)) {
                    requestWriter.Write(requestData);
                }
            }

            var shortUrl = "";
            var webResponse = request.GetResponse();
            using (Stream webStream = webResponse.GetResponseStream()) {
                if (webStream != null) {
                    using (StreamReader responseReader = new StreamReader(webStream)) {
                        try {
                            string apiResponse = responseReader.ReadToEnd();
                            shortUrl = apiResponse;
                        }
                        catch (Exception ex) {
                            throw ex;
                        }
                    }
                }
            }
            return shortUrl;
        }
    

Java Script

        $.ajax({
            url: "http://rov.one/api/cut",
            data: JSON.stringify({ FullUrl: "yoururl.com" }),
            dataType: 'json',
            type: 'POST',
            contentType: 'application/json; charset=utf-8',
            success: function (response) {
                console.log(response.ShortUrl);
            },
        });