Questions about Time report API
For the time report APIs, here taking "Generating Company Wide Reports" as an
example, could some one clarify the following? Thanks
1. In the table, there is
URL /gds/timereports/:version/companies/:companyid/
So this means
https://www.odesk.com/api/gds/timereports/:version/companies/:companyid/ ?
Is the :version "v1" or do you have other versions now?
2. Should these time report APIs be authorized with a session id?
3. Also in the same table, there is
{format} json,xml,csv
So should .xml or .json be added to the url, such as
https://www.odesk.com/api/gds/timereports/v1/companies/emacs.xml?
In some other tables, {format} is part of the url. Here it is not, so why put it
here?
4. In the table, it says "Parameters None". Under the table, "URL parameters"
and "GET parameters" are explained. This is confusing, right? Also in other
pages like "oTask API", ":companyid" is explained as GET parameters, but
here it is explained as "URL parameters".
The document should be clear, clean and consistent.
Vote Result










Score: 0.0, Votes: 0
- Login to post comments






wenliangzhang 13 posts - China - Joined Aug 03 2009
After some trying, I think I can access the time report now. But there is still
one problem, it seems that the "tqx" parameter doesn't work. When I set it to
"xml", the query result is still in json format. The query url looks like
https://www.odesk.com/gds/timereports/v1/companies/emacs?tq=SELECT%20week_worked_on%20WHERE%20worked_on%20%3e%20'2009-10-01'%20AND%20worked_on%20%3c%3d%20'2009-10-31'&tqx=xml
Do I use it incorrectly?
amozharovsky
Hi Wenliang,
Try "tqx" in following format:
tqx=out:xml.
So your request will be:
https://www.odesk.com/gds/timereports/v1/companies/emacs?tq=SELECT%20week_worked_on%20WHERE%20worked_on%20%3e%20'2009-10-01'%20AND%20worked_on%20%3c%3d%20'2009-10-31'&tqx=out:xml
thanks
wenliangzhang 13 posts - China - Joined Aug 03 2009
Thanks very much. It works!