/// <summary> /// Call UDP store asynchronously to update a store item. /// </summary> /// <param name="accessToken">The bearer token to UDP.</param> /// <param name="iapItem">The updated store item.</param> /// <returns>The HTTP PUT Request to update a store item.</returns> public static object UpdateStoreItem(string accessToken, IapItem iapItem) { CheckUdpBuildConfig(); string api = "/v1/store/items/" + iapItem.id; return(asyncRequest(kHttpVerbPUT, BuildConfigInterface.GetUdpEndpoint(), api, accessToken, iapItem)); }
/// <summary> /// Call UDP store asynchronously to create a store item. /// </summary> /// <param name="accessToken">The bearer token to UDP.</param> /// <param name="orgId">The organization identifier to create the store item under.</param> /// <param name="iapItem">The store item to create.</param> /// <returns>The HTTP POST Request to create a store item.</returns> public static object CreateStoreItem(string accessToken, string orgId, IapItem iapItem) { CheckUdpBuildConfig(); string api = "/v1/store/items"; iapItem.ownerId = orgId; return(asyncRequest(kHttpVerbPOST, BuildConfigInterface.GetUdpEndpoint(), api, accessToken, iapItem)); }