List Hourly Contract Timesheets
curl --request GET \
--url https://golance.com/api/v1/external/reports/client/timesheets/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://golance.com/api/v1/external/reports/client/timesheets/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://golance.com/api/v1/external/reports/client/timesheets/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://golance.com/api/v1/external/reports/client/timesheets/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://golance.com/api/v1/external/reports/client/timesheets/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://golance.com/api/v1/external/reports/client/timesheets/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://golance.com/api/v1/external/reports/client/timesheets/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"contract": {
"_id": "<string>",
"rate": 123,
"title": "<string>",
"contractor": {
"_id": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"employer": {
"_id": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"team": {
"_id": "<string>",
"name": "<string>"
}
},
"statistics": {
"billableMinutes": 123,
"billedMinutes": 123,
"manualMinutes": 123,
"overtimeMinutes": 123,
"trackedMinutes": 123,
"activity": 123,
"billableAmount": 123
}
}
],
"pagination": {
"currentPage": 123,
"itemsPerPage": 123,
"pagesCount": 123,
"totalCount": 123
},
"statistics": {
"billableMinutes": 123,
"billedMinutes": 123,
"manualMinutes": 123,
"overtimeMinutes": 123,
"trackedMinutes": 123,
"activity": 123,
"billableAmount": 123
}
}Reports
List Hourly Contract Timesheets
List hourly contract timesheets of the authenticated client
GET
/
api
/
v1
/
external
/
reports
/
client
/
timesheets
/
list
List Hourly Contract Timesheets
curl --request GET \
--url https://golance.com/api/v1/external/reports/client/timesheets/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://golance.com/api/v1/external/reports/client/timesheets/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://golance.com/api/v1/external/reports/client/timesheets/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://golance.com/api/v1/external/reports/client/timesheets/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://golance.com/api/v1/external/reports/client/timesheets/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://golance.com/api/v1/external/reports/client/timesheets/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://golance.com/api/v1/external/reports/client/timesheets/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"contract": {
"_id": "<string>",
"rate": 123,
"title": "<string>",
"contractor": {
"_id": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"employer": {
"_id": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"team": {
"_id": "<string>",
"name": "<string>"
}
},
"statistics": {
"billableMinutes": 123,
"billedMinutes": 123,
"manualMinutes": 123,
"overtimeMinutes": 123,
"trackedMinutes": 123,
"activity": 123,
"billableAmount": 123
}
}
],
"pagination": {
"currentPage": 123,
"itemsPerPage": 123,
"pagesCount": 123,
"totalCount": 123
},
"statistics": {
"billableMinutes": 123,
"billedMinutes": 123,
"manualMinutes": 123,
"overtimeMinutes": 123,
"trackedMinutes": 123,
"activity": 123,
"billableAmount": 123
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Example:
["6137109712adad9757ab0e35"]
Start date in YYYY-MM-DD format
Example:
"2023-01-01"
End date in YYYY-MM-DD format
Example:
"2023-01-31"
Example:
["6137109712adad9757ab0e35"]
Available options:
asc, desc Available options:
contract, contractor, trackedTime, activity, goMeter, manual, overtime, billableTime, billableAmount Required range:
x >= 1Required range:
1 <= x <= 100⌘I
