Class UdpSynchronizationApi
Synchronize store data from UDP and IAP
Inherited Members
Namespace: UnityEditor.Purchasing
Syntax
public static class UdpSynchronizationApi
Methods
CreateStoreItem(String, String, IapItem)
Call UDP store asynchronously to create a store item.
Declaration
[Obsolete("Internal API, it will be removed soon.")]
public static object CreateStoreItem(string accessToken, string orgId, IapItem iapItem)
Parameters
Type | Name | Description |
---|---|---|
String | accessToken | The bearer token to UDP. |
String | orgId | The organization identifier to create the store item under. |
IapItem | iapItem | The store item to create. |
Returns
Type | Description |
---|---|
Object | The HTTP POST Request to create a store item. |
GetAccessToken(String)
Get Access Token according to authCode.
Declaration
[Obsolete("Internal API, it will be removed soon.")]
public static object GetAccessToken(string authCode)
Parameters
Type | Name | Description |
---|---|---|
String | authCode | Acquired by UnityOAuth |
Returns
Type | Description |
---|---|
Object |
GetOrgId(String, String)
Call UDP store asynchronously to retrieve the Organization Identifier.
Declaration
[Obsolete("Internal API, it will be removed soon.")]
public static object GetOrgId(string accessToken, string projectGuid)
Parameters
Type | Name | Description |
---|---|---|
String | accessToken | The bearer token to UDP. |
String | projectGuid | The project id. |
Returns
Type | Description |
---|---|
Object | The HTTP GET Request to get the organization identifier. |
SearchStoreItem(String, String, String)
Call UDP store asynchronously to search for a store item.
Declaration
[Obsolete("Internal API, it will be removed soon.")]
public static object SearchStoreItem(string accessToken, string orgId, string appItemSlug)
Parameters
Type | Name | Description |
---|---|---|
String | accessToken | The bearer token to UDP. |
String | orgId | The organization identifier where to find the store item. |
String | appItemSlug | The store item slug name. |
Returns
Type | Description |
---|---|
Object | The HTTP GET Request to update a store item. |
UpdateStoreItem(String, IapItem)
Call UDP store asynchronously to update a store item.
Declaration
[Obsolete("Internal API, it will be removed soon.")]
public static object UpdateStoreItem(string accessToken, IapItem iapItem)
Parameters
Type | Name | Description |
---|---|---|
String | accessToken | The bearer token to UDP. |
IapItem | iapItem | The updated store item. |
Returns
Type | Description |
---|---|
Object | The HTTP PUT Request to update a store item. |