Git Product home page Git Product logo

routinehubdocs's Introduction

RoutineHubDocs - API

Root URL: https://routinehub.co/api/v1/

All API endpoints are based on the root url.

Note: This documentation is for v1 of the API. The new v2 has not been released yet.

Table of Content

Shortcut ID

The <shortcut_id> is a numeric ID assigned to the shortcut on the site when a new shortcut is created.

To find this ID after creating the shortcut on RoutineHub, tap/click on the address bar and view the numeric ID value.

Example: https://routinehub.co/shortcut/7388/version/create
RoutineHub Shortcut ID: 7388


API Key

Key Generation

Where <api_key> is needed, the user has to generate the key. This can be done from the RoutineHub settings page.

Revoke Key

It is not currently possible to revoke a key, but if you generate a new key, the old key will become invalid

Storage

It is Preferred that this be stored locally to the user's system and not on your servers anywhere.


GET Endpoints

List User Shortcuts

GET 'api/v1/<api_key>/shortcuts'

Simply retrieves a list of the user's shortcuts with their IDs and whether it's published or not.

Get Latest Shortcut Version Info

GET 'api/v1/shortcuts/<shortcut_id>/versions/latest'

Gets the latest version of a shortcut. No api key needed.


POST Endpoints

Create Shortcut version

POST 'api/v1/<api_key>/shortcuts/<shortcut_id>/versions/create'

Creates a new version for a shortcut.

Parameters:
'version' : The version number 'link' : Link to the shortcut on iCloud 'changes' : List of changes for this version

Publish Shortcut

POST 'api/v1/<api_key>/shortcuts/<shortcut_id>/publish'

Changes the publish status of a shortcut to True.

Unpublish Shortcut

POST 'api/v1/<api_key>/shortcuts/<shortcut_id>/unpublish'

Changes the publish status of a shortcut to False.

routinehubdocs's People

Contributors

mvan231 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.