Coder Social home page Coder Social logo

c2s-api's Introduction

c2s-api

node wrapper around cloud2sign REST-ful APIs

All the methods have a single object parameter, used as a way to improve readability and have optional parameters.

All methods return a Promise/A+ but accept an optional Node-style callback(err, data) parameter.

All methods accept a user parameter used to specify the user the request is made on the behalf of (to be used if and only if the authentication user is root).

login

Login to the service.

Arguments

  • username: the name of the Cloud2Sign user
  • password: the password associated to username

Returns

Full session data, with token to identify the session, and user data with companies info and permissions.

logout

Logout from the service.

Arguments

  • token: the token associated with the session

Returns

logoutSuccessful flag.

listWorkflows

Retrieves the workflows list for a given company.

Arguments

  • token: the token associated with the session
  • cid: company id
  • dateMin: the starting date for searching Workflow (mandatory), in "milliseconds since Unix Epoch" format
  • dateMax: the ending date for searching Workflow, in "milliseconds since Unix Epoch" format
  • meta: optional metadata for searching

Returns

Workflows list.

downloadWorkflow

Retrieves a Buffer with the content of a workflow.

Arguments

  • token: the token associated with the session
  • wfid: the workflow id to be downloaded

Returns

Full workflow data (in zip format)

c2s-api's People

Contributors

rdeserti avatar lapo-luchini avatar

Stargazers

Aaron Gray avatar

Watchers

 avatar James Cloos avatar Giovanni Frustaci 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.