OpenCloudApiV1
Deprecated Open Cloud API surface for in-experience cloud operations such as user notifications.
| Memory category | Instances |
|---|
Member index 2
Description
Deprecated Open Cloud API class for in-experience cloud operations. Do not use it for new work. Use HttpService with the In-experience HTTP requests workflow instead.
History 7
- 698 Change Tags of CreateUserNotificationAsync from [Yields] to [Yields, Deprecated]
- 698 Change Tags of CreateModel from [CustomLuaState] to [Deprecated, CustomLuaState]
- 698 Change Tags of OpenCloudApiV1 from [NotCreatable, NotReplicated] to [NotCreatable, NotReplicated, Deprecated]
- 698 Change PreferredDescriptor of OpenCloudApiV1 from to HttpService
- 587 Add CreateUserNotificationAsync
- 587 Add CreateModel
- 583 Add OpenCloudApiV1
Members 2
CreateModel
| Parameters (1) | ||
|---|---|---|
| name | string | |
| Returns (1) | ||
| OpenCloudModel | ||
Deprecated. Creates and returns an OpenCloudModel container of the given
type name. The factory instantiates a model object that can hold Open
Cloud data structures (such as a user-notification payload) for use with
other OpenCloudApiV1 methods.
The name parameter must match a registered model type (for example,
"UserNotification"). The returned container wraps a typed model instance
whose properties are accessible from Luau via PascalCase keys.
| Thread safety | Unsafe |
|---|
History 2
- 698 Change Tags of CreateModel from [CustomLuaState] to [Deprecated, CustomLuaState]
- 587 Add CreateModel
CreateUserNotificationAsync
| Parameters (2) | ||
|---|---|---|
| user | string | |
| userNotification | OpenCloudModel | |
| Returns (1) | ||
| OpenCloudModel | ||
Deprecated. Attempted to send a notification to the specified user via the
Open Cloud Notifications API. Always errors with
"API CreateUserNotificationAsync is not enabled."
The user parameter is the target user identifier and userNotification
is an OpenCloudModel container (created via
OpenCloudApiV1:CreateModel()) populated with notification payload
fields.
| Thread safety | Unsafe |
|---|
History 2
- 698 Change Tags of CreateUserNotificationAsync from [Yields] to [Yields, Deprecated]
- 587 Add CreateUserNotificationAsync