Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Oktay Sancak
    I haven't tried it yet but it seems like API signature has changed as well (now it requires file or content which used to be file only). I'll look into that tonight (GMT+10)
    Ashley Jackson
    Oktay Sancak
    @AshleyJackson I just tried and it worked for me.
    slack.files.upload("README.rst", channels="C02693R9F")
    This message was deleted
    Oktay Sancak
    @AndrezAguayo Documentation says "This method lets the slack messaging server know that the authenticated user is currently active". My understanding is that it only makes the current user (token owner) active, not the bot user. See https://api.slack.com/methods/users.setActive.
    Oktay Sancak
    @Astayonix You can respond to slash commands using Slacker, however Slacker doesn't have RTM support so you can't listen to channels in real-time.
    Ashley Jackson
    This message was deleted
    @os Just tested it myself. Apparently it returns a "no_file" when the file itself has no data in it. I tested it with a file that had at least a Byte and it worked. It still doesn't explain why original script stopped working. I will keep you posted if I find anything. Thanks.
    Oktay Sancak
    @AshleyJackson Cool, no worries
    @os Thanks for making this amazing lib, I noticed you have support for oauth however I cannot find any exmaples where this has been used? I know your improving the docs and thought it might be a good idea to suggest adding an oauth verification example. Thanks again :)
    Oktay Sancak
    @OliPicard Thanks! I haven't used it myself but Slacker's method signatures should exactly match with the official API. You might want to look at https://api.slack.com/methods/oauth.access and https://api.slack.com/docs/oauth for more information. I'll try to add more examples once I get a chance.
    Timo Furrer
    I could not find any information on how to get an API token other than a test token. I just want to post a message to a channel on slack on a certain event which happens in a separate application
    hey, did any one catch that bug with usergroups.update method: when I'm trying to change group name to the same but with another case (from lower to upper, for example) it raises error "name_already_exists"
    Oktay Sancak
    @timofurrer You can create one from https://api.slack.com/docs/oauth-test-tokens
    Hey @Sindbag. Maybe Slack doesn't support case-sensitive naming.
    actually it seems they use case insensitive names for usergroup creation/updates, but it's possible to have them case-sensitive. I guess I have to report this bug
    if anyone interested in create method for users and delete for usergroups
    also made pull-request to Slacker
    btw, Slack Team answered my question in twitter and usergroup.update really does not work with case-sensetive name changes, but should, so they will check it
    Shreyas Shinde
    wrote an implementation of slacker - A python script for uploading files to a slack channel. Also opened a pull request to slacker. os/slacker#85

    The line "from slacker import Slacker" keeps giving me the error "ImportError: cannot import name Slacker"

    Note I have slacker installed..

    pip freeze | grep -i slacker

    any ideas?..
    anyone around?
    im trying to use slacker on google app engine and im getting an import error "ImportError: No module named slacker"
    Is there a plan to release a new version? There is "thread" functionality in Slack existing for some time now. I can see it is added in github a while ago, but pypi still contains old code without threads
    Oktay Sancak
    Hey @girt-s. Sorry for the inactivity, I was busy with work. A couple of days ago we released v0.9.50.
    Brian Short

    Followed the examples and was able to post messages and play with channels and groups, however I'm having trouble with profiles and user modifications.

    Does anyone have a sample of how to pass slack.users.profile.get correctly? Having trouble with the arguments and continually get "user_not_found". And yes, i have the read.profile scope already tied to the python script. =]

    Any help is appreciated. Looking to leverage this tool to iterate user modifications and migrate users to a new email \ domain.

    Trevor Welch
    Is Slacker only intended for use with the Legacy API tokens / test tokens?
    Is there a way to recieve commands?