28msec / cellstore-csharp Goto Github PK
View Code? Open in Web Editor NEWA CSharp Library for interfacing with the 28msec's Cell Store API
License: Apache License 2.0
A CSharp Library for interfacing with the 28msec's Cell Store API
License: Apache License 2.0
For all POST methods, if you want to insert multiple objects, you need to supply them concatenated, not as an array, like so:
{ "foo" : "bar" }
{ "foo" : "bar" }
{ "foo" : "bar" }
This feature does not work with the Cell Store .Net API
Hi,
When i run this code i get correct results for almost all the facts except for few examples where the results are wrong.
I checked the input archives facts and they just not sum up to the result.
Dictionary> dimensions = new Dictionary>
{ { "boi:FilingStatus", new List { "ALL" } } };
Dictionary dimensionsVisible = new Dictionary
{ { "xbrl:Entity::visible", true } };
Dictionary dimensionsCategory = new Dictionary
{ { "xbrl:Entity::category", "slicer" } };
List aid = directiveCalculationDocumet.membersAID.Select(x => x.AID).ToList();
dynamic facts = dataAPI.GetFacts(token: token, labels: false, dimensions: dimensions, aid: aid, dimensionsCategory: dimensionsCategory, aggregationFunction: "sum", open: true);
Hi,
I am trying to edit multiple facts together using this code:
dataAPI.EditFacts(token: rwtoken, patch: patch, aid: aid, dimensions: dimensions);
If patch type is List of Fact class i recive the error message listed below.
If patch type is Fact the operation is successfull.
Error calling EditFacts: { "request_id" : "57b45337d38b6126b73b07ae", "context" : "boi.local.28.io", "type" : "type", "code" : "XPTY0004", "location" : { "module" : "/public/api/facts/PATCH.jq", "line-number" : 69, "line-number-end" : 69, "column-number" : 5, "column-number-end" : 86 }, "description" : "array() can not be treated as type object()", "message" : "</public/api/facts/PATCH.jq>:69,5: type error [err:XPTY0004]: array() can not be treated as type object()" }
Fact class is:
public class Fact
{
public List KeyAspects { get; set; }
public Dictionary<string, string> Aspects { get; set; }
public Profiles Profiles { get; set; }
public string Value { get; set; }
public int Decimals { get; set; }
public List AuditTrails { get; set; }
}
Instead of calling the api this function would just return the request url for debugging/logging purposes.
The rest API allows you to ask for several dimension members at once. For example:
xbrl:FiscalYear=2014&xbrl:FiscalYear=2015
Yet, Dictionary allows only one value per key.
Any idea how to solve this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.