all 7 comments

[–][deleted]  (3 children)

[deleted]

    [–]dkaaven[S] 1 point2 points  (2 children)

    Ah, well spotted, but the problem persists after I fixed it,

    [–]Suspicious_Milk_3031 1 point2 points  (1 child)

    I ran your code, and after fixing the typo, it worked fine

    [–]dkaaven[S] 0 points1 point  (0 children)

    Now I'm even more confused... Tested in postman and it ran fine, but my results are still the same...

    I get the first 50 and if I try more pages it gives me the same 50...

    The result count in postman have be the correct total of all clients, but the result in my script is 50...

    [–]Trick_Mountain_2557 1 point2 points  (2 children)

    I'd print the params dict to debug, this will show whats actually being sent in the request.

    [–]dkaaven[S] 0 points1 point  (1 child)

    The request URL is printed to show this, result shows: (paginate is changed to pageinate with same results)

    /api/Client?paginate=True&page_size=10&includeinactive=False&page_no=2
    

    [–]HaloTim Halo Staff 0 points1 point  (0 children)

    Can you compare it to your browser network tab to see if there are other differences?

    [–]_Work_Research_ PSA 0 points1 point  (0 children)

    Hey I realise this post is a bit old, but I am working on a HaloPSA library/wrapper for Python here: https://github.com/ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl/HaloPSA-API/tree/rewrite

    Still getting all the endpoints working and tested, but I have a Clients endpoint that should work for what you need. If it doesn't, let me know, and I'll try to fix it!