Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
/ VHUrlShortener Public archive

VHURLShortener is a developer-first URL shortener. It's focused on helping startups, indie hackers and more quickly integrate url shorteners in their app without the huge backend.

License

Notifications You must be signed in to change notification settings

VivusHub/VHUrlShortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Url-Shortener (Under Development)

VHURLShortener

License: Vivus Hub Vivus Hub Url Shortener Swift License: Vivus Hub Android


About

VHURLShortener is a developer-first URL shortener. It's focused on quick integration, scalability and customisation. This repo has been documented to the best of our knowledge to help you get the best of our services. If you need further help please visit sh.vivushub.com or email us at support@vivuahub.com

The framework is actively being used and maintained in one of our family apps (e.g Vivus).

Documentation

Getting Started

Database Configuration

iOS

Installation

VHUrlShortener requires Swift 4.2 and iOS 11.0 or later. The best way to install VHUrlShortener is via cocoapods.

CocoaPods

To add the project via cocapods, add the following to your project's Podfile.

pod 'VHURLShortener', :git => 'https://github.com/VivusHub/VH-URL-Shortener'

Then in your terminal, navigate to your project folder and run:

pod install

Manual

To add the project manually, drag the contents of the iOS\VHUrlShortener into your Xcode Project.

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    VHUrlS.initialize("YOUR_APP_ID", supportedDomains:["yourdomain.com","yourotherdomain.com"], supportedSchemes:["yourscheme"]) { response, error in
        // response provides a response object which contains the full URL information
        // response includes a status code
        // error provides any errors in retrieving information about the URL
        // Your custom logic goes here...
    }
    return true
}
VHUrlS.shorten("http://theurlyouwishtoshorten.com") { response, error in
      // response provides a response object which contains the shortened Bitlink
      // response includes a status code
      // error provides any errors in retrieving information about the URL
      // Your custom logic goes here...
  }

Android

Installation

Using npm:

npm install react-native-tableview --save

Manual

Drag the contents of the VHUrlShortener folder into your Android Project.

Carthage

Web

The Graph API is HTTP-based, so it works with any languages that has an HTTP library such as cURL and more. An additional benefit is that you can use the Graph API library directly in your browser. Please note, you may need to validate your domain to enable url request on your website.

Creating Url

VHUrlShortener gives you a high degree of flexiblity when creating and updating your url. To create, modify or delete your url shortener you need the following arguments:

  • urlTo [String] -
curl -i -X GET \
https://www.sh.vivushub.com/api

// Response 
{
    "result": {
        "urlTo": ""
    }
}

License

Extract from Vivus Hub commercially available contents agreement:

When using our free contents you have the permission to use, reproduce, publicly perform, publicly display, modify, translate, distribute, publish in whole or in part as long as:

  • Vivus hub is referenced in such work through e.g a copy of this Vivus Hub 'Commercially Available Contents' terms or url link back to our terms and conditions.
  • In the event you collect information about users, you must make it clear you (not Vivus hub) are the ones collecting such information.

The software is provided 'As is', without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

About

VHURLShortener is a developer-first URL shortener. It's focused on helping startups, indie hackers and more quickly integrate url shorteners in their app without the huge backend.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published