-
Notifications
You must be signed in to change notification settings - Fork 36
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
Question about NextLink #30
Comments
Hi @DmitriyVTitov client := msgraphsdk.NewGraphServiceClient(adapter)
result, err := client.Users().Get(&opts)
if err != nil {
log.Fatal(err)
}
var users []graph.User
users = append(users, result.GetValue()...)
page2, err := users.NewUsersRequestBuilder(*result.GetNextLink(), adapter).Get(nil) Would give you page 2.
We also have a feature on the roadmap to iterate automatically over the pages and call a function you'd provide. Please go upvote the item if you think that'd be useful to you. Let us know if you have any additional question. |
Thanks @baywet! |
This really depends on you (the broader community), the more people we get to try the SDK, and the more positive feedback we get, the faster this SDK will reach GA in its current shape. At this very moment, assuming the feedback is on the positive side, the only major change we anticipate is the move of the kiota dependencies to their own repository, this should be a quick change for most people, a reference update. (github.com/microsoft/kiota/abstractions/go, github.com/microsoft/kiota/serialization/go/json, github.com/microsoft/kiota/http/go/nethttp, github.com/microsoft/kiota/authentication/go/azure). The other dependency we have that's currently in preview is azure identity. |
Hi!
I'm trying to use Go Graph SDK and I'm stuck! I am able to request AD users but I get only first 100 users with NextLink property which contains link to additional data.
How should I use this link to fetch next 100 users with Go SDK?
Example of my code:
The text was updated successfully, but these errors were encountered: