GithubHelp home page GithubHelp logo

isabella232 / purecloud-embeddable-framework-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mypurecloud/purecloud-embeddable-framework-example

0.0 0.0 0.0 276 KB

This project contains example code that demonstrates how to use PureCloud Embeddable Framework.

License: MIT License

JavaScript 54.49% CSS 4.15% HTML 41.37%

purecloud-embeddable-framework-example's Introduction

PureCloud Embeddable Framework Example

This repository contains a basic setup for a PureCloud Embeddable Framework example page that you can use to explore the PureCloud Embeddable Framework APIs in real-time.

PureCloud Embeddable Framework example page

Table of Contents

Getting Started

TL;DR

  1. Clone the repository.
  2. Run npm install.
  3. Edit the example.html and framework.js files.
  4. Run a local server.
  5. Open the example.html file in your browser.

You can now interact with the PureCloud Embeddable Framework APIs in real-time.

Prerequisites

  • Git installed on your computer.
  • Node.js (with npm) installed on your computer.
  • PureCloud credentials.
  • A PureCloud OAuth client with the Token Implicit Grant (Browser) grant type selected.
    For more information, see Create an OAuth client (Resource Center).

Installation

  1. Clone the repository.
  2. Run npm install in a command-line application.

Configuration

  1. Edit the example.html file. This file is included in the cloned repository.
    Note: If your PureCloud organization is located in North America (mypurecloud.com), you do not need to update the example.html file.
    a. Open the file in a text editor.
    b. Update the iframe URL to point to the correct region for your PureCloud organization.
    For more information about the iframe URL, see iframe URLs (Developer Center). For a list of regions, see Change the region of your PureCloud organization (Resource Center).
    c. Save your changes.
  2. Edit the framework.js file. This file is included in the cloned repository.
    a. Open the file in a text editor.
    b. Under clientIds, add Client ID to the region where your PureCloud organization is located. Client ID is found in the OAuth client that you created in PureCloud.
    For more information about clientIds, see clientIds (Developer Center). For more information about the OAuth client, see Prerequisites.
    c. Save your changes.

Usage

  1. Run a local server.
    • Windows
      a. Run Command Prompt as an administrator.
      b. Type cd {name of your PureCloud Embeddable Framework project}.
      c. Type node server.js.
    • macOS
      a. Open a Terminal window.
      b. Type cd {name of your PureCloud Embeddable Framework project}.
      c. Type sudo node server.js.
  2. In your browser, go to https://localhost/example.html.
  3. Log in to the client.

You can now interact with the example page and explore the PureCloud Embeddable Framework APIs in real-time. For example, to see how click-to-dial works, click the click-to-dial link on the example page.

Additional Information

This content is licensed under the MIT license.

For more information about PureCloud Embeddable Framework, see PureCloud Embeddable Framework overview (Developer Center) and About PureCloud Embeddable Framework (Resource Center).

purecloud-embeddable-framework-example's People

Contributors

inindevevangelists avatar junji-genesys avatar princenebulon 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.