Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xero timesheet #384

Open
lastab opened this issue Sep 11, 2017 · 2 comments
Open

Xero timesheet #384

lastab opened this issue Sep 11, 2017 · 2 comments

Comments

@lastab
Copy link

lastab commented Sep 11, 2017

Hi,
I want to know the ways post timesheet.

Thanks

@CloCkWeRX
Copy link
Collaborator

https://developer.xero.com/documentation/payroll-api/timesheets does exist, but we haven't modelled anything in the payroll branch explicitly for this.

@rept
Copy link

rept commented Oct 4, 2019

@CloCkWeRX Hi Daniel, I'm trying out your Timesheet modifications. But I'm always getting not authorized to access resource.

Normal API works fine (non payroll, but accounting). Is it correct that I need to authorize it as before and then call the payroll method?

See below:

    @integration_client = Xeroizer::PartnerApplication.new(
        'XXXXXXXXXXX', 'XXXXXXXXXXXXXXX',
        "lib/invoice_exporter/privatekeyxero.pem"
    )
    @integration_client.authorize_from_access(
        session[:xero_auth][:access_token],
        session[:xero_auth][:access_key] )
    @payroll = @integration_client.payroll
    @payroll.Timesheet.all

@rjaus rjaus added the payroll label Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants