onelogin / onelogin-go-sdk

golang sdk for onelogin apis
MIT License
10 stars 24 forks source link

Pagination doesn't work for GetUsers, etc #79

Open danmcclure opened 7 months ago

danmcclure commented 7 months ago

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 commented 6 months ago

Hello @danmcclure, i've deployed a fix with https://github.com/onelogin/onelogin-go-sdk/pull/80