Skip to content

Commit

Permalink
fix: docs typos
Browse files Browse the repository at this point in the history
  • Loading branch information
t-col committed Nov 3, 2023
1 parent 2752a1f commit b1968de
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/create-space-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,13 @@ export default function createSpaceApi(makeRequest: MakeRequest) {
* const crypto = require('crypto')
*
* const client = contentful.createClient({
* accessToken: '<content_management_api_key>'
* })
*
* const signingSecret = client.getSpace('<space_id>')
* .then((space) => space.upsertWebhookSigningSecret({
* value: crypto.randomBytes(32).toString('hex')
* })
* }))
* .then((response) => console.log(response.redactedValue))
* .catch(console.error)
* ```
Expand All @@ -389,8 +393,12 @@ export default function createSpaceApi(makeRequest: MakeRequest) {
* const contentful = require('contentful-management')
*
* const client = contentful.createClient({
* .then((space) => space.deleteWebhookSigningSecret()
* .then((response) => console.log(response.redactedValue))
* accessToken: '<content_management_api_key>'
* })
*
* client.getSpace('<space_id>')
* .then((space) => space.deleteWebhookSigningSecret())
* .then(() => console.log("success"))
* .catch(console.error)
* ```
*/
Expand Down

0 comments on commit b1968de

Please sign in to comment.