Coder Social home page Coder Social logo

kfrancis / geckonet Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 4.0 15.55 MB

A comprehensive C# API wrapper library for accessing Geckoboard.com, using XML or JSON to read/write.

License: MIT License

C# 87.77% CSS 7.01% JavaScript 0.26% HTML 4.91% ASP.NET 0.05%

geckonet's People

Contributors

dependabot[bot] avatar kfrancis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

geckonet's Issues

Update DatasetFieldType enum

It would be great to update the DatasetFieldType enum to update pascal case naming convention and more consistent with .NET core enums.

public enum DatasetFieldType
{
date,
datetime,
number,
percentage,
@string,
money

You already have another enum here: https://github.com/kfrancis/geckonet/blob/9a1d984f9839d87405c003546e59e0865c22641f/Source/Geckonet.Sample/Areas/HelpPage/SampleGeneration/SampleDirection.cs

E.g. you could change it to something like this:

[DataContract]
public enum DatasetFieldType
{
    [EnumMember(Value = "date")]
    Date,

    [EnumMember(Value = "datetime")]
    DateTime,

    [EnumMember(Value = "number")]
    Number,

    [EnumMember(Value = "percentage")]
    Percentage,

    [EnumMember(Value = "string")]
    String,

    [EnumMember(Value = "money")]
    Money
}
var obj = new GeckoDataset()
{
    Fields = new Dictionary<string, IDatasetField>()
    {
        {"amount", new DatasetField(DatasetFieldType.Number, "Amount")},
        {"timestamp", new DatasetField(DatasetFieldType.Date, "Date")}
    },
    UniqueBy = new List<string>() { "timestamp" }
};

Reduce number of dependencies ?

Hi
Would you be interested in a pull request that uses basic WebRequest instead of RestSharp and thus removes many of the dependencies ?

Need a data model for the Leaderboard Widget

The Leaderboard widget is very close in structure to to the DataItem Model but it needs to have an attribute for "previous_rank". Seems like an easy add for the next build.

***Update - Nevermind. I found that you've added this to the source code but it just wasn't in the compiled version I had pulled down from NuGet.

Readme.md broken link

Link in the following is broken:
A comprehensive C# API wrapper library for accessing Geckoboard.com, using XML or JSON to read/write widget data easily using strong-typed models using the documentation listed [here](http://docs.geckoboard.com/custom-widgets/).

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.