java-slack-sdk icon indicating copy to clipboard operation
java-slack-sdk copied to clipboard

Few Questions on Slack

Open ashwinbiyani opened this issue 8 years ago • 7 comments

  1. How can I send a scrollable data grid to slack as an incoming webhook response? Given it supports the only image format.
  2. Can I send an image object as streaming content to incoming webhook response? or I need to publish this image object as an image in some folder and provide that URL as an attachment.
  3. Now I have an app on my slack account. How do I make it available for my client's account and their workspace?
  4. How about security. Can I put security on this slack app(which I created) so that only legitimate user, workspaces and accounts can only access this App?
    • My workflow - Every time a question is asked on Slack app, it hits my rest endpoint and once the question is processed I post the answer on incoming webhook. How do I put security on each such transactions? so that it is secured.

I am little confused in terms of where and all security is required. I did go through manage distribution and OAuth sections in Slack doc but couldn't completely comprehend. Where to start, etc.

Appreciate, if you can answer my queries. I am simultaneously checking with Slack Team as well.

ashwinbiyani avatar Mar 28 '18 05:03 ashwinbiyani

How can I send a scrollable data grid to slack as an incoming webhook response? Given it supports the only image format.

You can't currently. You can experiment with different formatting options, though: https://api.slack.com/docs/messages/builder

Can I send an image object as streaming content to incoming webhook response? or I need to publish this image object as an image in some folder and provide that URL as an attachment. Now I have an app on my slack account. How do I make it available for my client's account and their workspace?

You'd have to use the Web API upload methods, rather than the response URL.

How about security. Can I put security on this slack app(which I created) so that only legitimate user, workspaces and accounts can only access this App?

OAuth allows you to have your app authorized by specific users.

How do I put security on each such transactions? so that it is secured. I am little confused in terms of where and all security is required. I did go through manage distribution and OAuth sections in Slack doc but couldn't completely comprehend. Where to start, etc.

https://api.slack.com/docs/oauth-safety

Roach avatar Mar 28 '18 16:03 Roach

thanks very much Roach. Are there any charts like fusion charts , D3 are supported in Slack

ashwinbiyani avatar Mar 29 '18 11:03 ashwinbiyani

@ashwinbiyani not currently. The most common solution is to render the chart as an iage and attach it to the message. One example would be StatsBot: https://statsbot.co/

They're also swapping out the image attachment with chat.update to display more granular info on "zoom" actions.

statsbot

Roach avatar Mar 30 '18 00:03 Roach

@Roach Thank you for answering the questions. @ashwinbiyani As the creator of this Java library, I do not have anything to do for this issue. Do you mind if I close this issue?

seratch avatar May 05 '18 03:05 seratch

Yes

On Sat, May 5, 2018, 08:39 Kaz Sera [email protected] wrote:

@Roach https://github.com/Roach Thank you for answering the questions. @ashwinbiyani https://github.com/ashwinbiyani As the creator of this Java library, I do not have anything to do for this issue. Do you mind if I close this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/seratch/jslack/issues/63#issuecomment-386774860, or mute the thread https://github.com/notifications/unsubscribe-auth/AfByLWIvfamrF76wuC-x5mLXnwoSbOaBks5tvRfngaJpZM4S-CbT .

ashwinbiyani avatar May 05 '18 04:05 ashwinbiyani

I understand that you meant that you don't mind if I close this issue. If not, let me know. I will close this issue within a few days.

seratch avatar May 05 '18 05:05 seratch

Yes please, you can close.

On Sat, May 5, 2018, 10:59 Kaz Sera [email protected] wrote:

I understand that you meant that you don't mind if I close this issue. If not, let me know. I will close this issue within a few days.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/seratch/jslack/issues/63#issuecomment-386780870, or mute the thread https://github.com/notifications/unsubscribe-auth/AfByLWQ2JfnY4ktjph_kLkJ3q1KX847Eks5tvTjCgaJpZM4S-CbT .

ashwinbiyani avatar May 05 '18 05:05 ashwinbiyani