-
Notifications
You must be signed in to change notification settings - Fork 42
Lc new reports endpoints #1520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lc new reports endpoints #1520
Conversation
| ### Groups | ||
|
|
||
| Shows the total number of chats were handled by each group during the specified period. | ||
|
|
||
| #### Specifics | ||
|
|
||
| | | | | ||
| | ------------------- | ------------------------------------------------------------ | | ||
| | **Method URL** | `https://api.livechatinc.com/v3.6/reports/chats/groups` | | ||
| | **HTTP method** | POST, GET | | ||
| | **Required scopes** | `reports_read` | | ||
|
|
||
| #### Request | ||
|
|
||
| See [available parameters and filters](#available-parameters-and-filters). | ||
|
|
||
| #### Response | ||
|
|
||
| | Field | Notes | | ||
| | ------------------------ | -------------------------------------------------------- | | ||
| | `total` | The total number of chats in the specified date range. | | ||
| | `records` | Contains the `distribution` objects, for example, `day`. | | ||
| | `records.day.group` | Contains the `<group>:<chat_count>` pairs. | | ||
|
|
||
| </Text> | ||
| <Code> | ||
| <CodeSample path={'REQUEST'}> | ||
| <Sample> | ||
|
|
||
| ```shell | ||
| curl -X POST \ | ||
| https://api.livechatinc.com/v3.6/reports/chats/groups \ | ||
| -H 'Content-Type: application/json' \ | ||
| -H 'Authorization: Bearer <your_access_token>' \ | ||
| -d '{ | ||
| "distribution": "day", | ||
| "filters": { | ||
| "from": "2024-08-20T00:00:00-00:00", | ||
| "to": "2024-08-22T23:59:59-00:00" | ||
| } | ||
| }' | ||
| ``` | ||
|
|
||
| </Sample> | ||
| </CodeSample> | ||
|
|
||
| <CodeResponse type="reports" version="v3.6" json="groups"/> | ||
|
|
||
| </Code> | ||
| </Section> | ||
|
|
||
| <Section> | ||
| <Text> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems duplicated.
Co-authored-by: skamieniarz <46318321+skamieniarz@users.noreply.github.com>
Co-authored-by: skamieniarz <46318321+skamieniarz@users.noreply.github.com>
Co-authored-by: Ola <42515529+ale-kacperczyk@users.noreply.github.com>
Co-authored-by: Ola <42515529+ale-kacperczyk@users.noreply.github.com>
Co-authored-by: Ola <42515529+ale-kacperczyk@users.noreply.github.com>
Co-authored-by: skamieniarz <46318321+skamieniarz@users.noreply.github.com>
Co-authored-by: skamieniarz <46318321+skamieniarz@users.noreply.github.com>
|
Hi there, is this ready for review or are you still working on this PR? |
applied some comments |
|
🎉 This PR is included in version 2.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |

Deploy preview
Scroll down to the checks section for the link to the deploy preview of your branch.
Links
Link your Jira ticket.
Description
Review and release
Apply changes and resolve conflicts. Once the described functionality lands on prod, let us know on #platform-docs-releases that your PR is ready for release. We will merge and publish the changes.