Get total reported hours of team members
Note
This API is used for getting the total reported working hour of members in a team.
| Action | Parameters | Description | 
|---|---|---|
| get | from_date,to_date,team_id,type | Get the total working hours of team members. | 
Endpoint
GET
type : monthly , daily
Example Request
var axios = require('axios');
var config = {
  method: 'get',
  url: 'https://app.engineerforce.io/api/v2/dailyreport/check_other_reports/?from_date=2022-12-01&to_date=2023-04-30&team=100&type=monthly',
  headers: { 'Authorization': 'API-Token {{YOUR_API_TOKEN}}' }
};
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
  .url('https://app.engineerforce.io/api/v2/dailyreport/check_other_reports/?from_date=2022-12-01&to_date=2023-04-30&team=100&type=monthly')
  .method("GET", body)
  .addHeader("Authorization", "API-Token {{YOUR_API_TOKEN}}")
  .build();
Response response = client.newCall(request).execute();
import requests
url = 'https://app.engineerforce.io/api/v2/dailyreport/check_other_reports/?from_date=2022-12-01&to_date=2023-04-30&team=100&type=monthly'
payload={}
headers = {'Authorization': 'API-Token {{YOUR_API_TOKEN}}' }
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Example Response
{
    "John Doe": [
        {
            "month": "2022/12",
            "total_hours": 100,
            "user_email": "john100@test.io"
        },
        {
            "month": "2023/01",
            "total_hours": 0,
            "user_email": "john100@test.io"
        },
        {
            "month": "2023/02",
            "total_hours": 0,
            "user_email": "john100@test.io"
        },
        {
            "month": "2023/03",
            "total_hours": 0,
            "user_email": "john100@test.io"
        },
        {
            "month": "2023/04",
            "total_hours": 0,
            "user_email": "john100@test.io"
        }
    ],
    "yamashita": [
        {
            "month": "2022/12",
            "total_hours": 65,
            "user_email": "yamashita@test.io"
        },
        {
            "month": "2023/01",
            "total_hours": 0,
            "user_email": "yamashita@test.io"
        },
        {
            "month": "2023/02",
            "total_hours": 0,
            "user_email": "yamashita@test.io"
        },
        {
            "month": "2023/03",
            "total_hours": 0,
            "user_email": "yamashita@test.io"
        },
        {
            "month": "2023/04",
            "total_hours": 0,
            "user_email": "yamashita@test.io"
        }
    ]
}