Giter Site home page Giter Site logo

Comments (10)

roschler avatar roschler commented on September 7, 2024

Anybody? Really eager to try out SlackAPI.

from slackapi.

Inumedia avatar Inumedia commented on September 7, 2024

Sorry, I thought this was answered. It sounds like you're trying to use the test interface which isn't the appropriate method to use this library.

from slackapi.

roschler avatar roschler commented on September 7, 2024

I'm just trying to get started. When I asked about config.json being missing and leading to a compile error on this thread:

#27

"All you need to do is take a copy of the default config file, rename it and enter your details."

So I copied config.default.json to config.json and now I'm trying to put in the appropriate values. Are you telling me "config.default.json" is not valid? If so, where is the "default config file" mentioned by workshop2, so I can copy/rename and enter my details?

from slackapi.

roschler avatar roschler commented on September 7, 2024

Still would like an answer to my question please. Looking forward to working with SlackAPI.

from slackapi.

Workshop2 avatar Workshop2 commented on September 7, 2024

I suspect you will need to generate an api key. Try the following link: https://api.slack.com/web

from slackapi.

roschler avatar roschler commented on September 7, 2024

@Workshop2 - I got the API key/token a long time ago. But the config.json file is also looking for a "user" token in addition to an API token and I have no idea what to put there.

from slackapi.

Workshop2 avatar Workshop2 commented on September 7, 2024

This entire file is just about running integration (live) tests, and that part is testing the api works from user context and a bit context. They both have different security policies - might be worth reading up on that. You should also read and understand the integration tests before continuing: https://github.com/Inumedia/SlackAPI/blob/master/IntegrationTest/Connect.cs

from slackapi.

Inumedia avatar Inumedia commented on September 7, 2024

@roschler Is this still a problem or were you able to get the library working successfully on your end?

from slackapi.

 avatar commented on September 7, 2024

@roschler
Just to clarify what those fields means:

  • userAuthToken: To use slack as a user not a robot. For example, if you decided to code a custom UI. You shouldn't request username and password from the user, you should redirect to a page to request OAuth that will provide you a token.
  • botAuthToken: To access slack as a robot.
  • testChannel: Channel to be used in the tests
  • directMessageUser: Same as testChannel, but for directMessage

I'm just not sure if testChannel and directMessageUser are the names or the ids; If name, in the code you need to retrieve the id before sending the message.

from slackapi.

Inumedia avatar Inumedia commented on September 7, 2024

Closing as we haven't heard back from @roschler

from slackapi.

Related Issues (20)

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.