contentful.py icon indicating copy to clipboard operation
contentful.py copied to clipboard

Incorrect documentation for sync

Open moreindirection opened this issue 2 years ago • 1 comments

In README.rst, the Synchronization section has this code sample:

sync = sync.next(client) # equivalent to client.sync(sync_token=sync.next_sync_token)

The example code given in the comment doesn't work. It needs to be:

client.sync({'sync_token': sync.next_sync_token})

moreindirection avatar Mar 17 '22 18:03 moreindirection

Thanks @moreindirection!

Very helpful information for me:)

mark-mishyn avatar Sep 29 '22 08:09 mark-mishyn