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

The endpoint postUsersExportId() doesn't works #115

Closed
rudenav opened this issue Oct 14, 2024 · 0 comments · Fixed by #117
Closed

The endpoint postUsersExportId() doesn't works #115

rudenav opened this issue Oct 14, 2024 · 0 comments · Fixed by #117
Assignees
Labels
bug Something isn't working

Comments

@rudenav
Copy link

rudenav commented Oct 14, 2024

Expected Behavior

use Braze\Model\UsersExportIdsPostBody;

$result = $braze->client->postUsersExportId(
    (new UsersExportIdsPostBody())->setEmailAddress('some@email.com')
);

$result should be an object with the export users request results

Actual Behavior

$result is null

Steps to Reproduce

use Braze\Model\UsersExportIdsPostBody;

$result = $braze->client->postUsersExportId(
    (new UsersExportIdsPostBody())->setEmailAddress('some@email.com')
);

Environment

  • Version: 2.2.1
  • Platform: Laravel
  • Browser: Chrome
  • OS: Debian

The reason of the issue

The SDK expects response code is 200 but the API return 201.
The SDK doesn't decode the response body from a JSON string if the response has status different from 200.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants