Git Product home page Git Product logo

app-notification-send-receive's Introduction

Demo App Notify Send/Receive Event

This repo contains two apps which you will load into your Zendesk instance.

The first app sends a notification event, along with some data, to another app.

The second app receives the event and its data and displays it.

These apps are a demonstration of the notification event/endpoint used within Zendesk apps.

Getting started

Follow these steps to get a local copy up and running.

Prerequisites

  • Zendesk Command Line (ZCLI)

Using Zendesk Command Line

Installation

1. Clone the repo

git clone https://github.com/zendesk/app-notification-send-receive.git

2. Install the apps

Create the Receive app first:

  • cd receive_notifications
  • Run zcli apps:create and enter your admin and test instance information
  • Make note of the app_id value displayed in the terminal - you'll need it later

Create the Send app:

  • cd send_notifications
  • Navigate to assets/iframe.html and edit the following values
  • In sendNotification(), enter the Receive Notification app_id that you took down earlier
  • Replace YOURSUBDOMAIN with your own subdomain associated with your Zendesk instance
  • Either enter a valid agent_id or remove agent_id (don't forget to remove the preceding comma from the JSON object if you remove agent_id)
  • zcli apps:create

Do a refresh of your Apps and click the Send app's 'send' button. You should see the current date and time show up in the Receive app's display.

Run apps locally

To test either app individually in your local environment, use the following steps.

Run Receive App

  1. Navigate to app directory
cd receive_notification
  1. Run the app
zcli apps:server

Run Send App

  1. Navigate to app directory
cd send_notification
  1. Run the app
zcli apps:server

Testing your Zendesk app locally

Additional Resources

Issues

You can create an issue on Github, reach out in our Developer Community, or report the issue in the Zendesk Developers Slack group.

app-notification-send-receive's People

Contributors

ericagirges 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.