I want to upload a text file to msteams sharepoint.
I have the webhook url of the channel
Is there a rest api for uploading the file using the webhook as the authenticator
For more visibility, adding answer from comment section:
Using Graph API its possible, but using Webhook it doesn't seem to be feasible.
Related
What I'm trying to accomplish?
Send an API (chat.postMessage) from a 3rd party app to a Slack user - Done
The message will have two buttons (approve and decline) which the user can click on - Done
Upon clicking on one of the buttons, Slack should send an API back to the 3rd party app - TBD
Before sending an API, Slack should retrieve an authentication token via API - TBD
Note: I've seen in Slack docs mentioning of /incoming endpoint (also /interactive-message). My 3rd party app has a strict set of available APIs. I'm not able to create new API endpoints. Also, I need the payload to be sent in a specific JSON structure.
I've reviewed Slack documentation but I can't figure it out.
Making notifications actionable
I'm technical but not a developer so there might be nuances which I'm missing.
Is there any section in Slack where I can add custom code to accomplish such integration?
If not, how I can accomplish it?
Edit:
I've configured a Request URL (in slack), when I click on one of the buttons in the message, I can see an API request is being sent to the URL.
I'm able to see the payload as well.
My problem is that I need the information to be sent in a different format and to a different endpoint.
What is the best approach to take for this? Do I need to develop a new service to capture and parse the payload and then generate the API request to my 3rd party app?
Ok, so here is how I've accomplished it.
Upon clicking a button in slack, Slack sends an API with a certain payload to the predefined endpoint which you configure (Request URL).
I've used free tier AWS serverless components:
API Gateway and Lambda
API gateway receives the payload and invokes the Lambda function (I used Python as it seems the easier for a non developer)
My Lambda function is processing the payload and has the logic to interact with my 3rd party app in the required way.
I want to pull some metrics daily posted in my slack channel. these metrics are located in my personal server, and to pull them via rest API a basic authentication is also required.
Does slack support this?in other words can slack do external api call in such way?
and if yes how?
To achieve this, you need to create a custom application(bot).
You can implement your custom business logic and then use slack APIs to post generated data to Slack Client.
https://slack.com/intl/en-in/help/articles/115005265703-Create-a-bot-for-your-workspace
I am looking to connect TEAMS channel posting with Facebook Workplace posting. The requirement is to copy over the Facebook posting to a specific TEAMS channel. The copy will include the text write up, links and pictures/videos in the Facebook post.
Is this possible to be done through TEAMS connectors? If copy from Facebook Workplace to TEAMS is not possible, what about the other way round? That is copy from TEAMS posting to Facebook Workplace.
Using Incoming Webhook you can copy the Facebook posting to a specific TEAMS channel.
Using Incoming webhook connector you can send the adaptive card. This card is highly customizable and can contain any combination of text, speech, images, buttons, and input fields.
Reference Doc: https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook
I am using Dialogflow integrated into Twilio to send SMS messages back and forth via text. I am wondering if/how I can send a response that is an image. I have the image loaded as a url on the web that I am trying to include as an image in the response but I cannot get it to work.
Thanks so much for any help
Mike
I worked with Twilio a lot for sms and I tried myself Autopilot but the issue with Twilio is not a rich content kind of engine. Twilio will only post images to it, so you can "mimic" a rich response with an image but if you click that image nothing happens. I gave up on Twilio and change to Dialogflow in which I can create rich context out of the box for facebook, skype, etc but also I can integrate it with Kommunicate and have a hybrid bot human engine with web integration for chat that also support rich content.
I am trying to download content owner reports via the Youtube Reporting API. When I try to list reports by content owner (onBehalfOfContentOwner) I get a 403 "The caller does not have permission". When I leave out the content owner parameter I only get channel reports back.
I have tried using OAuth2 tokens generated for both a manager of the channel and the channel user itself (generated using the server-side flow:). This happens from both the client library and the API explorer.
What could be going wrong here? Perhaps the issue has to do with the way the accounts are set up in Google Cloud - the channel manager has been added to the Google Cloud project, and the Youtube Reporting and Youtube Analytics have been enabled for that project.