Skip to content

Conversation

@buttash
Copy link

@buttash buttash commented May 7, 2025

Update model to match API response....

Proposed fix for [https://github.com//issues/4].

The getSegments now returns correctly with this change. To test I had to make changes to getSegmentsTest within ContactsApiTest as it was erroring with null limit and offset...As I could not work out how to use API credentials within this test module I added them explicitly to the test.

       Long limit = 10l;
        Long offset = 0l;
        String sort = null;
        ApiClient client = new ApiClient();
        client.setApiKey("MY-API-KEY");
        api.setApiClient(client);
       GetSegments response = api.getSegments(limit, offset, sort);

Update model to match API response
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.

1 participant