-
Notifications
You must be signed in to change notification settings - Fork 42
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
base: master
Are you sure you want to change the base?
Lc new reports endpoints #1520
Conversation
@@ -21,7 +21,10 @@ The developer preview version provides a preview of the upcoming changes to the | |||
|
|||
## [v3.6] - Developer preview | |||
|
|||
No changes yet. | |||
- There's a new method, [**Unique visitors**](/data-reporting/reports-api/v3.6/reports/stats/unique_visitors), which shows how many page views and unique visitors there were on the website during the specified period. |
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.
- There's a new method, [**Unique visitors**](/data-reporting/reports-api/v3.6/reports/stats/unique_visitors), which shows how many page views and unique visitors there were on the website during the specified period. | |
- There's a new method, [**Unique Visitors**](/data-reporting/reports-api/v3.6/reports/stats/unique_visitors), which shows how many page views and unique visitors there were on the website during the specified period. |
No changes yet. | ||
- There's a new method, [**Unique visitors**](/data-reporting/reports-api/v3.6/reports/stats/unique_visitors), which shows how many page views and unique visitors there were on the website during the specified period. | ||
- There's a new method, [**Groups**](/data-reporting/reports-api/v3.6/#groups), which shows how many chats were handled by each group during the specified period. | ||
- There's a new method, [**Queued visitors**](/data-reporting/reports-api/v3.6/#queued_visitors), which shows how many customers were waiting in the queue during the specified period. |
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.
- There's a new method, [**Queued visitors**](/data-reporting/reports-api/v3.6/#queued_visitors), which shows how many customers were waiting in the queue during the specified period. | |
- There's a new method, [**Queued Visitors**](/data-reporting/reports-api/v3.6/#queued_visitors), which shows how many customers were waiting in the queue during the specified period. |
- There's a new method, [**Unique visitors**](/data-reporting/reports-api/v3.6/reports/stats/unique_visitors), which shows how many page views and unique visitors there were on the website during the specified period. | ||
- There's a new method, [**Groups**](/data-reporting/reports-api/v3.6/#groups), which shows how many chats were handled by each group during the specified period. | ||
- There's a new method, [**Queued visitors**](/data-reporting/reports-api/v3.6/#queued_visitors), which shows how many customers were waiting in the queue during the specified period. | ||
- There's a new method, [**Queued visitors left**](/data-reporting/reports-api/v3.6/#queued_visitors_left), which shows what customers left the queue during the specified period. |
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.
- There's a new method, [**Queued visitors left**](/data-reporting/reports-api/v3.6/#queued_visitors_left), which shows what customers left the queue during the specified period. | |
- There's a new method, [**Queued Visitors Left**](/data-reporting/reports-api/v3.6/#queued_visitors_left), which shows what customers left the queue during the specified period. |
### 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.
|
||
| | | | ||
| ------------------- | ------------------------------------------------------------ | | ||
| **Method URL** | `https://api.livechatinc.com/v3.6/reports/chats/groups` | |
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.
| **Method URL** | `https://api.livechatinc.com/v3.6/reports/chats/groups` | | |
| **Method URL** | `https://api.livechatinc.com/v3.6/reports/chats/queued_visitors` | |
|
||
### Groups | ||
|
||
Shows the total number of chats were handled by each group during the specified period. |
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.
Shows the total number of chats were handled by each group during the specified period. | |
Shows the total number of chats handled by each group during the specified period. |
|
||
| | | | ||
| ------------------- | ------------------------------------------------------------ | | ||
| **Method URL** | `https://api.livechatinc.com/v3.6/reports/chats/groups` | |
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.
| **Method URL** | `https://api.livechatinc.com/v3.6/reports/chats/groups` | | |
| **Method URL** | `https://api.livechatinc.com/v3.6/reports/chats/queued_visitors_left` | |
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.