Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paaragon/lphistory
Npm package that shows the history of a Live Person Conversation in CLI
https://github.com/paaragon/lphistory
Last synced: 27 days ago
JSON representation
Npm package that shows the history of a Live Person Conversation in CLI
- Host: GitHub
- URL: https://github.com/paaragon/lphistory
- Owner: paaragon
- Created: 2020-02-04T20:26:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T06:31:09.000Z (about 2 years ago)
- Last Synced: 2023-02-28T16:11:39.049Z (almost 2 years ago)
- Language: JavaScript
- Size: 277 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Live Person History CLI
[![Build Status](https://app.travis-ci.com/paaragon/lphistory.svg?branch=master)](https://app.travis-ci.com/paaragon/lphistory)
## Install
```
npm install -g lphistory
```## Usage
#### Help
Summary
```
$ lphistory --helplphistory [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 --helplphistory 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 --helplphistory 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
```### 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 -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 -t 60000
```