Coder Social home page Coder Social logo

jamesmarcogliese / slack-api-csharp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 304 KB

.Net Implementation of Slack's WebAPI and EventAPI Wrapper - Generated from https://github.com/slackapi/slack-api-specs

License: MIT License

C# 100.00%
api eventapi nuget slack slackapi webapi

slack-api-csharp's People

Contributors

jamesmarcogliese avatar peterjferrarotto avatar

Stargazers

 avatar

Watchers

 avatar  avatar

slack-api-csharp's Issues

List Response Names

When calling a List function, the class names are as follows:
ListOKResponseModel
ListOKResponseModelModel
ListOKResponseModelModelModel...
It carries on until there are nine "Model"s at the end.

Obviously not critical, but it would be better to have actual names corresponding to the action that returns them rather than something so arbitrary.

RepliesOKResponse missing properties

It looks like the only public property for RepliesOKResponse is Ok -- for example, returned when calling

var resp = await slackWebAPI.Channels.RepliesAsync(token: token, threadTs: ts, channel: chan)

Unless I'm mistaken, according to the docs here, shouldn't there also be properties related to messages and possibly has_more?

Timestamp parameter as double truncates trailing zeroes

I've verified this using the test for reactions.get:

  1. Using a timestamp that ends with trailing zeroes (e.g. 1549470028.002800) works fine and gets related reactions.
  2. Removing the trailing zeroes (e.g. 1549470028.0028) results in the following response:
{
    "ok": false,
    "error": "message_not_found"
}

When passing the timestamp parameter as a double to a method in slack-api-csharp, for instance:

double ts = 1549470028.002800;
var resp = await slackWebAPI.Reactions.GetWithHttpMessagesAsync(token: token, channel: "the-channel", timestamp: ts);

you can see when debugging that the trailing zeroes in ts are truncated and the method returns the same message_not_found response as above.

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.