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_token is marked required in GetDMEventV2Params #488

Open
venkateshan-niladri opened this issue Jun 22, 2023 · 0 comments
Open

Comments

@venkateshan-niladri
Copy link

venkateshan-niladri commented Jun 22, 2023

While fetching all the direct message events using listDmEvents call, we need to mandatorily pass pagination_token in the request. However, for initial request, we don't have to pass any token value. Is there any workaround for this or do we need to fix it ?

Current code:

export interface GetDMEventV2Params {
    .
    .
    .
    pagination_token: string;
    .
    .
}

Suggested changes:

export interface GetDMEventV2Params {
    .
    .
    .
    pagination_token?: string;
    .
    .
}

As mentioned here, there is no pagination_token passed in the first request.

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

1 participant