...
try { GetSingleSignOnToken ss=new GetSingleSignOnToken(); ss.setToken(ticket); ss.setUsername(<username>); ss.setTimeToLiveSeconds(360); GetSingleSignOnTokenResponse ssResp=stub.getSingleSignOnToken(ss); if (ssResp!=null) { System.out.println("Single Sign on Token: " + ssResp.get_return()); } //Can now append the token to any InTime URL to use access it without logging in. E.g. //https://demo.in-time.co.uk/placement/show?placement=<placement_id>&ticket=<token> } catch (Exception e) { System.out.println("Exception occurred: " + e); } |
---|
Constants
Whilst using the InTime Web Services, some fields have expected values from a range of constants. These are detailed below.
Field | Constant | Comment | Notes |
---|---|---|---|
Worker | |||
workerType | paye | For PAYE Workers | |
ltd | For Ltd Company Workers | ||
external-contractor | For Non Ltd Company Workers | ||
cis | For CIS Workers | ||
umb | For Workers operating through an Umbrella | ||
cisBusinessType | SoleTrader | ||
Company | |||
Trust | |||
Partnership | |||
paymentFrequency | weekly | ||
monthly | |||
<InPay Payroll Name> | If InPay connected, for PAYE workers, use the InPay Payroll Name | ||
timesheetsOnInvoices | 0 | Timesheets On Invoices | |
1 | Timesheets Not On Invoices | ||
paperOnInvoices | -1 | Agency Default | |
0 | No Attachments | ||
1 | Attach Paper Timesheets | ||
2 | Attach Expense Group Paper | ||
4 | Attach Expense Receipts Paper | ||
<sum of the above> | Attach the appropriate paper | For example, 5 to attach timesheets and receipts | |
consolidation | Detailed explanation required | ||
Placement | |||
layout | standard | See Maintaining Placements | |
calendar | |||
timesheetDateCalculator | weekly | See Maintaining Placements. You can see all possible values for this in the ui. | |
monthly | |||
<many more> | See UI for all options. | ||