GithubHelp home page GithubHelp logo

28msec / cellstore-csharp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.22 MB

A CSharp Library for interfacing with the 28msec's Cell Store API

License: Apache License 2.0

JavaScript 0.31% C# 99.41% Batchfile 0.06% Shell 0.22%

cellstore-csharp's People

Contributors

fcavalieri avatar wcandillon avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

seanpm2001

cellstore-csharp's Issues

Adding several facts at once doesn't work

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

aggregationFunction: "sum" return wrong results for specific facts

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);

error calling EditFacts for multiple facts

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; }
}

Allow multiple values for a single dimension

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.