Title: | Load Data from 'Ringostat API' |
---|---|
Description: | Loading calls data from 'Ringostat API'. See <https://help.ringostat.com/knowledge-base/article/integration-with-ringostat-via-api>. |
Authors: | Alexey Seleznev [aut, cre] , Netpeak [cph] |
Maintainer: | Alexey Seleznev <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.5 |
Built: | 2024-10-11 06:00:59 UTC |
Source: | https://github.com/selesnow/ringostat |
Loading calls data from 'Ringostat API'. See https://help.ringostat.com/knowledge-base/article/integration-with-ringostat-via-api.
Maintainer: Alexey Seleznev [email protected] (ORCID)
Other contributors:
Netpeak [copyright holder]
Set Ringostat API key
rs_auth(api_key)
rs_auth(api_key)
api_key |
Your API key |
No return value, called for side effects
Download call recording
rs_download_record(call_id, out_file = NULL)
rs_download_record(call_id, out_file = NULL)
call_id |
uniqueid of call |
out_file |
name of output wav file |
TRUE if has been downloaded successfully
## Not run: rs_download_record("ua-987h79879") ## End(Not run)
## Not run: rs_download_record("ua-987h79879") ## End(Not run)
Get calls data
rs_get_call_data( date_from = Sys.Date() - 14, date_to = Sys.time(), fields = c("caller", "dst", "pool_name", "disposition", "calldate", "category_mark", "duration", "call_type", "waittime", "billsec", "connected_with", "call_counter", "proper_flag", "repeated_flag", "utm_source", "utm_medium", "utm_campaign", "utm_content", "utm_term", "uniqueid", "category_number", "employee_number", "employee_mark", "client_id", "remote_ip", "refferrer", "landing", "recording", "recording_wav", "call_card", "additional_number", "has_recording", "scheme_name", "duration_ms", "department", "caller_number"), filters = NULL, merge = 0, order = NULL )
rs_get_call_data( date_from = Sys.Date() - 14, date_to = Sys.time(), fields = c("caller", "dst", "pool_name", "disposition", "calldate", "category_mark", "duration", "call_type", "waittime", "billsec", "connected_with", "call_counter", "proper_flag", "repeated_flag", "utm_source", "utm_medium", "utm_campaign", "utm_content", "utm_term", "uniqueid", "category_number", "employee_number", "employee_mark", "client_id", "remote_ip", "refferrer", "landing", "recording", "recording_wav", "call_card", "additional_number", "has_recording", "scheme_name", "duration_ms", "department", "caller_number"), filters = NULL, merge = 0, order = NULL )
date_from |
Start date |
date_to |
End date |
fields |
List of fields for selection from the call log, see link |
filters |
Filters for selecting data that meet a condition by field value |
merge |
Aggregating the sample by the caller's number: 0 - do not combine; 1 - combine every 24 hours; 2 - combine for all time; |
order |
Sorting a selection |
tibble with calls data
## Not run: calls <- rs_get_call_data( date_from = "2021-09-01", date_to = "2021-09-30", fields = c('caller', 'utm_campaign'), filters = "utm_campaign=brand" ) ## End(Not run)
## Not run: calls <- rs_get_call_data( date_from = "2021-09-01", date_to = "2021-09-30", fields = c('caller', 'utm_campaign'), filters = "utm_campaign=brand" ) ## End(Not run)