Skip to content

Go script to export all chats in LiveChat (livechatinc.com) API to AWS S3

License

Notifications You must be signed in to change notification settings

mmiranda/livechat-to-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

livechat-to-s3

Go script to export all chats in LiveChat API (https://developers.livechatinc.com/docs/rest-api/#archives) to AWS S3

Before Running

export LIVECHAT_API_KEY=<<PASTE HERE YOUR LIVECHAT API KEY>> LIVECHAT_LOGIN=<<PASTE HERE YOUR LIVECHAT LOGIN>> AWS_PROFILE=<<PASTE HERE YOUR PROFILE (~/.aws/credentials)>>

Running

./export date_from date_to

ex: ./export 2014-01-01 2018-11-01

Result

This script will save a local copy of the files and save them on aws as well.

./files/originals/CHAT_ID.json --> The raw json given by API
./files/transcript/[email protected]/2018-10-29 1533.txt --> The transcription of an specific chat categorized by your customer's email

About

Go script to export all chats in LiveChat (livechatinc.com) API to AWS S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages