最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Sending Files to Slack Thread with C# - Stack Overflow

programmeradmin4浏览0评论

I've been writing a C# client for Windows to automate a few simple tasks. One of them would involve sending files to a Slack thread.

I have written code that can send an initial message, get the timestamp value and respond to that specific thread, the idea is to have one thread for each of the workstations where this program will execute. However for sending files, I've noticed that the files.upload method from the Slack API is now deprecated and two new methods were introduced.

To make things short I'm basically struggling to integrate this, given this is new I haven't been able to find any references as well.

Is there any SDK or library I could use to make this easier? Right now I'm just sending raw requests with RestSharp, which I assume is probably not the best approach. Any help would be highly appreciated.

I have tried writing this by myself with no avail, just getting different errors from the API (which is expected since I'm trying to guess how it works based on the docs).

I've been writing a C# client for Windows to automate a few simple tasks. One of them would involve sending files to a Slack thread.

I have written code that can send an initial message, get the timestamp value and respond to that specific thread, the idea is to have one thread for each of the workstations where this program will execute. However for sending files, I've noticed that the files.upload method from the Slack API is now deprecated and two new methods were introduced.

To make things short I'm basically struggling to integrate this, given this is new I haven't been able to find any references as well.

Is there any SDK or library I could use to make this easier? Right now I'm just sending raw requests with RestSharp, which I assume is probably not the best approach. Any help would be highly appreciated.

I have tried writing this by myself with no avail, just getting different errors from the API (which is expected since I'm trying to guess how it works based on the docs).

Share Improve this question asked 2 days ago mathfellowmathfellow 1 New contributor mathfellow is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 0

I did a quick search and found https://github/soxtoby/SlackNet .

Perhaps this can meet your needs.

发布评论

评论列表(0)

  1. 暂无评论