Analytics user
GEThttps://api.teyuto.tv/v2/analytics/users/:user_id
Get analytics on specific user
Request
Path Parameters
user_id stringrequired
Query Parameters
collection_id stringrequired
Get analytics of user on specific collection
Example: 3654
start_date stringrequired
Start date to get analytics
Example: 2023-11-11 12:00:00
end_date stringrequired
End date to get analytics
Example: 2023-11-12 12:00:00
Header Parameters
Accept stringrequired
Example: application/json
Responses
- 200
- 400
- 401
- 404
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
sessions stringrequired
time_watched stringrequired
{
"status": "string",
"sessions": "string",
"time_watched": "string"
}
OK
{
"status": "<string>",
"sessions": "<string>",
"time_watched": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 2
Schema
status stringrequired
{
"status": "string"
}
Bad Request
{
"status": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 3
Schema
status stringrequired
{
"status": "string"
}
Unauthorized
{
"status": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 4
Schema
status stringrequired
{
"status": "string"
}
Not Found
{
"status": "<string>"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.teyuto.tv/v2/analytics/users/:user_id");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "<API_KEY_VALUE>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear