Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Ruby delta request builder does not implement deltaToken & skipToken params #143

@j15e

Description

@j15e

From my understanding of the Delta API and other languages implementations, I think classes for building delta request parameters (ex. MicrosoftGraph::Groups::Delta::DeltaRequestBuilder::DeltaRequestBuilderGetQueryParameters) should support a skipToken and a deltaToken to make subsequent requests.

Are you aware of an issue in Kiota that could relate to this? Or am I not following the correct solution? I could not find much references of skipToken/skip_token in the Ruby lib.

I would expect I would be able for example to do the following two requests (given there is a nextToken):

group_id = "cd6e0472-971c-402e-8040-dbbf53652e35"
group_params = MicrosoftGraph::Groups::Delta::DeltaRequestBuilder::DeltaRequestBuilderGetQueryParameters.new
group_params.select = ["id", "displayName", "members"]
group_params.filter = "id eq '#{group_id}'"
request_configuration = MicrosoftKiotaAbstractions::RequestConfiguration.new
request_configuration.query_parameters = group_params

resp = graph_client.groups.delta.get(request_configuration).resume

# Do something with the first delta set
# ... 
# Extract skipToken
skip_token = CGI.parse(URI(resp.odata_next_link).query)["$skiptoken"]

# Generate new request with skip token
group_params = MicrosoftGraph::Groups::Delta::DeltaRequestBuilder::DeltaRequestBuilderGetQueryParameters.new
# Doesn't exist! Only skip, but this is not the expected parameter.
group_params.skip_token = skip_token 
request_configuration = MicrosoftKiotaAbstractions::RequestConfiguration.new
request_configuration.query_parameters = group_params
graph_client.groups.delta.get(request_configuration).resume

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions