next_cursor from the response back as cursor to fetch the next page.
import Channel3 from "@channel3/sdk";
const client = new Channel3();
async function main() {
const page1 = await client.brands.list({ limit: 50 });
console.log(
"Page 1:",
page1.items.map((b) => b.name),
);
if (page1.next_cursor) {
const page2 = await client.brands.list({
limit: 50,
cursor: page1.next_cursor,
});
console.log(
"Page 2:",
page2.items.map((b) => b.name),
);
}
}
main();
from channel3_sdk import Channel3
client = Channel3()
def main():
page1 = client.brands.list(limit=50)
print("Page 1:", [b.name for b in page1.items])
if page1.next_cursor:
page2 = client.brands.list(limit=50, cursor=page1.next_cursor)
print("Page 2:", [b.name for b in page2.items])
if __name__ == "__main__":
main()