Coder Social home page Coder Social logo

vanilla-javascript-for-mono-connect's Introduction

Mono Vanilla Javascript

This is a simple HTML and vanilla Javascript implementation of the Mono Connect widget. To get started:

Step 1: Clone this repository

e.g Using HTTPS:

git clone https://github.com/withmono/Vanilla-javascript-for-mono-connect.git

Alternatively, if you use ssh:

git clone [email protected]:withmono/Vanilla-javascript-for-mono-connect.git

Step 2: Update your public key

Open the index.html file in your preferred text editor, update the config object with your public key gotten from the Mono Dashboard

// from line 27
 var config = {
    key: "YOUR_PUBLIC_KEY_HERE", // enter your public key here
    onSuccess: function (response) {
      copyToClipboard(response.code);
      console.log(JSON.stringify(response));
      alert(JSON.stringify(response));
      /**
       response : { "code": "code_xyz" }
       you can send this code back to your server to get this
       authenticated account and start making requests.
       */
    },
    onClose: function () {
      console.log('user closed the widget.')
    }
  };

And you're set!

The code gotten back after the widget authentication should be exchanged for a permanent Account ID using the Exchange token endpoint. You can then use the Account ID to request for data for the connected account.

Reference

Postman
Mono Docs

Support

If you're having general trouble with Mono Connect.js or your Mono integration, please reach out to us at [email protected] or come chat with us using Intercom on https://app.mono.co. We're proud of our level of service, and we're more than happy to help you out with your integration to Mono.

vanilla-javascript-for-mono-connect's People

Contributors

ijbkid avatar notumar 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.