Skip to content

Commit 5dc4dab

Browse files
authored
Update Get endpoint response headers.js
1 parent 07dbd68 commit 5dc4dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Get endpoint response headers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function fetcHeaders() {
2121
//let v1TimeUrl = "https://" + siteName + ".teamwork.com/time_entries.json?page=" + page + "&pageSize=50&getTotals=true&projectId=&companyId=0&userId=&assignedTeamIds=&invoicedType=all&billableType=all&fromDate=20240101&toDate=20240731&sortBy=date&sortOrder=asc&onlyStarredProjects=false&includeArchivedProjects=true&matchAllTags=true&projectStatus=all";
2222
let v2TimeUrl = "https://" + siteName + ".teamwork.com/projects/api/v2/time.json?page=" + page + "&pageSize=50&getTotals=true&projectId=&companyId=0&userId=&assignedTeamIds=&invoicedType=all&billableType=all&fromDate=20240101&toDate=20240731&sortBy=date&sortOrder=asc&onlyStarredProjects=false&includeArchivedProjects=true&matchAllTags=true&projectStatus=all";
2323

24-
const response = await fetch(latestActivityUrl, requestOptions)
24+
const response = await fetch(v2TimeUrl, requestOptions)
2525
let data = await response.json()
2626

2727
//console.log(response.headers) // Remove commenting at the start of this console log to get a full list of response headers for the endpoint

0 commit comments

Comments
 (0)