DataApi
Import
Import
Constructors
Constructor
-
Parameters
-
Optional configuration: Configuration
-
basePath: string = ...
-
axios: AxiosInstance = ...
Returns DataApi
-
Methods
Delete Custom Item
-
Parameters
-
key: string
Item key.
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional writeLock: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Custom Items
-
Deletes all default access level data associated with a given custom ID. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Item
-
Deletes a data item by the specified key for the given player.
Parameters
-
key: string
Item key.
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional writeLock: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Items
-
Deletes all default access level data associated with a given player.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Private Custom Item
-
Deletes a private data item by the specified key for the specified custom ID. Only accessible via an authenticated server authority.
Parameters
-
key: string
Item key.
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional writeLock: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Private Custom Items
-
Deletes all private data associated with a given custom ID. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Protected Item
-
Deletes a protected data item by the specified key for the given player. Only accessible via an authenticated server authority.
Parameters
-
key: string
Item key.
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional writeLock: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Protected Items
-
Deletes all protected data associated with a given player. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Public Item
-
Deletes a public data item by the specified key for the given player.
Parameters
-
key: string
Item key.
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional writeLock: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Delete Public Items
-
Deletes all public data associated with a given player.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<void, any>>
-
Get Custom Items
-
Retrieves saved data values for all keys specified, ordered alphabetically in pages of 20. If no keys are supplied then returns all keys, ordered alphabetically in pages of 20.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional keys: string[]
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetItemsResponse, any>>
-
Get Custom Keys
-
Gets a paged list of keys for the given custom ID, ordered alphabetically in pages of 100.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetKeysResponse, any>>
-
Get Items
-
Retrieves saved data values for all keys specified, ordered alphabetically in pages of 20. If no keys are supplied then returns all keys, ordered alphabetically in pages of 20.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional keys: string[]
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetItemsResponse, any>>
-
Get Keys
-
Gets a paged list of keys for the given player, ordered alphabetically in pages of 100.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetKeysResponse, any>>
-
Get Private Custom Items
-
Retrieves private save data values for all keys specified, ordered alphabetically in pages of 20. If no keys are supplied then returns all keys, ordered alphabetically in pages of 20. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional keys: string[]
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetItemsResponse, any>>
-
Get Private Custom Keys
-
Gets a paged list of private keys for the given custom ID, ordered alphabetically in pages of 100. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetKeysResponse, any>>
-
Get Protected Items
-
Retrieves protected save data values for all keys specified, ordered alphabetically in pages of 20. If no keys are supplied then returns all keys, ordered alphabetically in pages of 20.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional keys: string[]
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetItemsResponse, any>>
-
Get Protected Keys
-
Gets a paged list of protected keys for the given player, ordered alphabetically in pages of 100.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetKeysResponse, any>>
-
Get Public Items
-
Retrieves saved data values for all keys specified, ordered alphabetically in pages of 20. If no keys are supplied then returns all keys, ordered alphabetically in pages of 20. Accessible by any player for any other player's data.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional keys: string[]
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetItemsResponse, any>>
-
Get Public Keys
-
Gets a paged list of public keys for the given player, ordered alphabetically in pages of 100. Accessible by any player for any other player's data.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional after: string
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<GetKeysResponse, any>>
-
Query Default Custom Data
-
Query custom data with the default access class. If no index is available to fulfil the query then the query will fail
Parameters
-
projectId: string
ID of the project.
-
Optional queryIndexBody: QueryIndexBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<QueryIndexResponse, any>>
-
Query Default Player Data
-
Query player data with the default access class. If no index is available to fulfil the query then the query will fail.
Parameters
-
projectId: string
ID of the project.
-
Optional queryIndexBody: QueryIndexBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<QueryIndexResponse, any>>
-
Query Private Custom Data
-
Query custom data with the private access class. If no index is available to fulfil the query then the query will fail.
Parameters
-
projectId: string
ID of the project.
-
Optional queryIndexBody: QueryIndexBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<QueryIndexResponse, any>>
-
Query Protected Player Data
-
Query player data with the protected access class. If no index is available to fulfil the query then the query will fail.
Parameters
-
projectId: string
ID of the project.
-
Optional queryIndexBody: QueryIndexBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<QueryIndexResponse, any>>
-
Query Public Player Data
-
Query player data with the public access class. If no index is available to fulfil the query then the query will fail.
Parameters
-
projectId: string
ID of the project.
-
Optional queryIndexBody: QueryIndexBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<QueryIndexResponse, any>>
-
Set Custom Item
-
Set a data item with a given key and value for the specified custom ID. The value is limited to a maximum size of 5 MB across all default access level slots. The entire default access level saved state for a custom ID is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional setItemBody: SetItemBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemResponse, any>>
-
Set Custom Item Batch
-
Set up to 20 data items with key, value and optional writeLock against the custom ID. The values are limited to a maximum size of 5 MB across all default access level slots for the custom ID. The entire default access level saved state for a custom ID is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. The batch set operation is considered atomic and if any of the set key operation fails, the entire operation is failed. Error responses should identify the affected key operations that failed. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional setItemBatchBody: SetItemBatchBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemBatchResponse, any>>
-
Set Item
-
Set a data item with a given key and value for the specified player. The value is limited to a maximum size of 5 MB across all default access level slots. The entire default access level saved state for a player is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional setItemBody: SetItemBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemResponse, any>>
-
Set Item Batch
-
Set up to 20 data items with key, value and optional writeLock for the given player. The values are limited to a maximum size of 5 MB across all default access level slots for the player. The entire default access level saved state for a player is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. The batch set operation is considered atomic and if any of the set key operation fails, the entire operation is failed. Error responses should identify the affected key operations that failed.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional setItemBatchBody: SetItemBatchBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemBatchResponse, any>>
-
Set Private Custom Item
-
Set a private data item with a given key and value for the specified custom ID. The value is limited to a maximum size of 5 MB across all private access level slots. The entire private saved state for a custom ID is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional setItemBody: SetItemBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemResponse, any>>
-
Set Private Custom Item Batch
-
Set up to 20 private data items with key, value and optional writeLock against the custom ID. The values are limited to a maximum size of 5 MB across all private access level slots for the custom ID. The entire private saved state for a custom ID is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. The batch set operation is considered atomic and if any of the set key operation fails, the entire operation is failed. Error responses should identify the affected key operations that failed. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
customId: string
The custom data ID specified by the user. Must be between 1 and 50 characters long and contain only alphanumeric characters, underscores, and hyphens.
-
Optional setItemBatchBody: SetItemBatchBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemBatchResponse, any>>
-
Set Protected Item
-
Set a protected data item with a given key and value for the specified player. The value is limited to a maximum size of 5 MB across all protected access level slots. The entire protected saved state for a player is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional setItemBody: SetItemBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemResponse, any>>
-
Set Protected Item Batch
-
Set up to 20 protected data items with key, value and optional writeLock for the given player. The values are limited to a maximum size of 5 MB across all slots for the player. The entire protected saved state for a player is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. The batch set operation is considered atomic and if any of the set key operation fails, the entire operation is failed. Error responses should identify the affected key operations that failed. Only accessible via an authenticated server authority.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional setItemBatchBody: SetItemBatchBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemBatchResponse, any>>
-
Set Public Item
-
Set a public data item with a given key and value for the specified player. The value is limited to a maximum size of 5 MB across all public access level slots. The entire public saved state for a player is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. The value set will be publicly readable by any player.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional setItemBody: SetItemBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemResponse, any>>
-
Set Public Item Batch
-
Set up to 20 public data items with key, value and optional writeLock for the given player. The values are limited to a maximum size of 5 MB across all slots for the player. The entire public saved state for a player is limited to 2000 keys. Attempting to set a new key beyond this limit will result in an error. The batch set operation is considered atomic and if any of the set key operation fails, the entire operation is failed. Error responses should identify the affected key operations that failed.
Parameters
-
projectId: string
ID of the project.
-
playerId: string
The player ID supplied by the Authorization service.
-
Optional setItemBatchBody: SetItemBatchBody
-
Optional options: RawAxiosRequestConfig<any>
Returns Promise<AxiosResponse<SetItemBatchResponse, any>>
-
Deletes a data item by the specified key for the specified custom ID. Only accessible via an authenticated server authority.
Delete Custom Item
{RequiredError}
DataApi