Coder Social home page Coder Social logo

Comments (4)

colmdoyle avatar colmdoyle commented on June 29, 2024 1

Great callout @hugihlynsson, and definitely on us to fix for you.

tldr - Yes, 4.0.0 is definitely a breaking change, the biggest ones being that as of API v2.6 client.conversations.list now uses a cursor based pagination system instead of just page numbers.

Also we spotted a typo in one of our enum value, so if you rely on that you'll start seeing TS errors

from intercom-node.

SeanHealy33 avatar SeanHealy33 commented on June 29, 2024 1

Hi @hugihlynsson to go a bit deeper on the specific changes to conversations

OLD

const response = await client.conversations.list({
    order: Order.DESC,
    sort: SortBy.UpdatedAt,
    page: 1,
    perPage: 10,
});

NEW

const response = await client.conversations.list({
    startingAfter: 'WzE2NzA0MjI1MjkwMDAsMjQzMTY3NzA2ODcsMl0=',
    perPage: 10,
});

The new list uses a startingAfter param to get the next page instead of the old page parameter (the next starting_after key is provided on each page as you get it). As of 4.0 we also removed page order and sort from the list method here since they no longer do anything as of API Version 2.6

from intercom-node.

colmdoyle avatar colmdoyle commented on June 29, 2024 1

Hope that clears it up a bit more for you @hugihlynsson, feel free to reopen this issue and tag me if you've any more questions

from intercom-node.

hugihlynsson avatar hugihlynsson commented on June 29, 2024 1

That's the info we needed. Thanks!

from intercom-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.