lphistory
This package prints in console the history records of a Live Person Conversation
Last updated a month ago by paaragon .
ISC · Original npm · Tarball · package.json
$ cnpm install lphistory -g
SYNC missed versions from official npm registry.

Live Person History CLI

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: "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

Current Tags

  • 2.5.1                                ...           latest (a month ago)

15 Versions

  • 2.5.1                                ...           a month ago
  • 2.4.2                                ...           3 months ago
  • 2.4.1                                ...           3 months ago
  • 2.4.0                                ...           3 months ago
  • 2.3.2                                ...           3 months ago
  • 2.1.2                                ...           3 months ago
  • 2.1.1                                ...           3 months ago
  • 2.1.0                                ...           4 months ago
  • 2.0.0                                ...           4 months ago
  • 1.5.1                                ...           4 months ago
  • 1.4.0                                ...           4 months ago
  • 1.3.0                                ...           4 months ago
  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 26
Dependencies (8)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |