Git Product home page Git Product logo

Comments (38)

dKab avatar dKab commented on July 23, 2024 3

Works for me.

from slackin.

rauchg avatar rauchg commented on July 23, 2024 1

It still works with user tokens. But not sure if we're violating their TOS.

from slackin.

masterkrang avatar masterkrang commented on July 23, 2024 1

is this still an issue? if it is, why is it closed? thanks!

from slackin.

dKab avatar dKab commented on July 23, 2024 1

So is this project usefull for free plan teams or it won't work?

from slackin.

dherbst avatar dherbst commented on July 23, 2024

Check the error from users.admin.invite you probably see {error=paid_only, ok=false} It looks like they recently made a change so you have to have a paid account to use this api function. Not sure if it works for a bot account if you upgrade your script to a bot.

from slackin.

bdougie avatar bdougie commented on July 23, 2024

😞 Thats unfortunate that they changed it. Are you referring to inviting bots or using a bot to invite.

I also dont see an error.

from slackin.

dherbst avatar dherbst commented on July 23, 2024

Bot users - https://api.slack.com/bot-users

from slackin.

rauchg avatar rauchg commented on July 23, 2024

I fixed this for socket.io by reconfiguring it to use my personal token.

from slackin.

rauchg avatar rauchg commented on July 23, 2024

(probably not the best idea? I'm gonna email Slack)

from slackin.

xeodou avatar xeodou commented on July 23, 2024

I have made a change here #14 , and it works for me. The restricted property is for paid user only.

from slackin.

xeodou avatar xeodou commented on July 23, 2024

#14 works very last few days. And doesn't work this morning. Maybe slack block this from free groups.

from slackin.

bdougie avatar bdougie commented on July 23, 2024

FYI levels.io confirmed on twitter that slack killed that portion of the api. Which confirms what @dherbst mentioned in the first comment

from slackin.

xeodou avatar xeodou commented on July 23, 2024

@brianllamar I have retweet , and i'm very sad slack.com blocked this api.

from slackin.

llimllib avatar llimllib commented on July 23, 2024

Here's a very simple test script:

#!/usr/bin/env python
import requests

API_BASE_URL = 'https://slack.com/api/{method}?token={token}'
TOKEN = '<your_token>'
GENERAL_ROOM_ID = "<your_room_id>"

def call(method, **params):
    url = API_BASE_URL.format(method=method, token=TOKEN)
    return requests.get(url, params=params)

if __name__ == "__main__":
    res = call("users.admin.invite", email="<your_email>", set_active="true",
               channels=GENERAL_ROOM_ID, first_name="Bob")
    print(res)
    print(res.json())

Which prints:

$ python invite.py
<Response [200]>
{u'ok': False, u'error': u'paid_only'}

^^^ that's what I get with a user token, btw, not a bot token.

from slackin.

makenai avatar makenai commented on July 23, 2024

This started working for me again today.

from slackin.

rauchg avatar rauchg commented on July 23, 2024

woohoo! Thanks for letting everyone know. Is this with an org token?

from slackin.

bmann avatar bmann commented on July 23, 2024

Same. Didn't change anything, still using the org token. Did tweet at Slack a while back pointing them at this :)

from slackin.

makenai avatar makenai commented on July 23, 2024

Yup, org token. I was going to hack it up to just dump an invite request in
the channel on failure, but I wasn’t getting the expected failure.

On Wed, Feb 18, 2015 at 4:05 PM, Guillermo Rauch [email protected]
wrote:

woohoo! Thanks for letting everyone know. Is this with an org token?

β€”
Reply to this email directly or view it on GitHub
#15 (comment).

from slackin.

rauchg avatar rauchg commented on July 23, 2024

wow-hoo. Thanks guys for reporting. I'll revert my README.md change.

from slackin.

llimllib avatar llimllib commented on July 23, 2024

Slackin has started working for me! Sweet.

(Although, oddly, my test script still returns paid users only)

from slackin.

nealrs avatar nealrs commented on July 23, 2024

Best news ever.
On Feb 18, 2015 7:16 PM, "Guillermo Rauch" [email protected] wrote:

Closed #15 #15.

β€”
Reply to this email directly or view it on GitHub
#15 (comment).

from slackin.

meatballhat avatar meatballhat commented on July 23, 2024

And now it's not working again? πŸ˜ƒ Anybody else? API reports success. No invite created.

from slackin.

llimllib avatar llimllib commented on July 23, 2024

Somebody used it succesfully to join my group an hour ago

from slackin.

meatballhat avatar meatballhat commented on July 23, 2024

@llimllib I'm at a loss. The org is paid. API reports success. I don't want to clutter this issue, especially if it's user error (likely).

from slackin.

rauchg avatar rauchg commented on July 23, 2024

Works great for me.

from slackin.

meatballhat avatar meatballhat commented on July 23, 2024

@rauchg Thanks so much for this project! I don't mean to sound ungrateful.

from slackin.

rauchg avatar rauchg commented on July 23, 2024

No problem at all. In fact there's a chance that there's still something
wrong with slackin… just pointing out it works for me.

What do the logs say ?
On Fri, Mar 6, 2015 at 9:02 AM Dan Buch [email protected] wrote:

@rauchg https://github.com/rauchg Thanks so much for this project! I
don't mean to sound ungrateful.

β€”
Reply to this email directly or view it on GitHub
#15 (comment).

from slackin.

meatballhat avatar meatballhat commented on July 23, 2024

@rauchg more details:

  • Deployed to Heroku via the button (at release 0.2.9 fde0740)
  • Applied this patch to keep it from crashing per #11
  • Added logging to lib/slack-invite.js a la this patch
  • The logs indicate success, afaict:
2015-03-06T16:37:44.005011+00:00 heroku[router]: at=info method=POST path="/invite" host=travis-lounge-signup.herokuapp.com request_id=9e6dee46-77c3-4776-aa9a-bea4d61b1f30 fwd="71.182.205.38" dyno=web.1 connect=1ms service=78ms status=200 bytes=131
2015-03-06T16:37:44.005555+00:00 app[web.1]: Invite response: 200

An invite is not created under the given org, and no email is sent.
I can add more logging or whatever you think is appropriate πŸ˜ƒ

from slackin.

rauchg avatar rauchg commented on July 23, 2024

Can you please test 0.3.0 to see if it fixes the first two points ?
Have you checked spam :D ?

from slackin.

meatballhat avatar meatballhat commented on July 23, 2024

@rauchg Yep nothing in spam πŸ˜ƒ I'm trying to get 0.3.0 happy on heroku. Are you using a custom bulidpack or some such to get the ./node dir built? Committing the generated files? Other?

from slackin.

meatballhat avatar meatballhat commented on July 23, 2024

I hacked the Procfile like so: https://gist.github.com/meatballhat/05fd71dbd2c1a791093a#file-procfile-hack-patch

Server runs now, but no change in invitation behavior πŸ˜•

2015-03-06T18:36:45.285201+00:00 heroku[router]: at=info method=POST path="/invite" host=travis-lounge-signup.herokuapp.com request_id=8a1228bc-26c7-4daf-9a16-e887196e109a fwd="71.182.205.38" dyno=web.1 connect=1ms service=91ms status=200 bytes=131

from slackin.

meatballhat avatar meatballhat commented on July 23, 2024

I made a few more hacks to have the request made the same way as https://github.com/tech404/inviter/blob/81dd14014fb7657339dd1aa87d97e09dd4f82fd9/lib/slack/client.rb#L15-L21 and everything appears to be working for me. I'll gladly work up a PR if there's interest πŸ˜ƒ

from slackin.

rauchg avatar rauchg commented on July 23, 2024

Please! Thanks for following-up

from slackin.

SachaG avatar SachaG commented on July 23, 2024

I've tested Slackin both locally on and Heroku and in either case I'm not receiving any invites. I'm not sure if this is the same issue, the Slackin logs don't say anything at all besides the fetching/online X logs.

from slackin.

SachaG avatar SachaG commented on July 23, 2024

Actually my bad, it does work locally, just takes ~10 minutes for the invite to arrive. Still doesn't work on Heroku as far as I can tell though.

from slackin.

mottosso avatar mottosso commented on July 23, 2024

I got to this issue from here and got my first invite without a hitch.

from slackin.

elimisteve avatar elimisteve commented on July 23, 2024

@dKab Get an answer, or try it for yourself?

from slackin.

elimisteve avatar elimisteve commented on July 23, 2024

@masterkrang Get an answer, or try it for yourself?

from slackin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.