Class RemoteConfigWebApiClient
This is a utility class for Remote Config to handle all Remote Config CRUD operations.
Inherited Members
Namespace: Unity.RemoteConfig.Editor
Assembly: Unity.RemoteConfig.Editor.dll
Syntax
public static class RemoteConfigWebApiClient
Properties
| Name | Description |
|---|---|
| webRequestsAreDone | Checks if there are any unfinished web requests. Returns true if all web requests are done. |
Methods
| Name | Description |
|---|---|
| DeleteConfig(string, string) | Sends a DELETE request to delete aconfig. |
| FetchConfigs(string, string, Action<Exception>) | Fetches all configs for the given environment ID. |
| FetchDefaultEnvironment(string, Action<Exception>) | Fetches default environment for the current project. |
| FetchEnvironments(string, Action<Exception>) | Fetches all environments for the current project. |
| FetchSchemas(string, string, Action<Exception>) | Fetches all schemas for the given config ID. |
| PostConfig(string, string, JArray, Action<Exception>) | Pushes a new config to the server in the given environment. |
| PutConfig(string, string, string, JArray) | Pushes updates to the given existing config to the server for the given environment. |
Events
| Name | Description |
|---|---|
| fetchConfigsFinished | Action upon fetching config finishes. Passes config object. |
| fetchDefaultEnvironmentFinished | Action upon fetching default environment. Passes default environment id. |
| fetchEnvironmentsFinished | Action upon fetching of environments is finished. Passes an array of environments. |
| fetchSchemasFinished | Action upon fetching schemas finishes. Passes schemas object. |
| postConfigRequestFinished | Action upon posting config (_PostConfig) request finishes. Passes configId. |
| rcRequestFailed | Action upon request fails. Passes request.responseCode, request.error. |
| settingsRequestFinished | Action upon updating config (_PutConfig) request finishes. |