Search found 30 matches
- Mon Jan 21, 2013 8:48 am
- Forum: Help
- Topic: StationID API Problems
- Replies: 10
- Views: 6332
Re: StationID API Problems
It looks like switchuser is failing the following permission check in APIAuthentication.class.php: if ( $this->getPermissionObject()->Check('company','view') AND $this->getPermissionObject()->Check('company','login_other_user') ) { (If I comment this out it works fine) I am currently logging in via ...
- Thu Jan 17, 2013 1:43 pm
- Forum: Help
- Topic: StationID API Problems
- Replies: 10
- Views: 6332
Re: StationID API Problems
I'm attempting to use getUserPunch to get a users next punch, and then setting it with setPunch. Is there an easier way to do this?
- Thu Jan 17, 2013 1:33 pm
- Forum: Help
- Topic: StationID API Problems
- Replies: 10
- Views: 6332
Re: StationID API Problems
I've found that getUserPunch has some quirks if you specify a user_id other than the current user. It will return the type_id and status_id for the specified user, but the user_id and first_name and last_name of the PHP-SOAP user. It looks like this is because APIPunch.class.php always assume the cu...
- Thu Jan 17, 2013 5:43 am
- Forum: Help
- Topic: StationID API Problems
- Replies: 10
- Views: 6332
Re: StationID API Problems
Right, I have already done that, and know that works. I was hoping to find a more generic solution. Aren't there going to be other commands that will need a stationID set? Or is it just getUserPunch? Do you know why allowing "Any" station and "Any" Source doesn't work in this case?
- Wed Jan 16, 2013 2:41 pm
- Forum: Help
- Topic: StationID API Problems
- Replies: 10
- Views: 6332
StationID API Problems
I'm testing out intergrating TimeTrex with some of our other software using PHP-SOAP. The sample code worked fine. When I went to add a test of getUserPunch in api_client_example.php I was told that my station ID is not allowed. I double checked that I had a rule to allow ANY source and ANY station ...