streams.project
streams.project.get_settings()
Get the settings for the current project based on the project api-key.
from moralis import streams
api_key = "YOUR_API_KEY"
result = streams.project.get_settings(
api_key=api_key,
)
print(result)
streams.project.set_settings()
Set the settings for the current project based on the project api-key.
from moralis import streams
api_key = "YOUR_API_KEY"
body = {
"region": "",
"secretKey": "",
}
result = streams.project.set_settings(
api_key=api_key,
body=body,
)
print(result)
Object with the properties:
Name | Type | Description | Required | Default | Example |
---|---|---|---|---|---|
region | enum[str]: - “us-east-1” - “us-west-2” - “eu-central-1” - “ap-southeast-1” |
The region from where all the webhooks will be posted for this project | Yes | ”” | |
secretKey | str | The secret key to validate the webhooks | Yes | ”” |