/// <summary> /// Get a client connecting to the DataApi of a specific endpoint. /// </summary> /// <param name="basePath">A URL to a specific endpoint, e.g. http://domain/v1/_queries/public</param> /// <returns>CellStore.Api.DataApi</returns> public static CellStore.Api.DataApi getDataApiClient(String basePath = "http://secxbrl.28.io/v1/_queries/public") { CellStore.Api.DataApi dataApi = null; if (!dataApis.TryGetValue(basePath, out dataApi)) { dataApi = new CellStore.Api.DataApi(new CellStore.Client.ApiClient(basePath)); dataApis.Add(basePath, dataApi); } return(dataApi); }
/// <summary> /// Get a client connecting to the DataApi of a specific endpoint. /// </summary> /// <param name="basePath">A URL to a specific endpoint, e.g. http://domain/v1/_queries/public</param> /// <returns>CellStore.Api.DataApi</returns> public static CellStore.Api.DataApi getDataApiClient(String basePath = "http://secxbrl.28.io/v1/_queries/public") { CellStore.Api.DataApi dataApi = null; if(!dataApis.TryGetValue(basePath, out dataApi)) { dataApi = new CellStore.Api.DataApi(new CellStore.Client.ApiClient(basePath)); dataApis.Add(basePath, dataApi); } return dataApi; }
public void Init() { instance = new DataApi(); }