2.8.7 • Published 3 years ago

lphistory v2.8.7

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

Live Person History CLI

Build Status

Install

npm install -g lphistory

Usage

Help

Summary

$ lphistory --help

lphistory [command]

Commands:
  lphistory search [conversationid]  Search conversation
  lphistory config [action]          Clear configuration (it is posible to specify the envionment)

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Examples:
  lphistory search [conversationid] -t      Search conversation with Live Person
  60000                                     OAuth timestamp shift
  lphistory search --help                   Description of search command
  lphistory clear-config                    Clears configuration
  lphistory clear-config --help             Description of clear-config command

Search help

$ lphistory search --help

lphistory search [conversationid]

Search conversation

Positionals:
  conversationid  Conversation id to search                             [string]

Options:
  --version          Show version number                               [boolean]
  --help             Show help                                         [boolean]
  -t, --time--shift  Time shift for Live Person OAuth timestamp
  -l, --line-length  Line length for history. Min: 80
  -e, --environment  Environment

Config help

$ lphistory config --help

lphistory config [action]

Clear configuration (it is posible to specify the envionment)

Positionals:
  action                                              [choices: "create", "clear", "list"]

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]
  -e         Environment to config

Search conversation

Default

lphistory search <conversationid>

Specifying environment

If you want to specify an environment, you can pass the -e argument. The event name is up to you. If the environment doesn't exists, it will de created.

lphistory search <conversationid> -e production

Specifying timestamp shift

If the response gives a 500 error, it is possible that the request timestamp is invalid. This is because OAuth security sends a wrong timestamp to Live Person. It can be fixed specifying a timestamp shift with the argument -t followed by the shift in milliseconds.

lphistory search <conversationid> -t 60000
2.8.3

3 years ago

2.8.2

3 years ago

2.8.4

3 years ago

2.8.7

3 years ago

2.8.6

3 years ago

2.8.0

3 years ago

2.5.1

4 years ago

2.4.2

4 years ago

2.4.1

4 years ago

2.3.2

4 years ago

2.4.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.5.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago