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

Pagination doesn't work for GetUsers, etc #79

Open
danmcclure opened this issue Mar 20, 2024 · 1 comment
Open

Pagination doesn't work for GetUsers, etc #79

danmcclure opened this issue Mar 20, 2024 · 1 comment

Comments

@danmcclure
Copy link

danmcclure commented Mar 20, 2024

When I call GetUsers with a UserQuery{Page: "1"}, I get an error Failed to get user: json: cannot unmarshal string into Go value of type []string. Can you provide a working example of pagination using pages and cursors? It's also unclear how I would get back the cursor information from the response, as it's in the response header which it seems is not processed and returned by GetUsers.

Setting any value in the UserQuery fails with the same error: Failed to get user: json: cannot unmarshal string into Go value of type []string

melchiormoulin added a commit to melchiormoulin/onelogin-go-sdk that referenced this issue Apr 23, 2024
Context: onelogin#79

When setting UserQuery params GetUsers throw an error Failed to get user: json: cannot unmarshal string into Go value of type []string
@melchiormoulin
Copy link
Contributor

Hello @danmcclure, i've deployed a fix with #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants