Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to show how a webhook sends data immediately.
Rest API
def send_webhook(data): # Webhook [1] data to the URL print(f"Sending data: {data}")
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking webhooks pull data instead of pushing it.
✗ Incorrect
Webhooks push data immediately to notify another system.
2fill in blank
mediumComplete the sentence to explain webhook behavior.
Rest API
Webhooks [1] notifications to a URL when an event happens. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'store' or 'delay' which do not describe immediate sending.
✗ Incorrect
Webhooks push notifications immediately when events occur.
3fill in blank
hardFix the error in the explanation about webhooks.
Rest API
Webhooks [1] data only when the receiver asks for it.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing push with pull, thinking receiver must ask first.
✗ Incorrect
Webhooks push data automatically; they do not wait for a request.
4fill in blank
hardFill both blanks to complete the webhook notification process.
Rest API
When an event occurs, the webhook [1] a notification and the receiver [2] it.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'ignores' or 'delays' which do not fit the process.
✗ Incorrect
The webhook pushes the notification, and the receiver receives it immediately.
5fill in blank
hardFill all three blanks to describe webhook notification flow.
Rest API
The webhook [1] data to the [2] URL, which then [3] the information.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up sender and receiver roles.
✗ Incorrect
The webhook pushes data to the receiver URL, which then processes the information.