contentful-management

Contentful: Prevent webhook from triggering, when using Content Management API

混江龙づ霸主 提交于 2019-12-12 17:16:12
问题 So I've created a webhook within the Contentful dashboard, that triggers when an entry is either published or deleted, and it works as it should. However, I want to be able to publish entries via the Content Management JavaScript API, without triggering the webhook. Are there any measures I can take to make this possible? 回答1: Unfortunately there's no difference if an entry is published through the API or the web app directly. The web app simply calls the API under the hood. What might be

How to set contentful.js api call rateLimit

帅比萌擦擦* 提交于 2019-12-11 10:45:50
问题 I have following code: contentfulMgmt.createClient({ accessToken: sourceSpace.accessCode, rateLimit: 1, secure: true, retryOnTooManyRequests: true, maxRetries: 5 }); How to set api call rate? I have seen it in their github project but i am unable to make it work. For ref: rate-limit: https://github.com/contentful/contentful-management.js/blob/master/lib/rate-limit.js contentful-management: https://github.com/contentful/contentful-management.js They have added index.js file in the project but