@universis/viber-connect
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@universis/viber-connect

Universis instant messaging plugin for Viber

Installation

npm i @universis/viber-connect

Usage

Register ViberConnectService in application services

# app.production.json

"services": [
    ...,
    {
        "serviceType": "@universis/viber-connect#ViberConnectService"
    }
]

Add ViberConnectSchemaLoader to schema loaders

# app.production.json

{
    "settings": {
        "schema": {
            "loaders": [
                ...,
                {
                    "loaderType": "@universis/viber-connect#ViberConnectSchemaLoader"
                }
            ]
        }
    }
}

Add viber-connect configuration:

app.production.json

{ "settings": { "universis": { "viber-connect": { "apifon": { "tokenURL": "https://ids.apifon.com/oauth2/token", "hostURL": "https://ars.apifon.com", "client_id": "<Apifon_Client_ID>", "client_secret": "<Apifon_Client_Secret>", "grant_type": "client_credentials" }, "auth": { "authorizationURL": "https://users.universis.io/authorize", "logoutURL": "https://users.universis.io/logout?continue=http://localhost:5001/services/viber/logout", "tokenURL": "https://users.universis.io/access_token", "scope": "profile", "clientID": "<Your_Universis_Client_ID>", "clientSecret": "<Your_Universis_Client_Secret>", "callbackURL": "http://localhost:5001/services/viber/callback" } } } } }

Package Sidebar

Install

npm i @universis/viber-connect

Weekly Downloads

0

Version

1.0.1

License

LGPL-3.0-or-later

Unpacked Size

183 kB

Total Files

55

Last publish

Collaborators

  • universis