示例#1
0
 /// <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);
 }
示例#2
0
 /// <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;
 }
示例#3
0
 public void Init()
 {
     instance = new DataApi();
 }