Delete channel in Slack API - slack-api

I am finishing development of API similar to Slack API, but with more/different features. I have to implement an API (more like command/endpoint) for deleting a room and I can't find anything like that in the documentation.
It seems that it can be done via webUI according to this help article.
But there is no method for it in Slack API methods.
I think there is only channels.archive with similar purpose, but it seems very strange not having a method to delete a room.
Is it really like that that room can't be deleted via Slack API?

There is no method for deleting a channel in the official API, but there is the undocumented method channels.delete that has this exact functionality.
Basic usage is:
https://slack.com/api/channels.delete?token=TOKEN&channel=C12345678
Please note that undocumented methods are not officially supported by Slack and might change or stop working without any prior warning. Still, they are very useful and I have made a github to document all known undocumented methods. Please feel free to use and contribute.

Tried it today 2nd June 2022 and it responds with 'unknown_methods', I guess it's outdated now.

Related

Trying to build a bot that listens for it's own name to be tagged

I've been playing with the reddit API and I'd really like to make a bot that listens for someone to tag it in a comment, and then responds with a comment.
I've been looking through the docs here but haven't found what I'm looking for.
I've seen other bots do this in the past so I feel it must be possible.
If someone could point me in the right direction I'd really appreciate it.
Cheers.
If you use PRAW (Python Reddit API Wrapper), then you can use the redditor.inbox class to track "mentions". http://praw.readthedocs.io/en/latest/code_overview/reddit/inbox.html?highlight=Mentions
Otherwise, AFAIK mentions are just another item in your inbox.
https://reddit.com/r/redditscripting

google image search API for iOS app

I am creating an application in which I am trying to implement google image search using Google- image-search API. I refer this [google API link] (https://developers.google.com/image-search/v1/) . But I have one problem, on that page, mentioned (DEPRECATED). So can I use this API or I should use other API? Can anyone knows about this?
Thank you in advance
If APIs are deprecated they may work for now but not with full features and may go offline in near future.
If you go to https://developers.google.com/image-search/
It says its Deprecated and the number of requests are limited now.
Important: The Google Image Search API has been officially deprecated as of May 26, 2011.
It will continue to work as per our deprecation policy, but the number of requests you may make per day may be limited. We encourage you to upgrade to the Custom Search API, which now supports image search.
Here is the link to Custom Search API
https://developers.google.com/custom-search/
Hope it helps
Deprecated means it is older one also it means that there exist new version code for that. Check this out.
Example:
For example, in order to change our search engine from webresults-based to image-based, we can utilize the defaultToImageSearch attribute.

Facebook Graph API changed results from /posts today?

I have an iOS app that has been fetching the user's Facebook status updates and location checkins using "/me/posts" for several months. After today's "breaking changes" update, "/me/posts" only returns recent "Like"s. It looks like "/me/statuses" and "/me/checkins" are the new proper places to check for these things. I guess that makes sense, but I saw no documentation anywhere describing these changes or saying that they would happen today. The original documentation about what is specifically returned from the graph API also seems pretty slim.
So my questions are: is this an official change to the API? Where was it specified? Where should I look so I can stay on top of these things and not have my app break for hundreds of users?
Perhaps more importantly: are "/me/statuses" and "/me/checkins" the new proper ways to get this information? Or is there something else?
Always good to keep a (sharp) eye on the Developer Roadmap. These types of changes happen often, but FB usually does a good job of calling them out ahead of time. You've answered your own question as far as whether or not it's an "official" change - you're seeing it in the wild - insofar as how Facebook works, it's official.
Try using the Graph API Explorer. It could be an access token issue.
FYI: I see a similar issue with my application, and I am able retrieve the posts only when I use the Graph API Explorer and the token I get from there.
Update: I found where some of the problems lived. In the app profile in Facebook, pick "Edit Settings" and then go to "Advanced" where you'll see a section called "Migrations". This is mostly switches to show compatibility for various "breaking changes" updates, but it also includes an option for "Include Checkins with Statuses".
Now I know where to look, things are making a bit more sense.

Getting twitter replies

Is it possible to get replies (tweets) for a given tweet in twitter? I am searching for a API in twitter but couldn't find the same. Can some one help me on this?
Thanks
https://api.twitter.com/1/related_results/show/172019363942117377.json?include_entities=1
That is an experimental API.
By experimental API, this means that until we officially document it on dev.twitter.com, it's not necessarily production-ready and could be unstable both in the parameters it takes and the format of its responses. It also may just disappear one day.
As for related_results itself, it won't necessarily return every reply for a tweet nor are its responses necessarily limited to just replies. That said, for your own personal use or experimentation you may find some utility in the method. If you choose to use it in any software you're developing, I would proactively wrap its use with significant exception handling.

Inviting Users to Events via Facebook API

I'm able to create an event via the Facebook Graph API but I have yet to see a way in which to invite users to that event.
My fallback is to simply use the old REST API but sooner or later that will be phased out so I wanted to see if anyone had any suggestions.
--
Additional side question:
While using the REST API (or possibly even the Graph API) I have not found a way to invite guests who are not on Facebook. Is there a way to do this?
--
Thanks in advance for your help.
The bad news is that I think you're stuck with the REST API, at least I couldn't find another way (see http://bugs.developers.facebook.net/show_bug.cgi?id=10070 if you haven't already). The good news is that there's still so much functionality missing from the graph API that I'm pretty sure Facebook isn't going to be phasing it out any time soon. Very frustrating though...
can I use the JavaScript SDK to call the old REST API method ?
JS SDK

Resources