i install on my server git, composer and now i have problems by composer install --no-dev --optimize-autoloader / i get allways the error: Runtime Exception / The artifact repository requires PHP's zip extension
that might help thats what i am mostly scanning for
im also always scanning for a section that says authentication and says use bearer auth or oauth2 etc
@kevinpapst is there a way i can get an API Response that contains the full user email and not the user ID?
@kevinpapst if i use the begin and or end parameter on the timesheets api and use 2020-10-01 for example it gives me a bad request, what am i doing wrong :P
thought that was html 5 format
found an example under the project method: 2020-10-15T07:51:12.470Z
odd still get bad parameters
on projects also
found it 2020-10-15T09:10:41
dont get any records back as admin user if i just set start and end time
do i need to be in the teams also?
start with no parameters and then work your way up to find out, which parameter causes the list to be empty
even blank gives nothingh
only on my none admin user it returns data
Lets change roles for a second and pretend you are me: when reading your posts, would you understand what you are trying to achieve and what you need help with? Because I don't. What is blank? What is "it" (that returns data)? You are talking about users, timesheet, projects, dates, blank parameters ... The easiest way is to post an example here, querying the Kimai demo and then we can have a look what is wrong(going on.
we GET from the /api/timesheets endpoint
with only two parameters
start and end
they are set to the first day of the last month and the last day of the last month
when i run the API query i get data back showing me a timesheet
but i dont get all the records i should
so for example i get 1 record back when i have 5 records in my time tracking and 20 in the general time tracking of all team members
headers are set to content type json and the xauth headers needed
ok its my account apprently i get different results if i use a system admin account
vs my normal user account
normal = teamlead
@kevinpapst seems to be ok if i use my other user so nothing to worry about for now
is there anyway i can ask the API to resolve these values for me: 'activity': 3, 'project': 10, 'user': 4,
so i dont have to do any look ups ?
There is a pagination bug in timesheets when working with with team permissions (which is already in work). You get around that with either using an admin account or setting the "view_all_data" permission to the teamlead role.
The other question is documented in the /timesheets endpoint - check the parameter "full"