Skip to content

Modify http status code as response for manage-audience #87

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

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Mar 10, 2025

This change modifies the HTTP status code for the following audience group-related endpoints, as they were incorrect.
Some http status codes are wrong. They should be 202, not 200.

  1. POST /v2/bot/audienceGroup/upload (createAudienceGroup)
  2. PUT /v2/bot/audienceGroup/upload (addAudienceToAudienceGroup)
  3. POST /v2/bot/audienceGroup/upload/byFile (createAudienceForUploadingUserIds)
  4. POST /v2/bot/audienceGroup/click (createClickBasedAudienceGroup)
  5. POST /v2/bot/audienceGroup/imp (createImpBasedAudienceGroup)

You can also check if this change is correct by reading https://developers.line.biz/en/reference/messaging-api/#manage-audience-group.

NOTE: This change is not a modification of the messaging API itself. It is simply a correction of an error in the YAML description.

Copy link

NODEJS

You can check generated code in nodejs

Check the diff here

Copy link

GO

You can check generated code in go

Check the diff here

Copy link

PYTHON

You can check generated code in python

Check the diff here

Copy link

JAVA

You can check generated code in java

Check the diff here

Copy link

PHP

You can check generated code in php

Check the diff here

@Yang-33 Yang-33 requested a review from a team March 10, 2025 01:28
@Yang-33 Yang-33 self-assigned this Mar 10, 2025
@Yang-33
Copy link
Contributor Author

Yang-33 commented Mar 10, 2025

According to the code diff, the SDK code for PHP and PYTHON will need to be modified. I will release a patch version for these today.

@Yang-33 Yang-33 merged commit 0af4f53 into main Mar 10, 2025
9 checks passed
@Yang-33 Yang-33 deleted the fix-http-status-code branch March 10, 2025 01:58
Yang-33 pushed a commit to line/line-bot-sdk-python that referenced this pull request Mar 10, 2025
line/line-openapi#87

This change modifies the HTTP status code for the following audience
group-related endpoints, as they were incorrect.
Some http status codes are wrong. They should be 202, not 200.
1. `POST /v2/bot/audienceGroup/upload` (`createAudienceGroup`)
2. `PUT /v2/bot/audienceGroup/upload` (`addAudienceToAudienceGroup`)
3. `POST /v2/bot/audienceGroup/upload/byFile`
(`createAudienceForUploadingUserIds`)
4. `POST /v2/bot/audienceGroup/click` (`createClickBasedAudienceGroup`)
5. `POST /v2/bot/audienceGroup/imp` (`createImpBasedAudienceGroup`)


You can also check if this change is correct by reading
https://developers.line.biz/en/reference/messaging-api/#manage-audience-group.

NOTE: This change is not a modification of the messaging API itself. It
is simply a correction of an error in the YAML description.

Co-authored-by: github-actions <github-actions@github.com>
Yang-33 pushed a commit to line/line-bot-sdk-php that referenced this pull request Mar 10, 2025
line/line-openapi#87

This change modifies the HTTP status code for the following audience
group-related endpoints, as they were incorrect.
Some http status codes are wrong. They should be 202, not 200.
1. `POST /v2/bot/audienceGroup/upload` (`createAudienceGroup`)
2. `PUT /v2/bot/audienceGroup/upload` (`addAudienceToAudienceGroup`)
3. `POST /v2/bot/audienceGroup/upload/byFile`
(`createAudienceForUploadingUserIds`)
4. `POST /v2/bot/audienceGroup/click` (`createClickBasedAudienceGroup`)
5. `POST /v2/bot/audienceGroup/imp` (`createImpBasedAudienceGroup`)


You can also check if this change is correct by reading
https://developers.line.biz/en/reference/messaging-api/#manage-audience-group.

NOTE: This change is not a modification of the messaging API itself. It
is simply a correction of an error in the YAML description.

---------

Co-authored-by: github-actions <github-actions@github.com>
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

Successfully merging this pull request may close these issues.

2 participants