Comments (10)
Anybody? Really eager to try out SlackAPI.
from slackapi.
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.
I'm just trying to get started. When I asked about config.json being missing and leading to a compile error on this thread:
"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.
Still would like an answer to my question please. Looking forward to working with SlackAPI.
from slackapi.
I suspect you will need to generate an api key. Try the following link: https://api.slack.com/web
from slackapi.
@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.
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.
@roschler Is this still a problem or were you able to get the library working successfully on your end?
from slackapi.
@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.
Closing as we haven't heard back from @roschler
from slackapi.
Related Issues (20)
- Extensions.ToProperTimeStamp for Slack Date formatting
- How do I resolve a missing_scope error HOT 4
- Add conversations.join method
- Build failing HOT 2
- Nuget push failing due to missing environment variable HOT 2
- Fix UpdateAsync (and Update) not to pass "as_user" unless specified
- "conversations.members" support
- target dotnet core and not .net framework HOT 6
- SlackTaskClient.DeleteMessageAsync takes a datetime but should take a timestamp string HOT 1
- Refactor GetUserListAsync (of SlackTaskClient) to allow arguments HOT 1
- Can't Specify Markdown Boolean in PostMessageAsync()
- rtm.start depreciated starting 2022/09/20 HOT 7
- [Bug] SlackTaskClient.GetChannelListAsync() returns unknown_method HOT 2
- It became impossible to connect to slack around 2022/9/27 HOT 4
- Add reactions.remove support.
- How to implement Conversation API HOT 2
- Rate limits HOT 1
- Is there an example of attaching text files to a message? HOT 1
- Is this still maintained?
- GetChannelListAsync() returns error of "unknown method". HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slackapi.