Nosy Pinocchio Manners

    @emartech/me-sdk-bridge

    1.7.0 • Public • Published

    Me-Sdk-Bridge-Js npm version

    This script provides a JS interface that can be injected into an In App Message's html to make communication with the Mobile Engage SDK easier. The following methods are available on the global MEIAM object.

    How to integrate

    Include the uglified version (index.min.js) in the html.

    Methods provided by the bridge

    MEIAM.buttonClicked(<buttonId>, <callback>)

    MEIAM.close(<callback>)

    MEIAM.makeNetworkRequest(<url>, <method>, <headers>, <payload>, <callback>)

    MEIAM.openExternalLink(<url>, <callback>)

    MEIAM.requestPushPermission(<callback>)

    MEIAM.triggerAppEvent(<name>, <payload>, <callback>)

    MEIAM.triggerMEEvent(<name>, <payload>, <callback>)

    MEIAM.gotoStep(<name>, <callback>)

    Custom Attributes provided by the bridge

    me-button-clicked="<buttonId>"

    me-close=""

    me-make-network-request='{"url": "<url>", "method": "<method>", "headers": <headers>, "payload": <payload>}'

    href="<url>"

    me-request-push-permission=""

    me-trigger-app-event='{"type": "<name>", "payload": <payload>}'

    me-trigger-event='{"type": "<name>", "payload": <payload>}'

    me-goto-step="<name>"

    Setting Up the Service

    npm install
    

    Running the tests

    npm t
    

    Run the test page

    Install http-server first

    npm i http-server -g
    

    Start http-server in the lib's directory, for options see the documentation

    http-server [options]
    

    You can access the test page on http://localhost:8080/test.html

    Default Commit Message Format

    This module ships with the AngularJS Commit Message Conventions and changelog generator, but you can define your own style.

    Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject and a JIRA ticket id:

    <type>(<scope>): <subject>
    <BLANK LINE>
    <body> - <JIRA ticket id>
    <BLANK LINE>
    <footer>
    

    Full explanation


    Copyright EMARSYS 2017 All rights reserved.

    Keywords

    none

    Install

    npm i @emartech/me-sdk-bridge

    DownloadsWeekly Downloads

    16

    Version

    1.7.0

    License

    UNLICENSED

    Unpacked Size

    36.9 kB

    Total Files

    25

    Last publish

    Collaborators

    • criley
    • drewhodsonsap
    • jviesersap
    • sixstep
    • sap-jjf
    • sapfs
    • attilamuller01
    • azorahai3904
    • prasadpomaji
    • scotthetrick
    • oliverweisenburger
    • elhamfarhangian
    • jonathan7s
    • maurogreco
    • mathiasknura
    • nicolaeciumac
    • asciortino1
    • pendicg24
    • erikpetroemar
    • marton.matusek
    • adamszabolcs
    • btalos
    • bence.uto
    • daniels1404
    • saphendricksjoerg
    • mmartin2
    • fenyopeti
    • markjarvis
    • mmothersill
    • brandon-sap
    • jfillmore
    • pjohnson02
    • dschuppa
    • laszlo.ori
    • mhunyady
    • andras.sarro
    • faridtoubal
    • mengjiao.zhao
    • ushnpm
    • bencekadaremar
    • dkorpos
    • xin.he
    • viau
    • zsomborh
    • muddam
    • nvkaur2
    • jbleclerc
    • roxanams
    • b-laczko
    • jahwjgxvfuxdesha
    • apoon
    • mhermann36
    • sevket-ataseven
    • jamescocker
    • arnaud.buchholz
    • jerryrichardson
    • davidpal
    • retfalvibence
    • varszegik
    • burci
    • cztamas
    • akapa
    • mkls
    • probalazs
    • kaaj
    • knagy
    • pecc
    • kszalontai
    • rehreth
    • mhegedus
    • mmartin
    • nikolett.tar
    • bsoos
    • emarsys-deployer
    • draven
    • npospischek-emartech
    • judge
    • daniel.banky
    • szeist
    • rgargya
    • lillavirag
    • marton.papp.emarsys
    • dgyenes
    • s.viktor
    • m4w4q7
    • david.barkoczi
    • dkocsis-emarsys
    • blacksonic
    • qw3r
    • tamas.toth
    • gergaczd
    • csimon
    • pintera
    • adambrunner
    • dmorvai
    • gerike
    • ins
    • alkra
    • epgrubmair
    • suliatis
    • morban
    • ettancos
    • epmartini
    • ejgyurisan
    • gabor.balla.emarsys
    • hozeee
    • mzsombor
    • ejpersson
    • ejwalker
    • czeildi
    • llosonczy
    • iben12
    • kartonfarkas
    • adamoa
    • mbarna
    • kpatrik
    • peva
    • bforgacs
    • kozma
    • serdelyi
    • ngabor84
    • zerosuxx
    • madorjan
    • edosrecki
    • eadaniel
    • selator
    • kkimak
    • daniel.balazs
    • szb
    • gaborb
    • bencso
    • glendvai
    • lveraszto
    • stoto
    • xipascu
    • rimo86
    • atittel
    • sfariel
    • rdoczi
    • mfawal
    • fentosi
    • boristomic
    • mbazso
    • dmihalek
    • lhammerl
    • sigee
    • lhalasz
    • evspasevski
    • eslesnjakovic
    • dsztanko
    • tbugar
    • dharanikesav
    • tillmannr
    • fqqdk
    • eggarcia
    • bcsizmadia
    • ems-zoltan-kohalmy
    • minktom
    • menyhertfatyol
    • bvitalyos
    • zoltanrideg-emarsys
    • sarakoll
    • mmolnar-emar
    • bozsadam
    • cseby92
    • attila.gal
    • akoshegel
    • danielbodis
    • zbalazs
    • ziyadg
    • benjamingehl
    • tdorkaa
    • lkonya
    • tcsontos
    • gpap_ema
    • vimtaai
    • ahorvath1991
    • emarsys-security
    • lloki-emarsys
    • bdorogi
    • e.david
    • borzi
    • viktor.szell
    • pmaksa_emarsys
    • znemes
    • dfarago
    • skorsik