Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MX Connect Demo

This repository is a helpful reference for how to interact with the MX Connect Widget. It should help answer questions like:

  • What events does the widget send to my app?
  • How can I react to events that happen in the widget?
  • What changes if I need to use a webview in a mobile app?
  • How can I close the widget?

Getting Started

Obtain your API credentials

  1. Sign up at https://dashboard.mx.com and log in.
  2. Obtain your Api Key and your Client ID from your dashboard
  3. Copy .env.sample in the root directory to a new file named .env and fill in the values

Set up a Client

  1. In the terminal navigate to ./clients/web
  2. Run npm install

Set up a Server

  1. In the terminal navigate to ./servers/nodejs
  2. Run npm install
  3. Start the server using npm start

Open a Client

Start the node server before opening a client, otherwise the client will not be able to load the widget.

The web Client

Mobile Client

  • There is an iOS app in the ./clients/ios directory. You can open the Xcode project and run it on a simulator or device.

About

A repo that holds clients/servers to demonstrate how to implement the Connect Widget successfully.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages