Comments (38)
Works for me.
from slackin.
It still works with user tokens. But not sure if we're violating their TOS.
from slackin.
is this still an issue? if it is, why is it closed? thanks!
from slackin.
So is this project usefull for free plan teams or it won't work?
from slackin.
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.
π 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.
Bot users - https://api.slack.com/bot-users
from slackin.
I fixed this for socket.io by reconfiguring it to use my personal token.
from slackin.
(probably not the best idea? I'm gonna email Slack)
from slackin.
I have made a change here #14 , and it works for me. The restricted property is for paid user only.
from slackin.
#14 works very last few days. And doesn't work this morning. Maybe slack block this from free groups.
from slackin.
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.
@brianllamar I have retweet , and i'm very sad slack.com blocked this api.
from slackin.
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.
This started working for me again today.
from slackin.
woohoo! Thanks for letting everyone know. Is this with an org token?
from slackin.
Same. Didn't change anything, still using the org token. Did tweet at Slack a while back pointing them at this :)
from slackin.
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.
wow-hoo. Thanks guys for reporting. I'll revert my README.md
change.
from slackin.
Slackin has started working for me! Sweet.
(Although, oddly, my test script still returns paid users only)
from slackin.
Best news ever.
On Feb 18, 2015 7:16 PM, "Guillermo Rauch" [email protected] wrote:
β
Reply to this email directly or view it on GitHub
#15 (comment).
from slackin.
And now it's not working again? π Anybody else? API reports success. No invite created.
from slackin.
Somebody used it succesfully to join my group an hour ago
from slackin.
@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.
Works great for me.
from slackin.
@rauchg Thanks so much for this project! I don't mean to sound ungrateful.
from slackin.
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.
@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.
Can you please test 0.3.0
to see if it fixes the first two points ?
Have you checked spam :D ?
from slackin.
@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.
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.
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.
Please! Thanks for following-up
from slackin.
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.
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.
I got to this issue from here and got my first invite without a hitch.
from slackin.
@dKab Get an answer, or try it for yourself?
from slackin.
@masterkrang Get an answer, or try it for yourself?
from slackin.
Related Issues (20)
- cdn.socket.io/socket.io-1.4.4.js down
- Official docker image
- heroku deployment fails HOT 1
- Too rapid polling/querying HOT 3
- Multi-channel guest support? HOT 1
- Embedding in an iFrame forces scroll on parent page because focus is set HOT 1
- Consider adding Privacy Pass as alternative to reCAPTCHA
- now deployment fails - no GitHub deploy, and no query for info HOT 11
- Heroku Deploy gives Template does Not Exist Error, but the Template worked fine on my Local Server HOT 9
- "channel not found" if channel is shared
- IBM Cloud Slackin Deployment Instructions HOT 1
- Other
- incompatibility beetwen node12 and and gulp3
- Documentation? HOT 1
- Deployed to heroku ok but application crashes on launch HOT 4
- How to get a legacy token for Slackin HOT 2
- is it possible to use slackin now ? (legacy tokens are not supported by Slack anymore) HOT 22
- [Critical] Slackin will break in February 2021 HOT 8
- Ffffv
- Noice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slackin.