Comments (3)
It depends how your channels
variable is later combined into the http query to Slack. In general you need to send the list of channel IDs as http query parameter.
Example:
https://slack.com/api/users.admin.invite?token=TOKEN&email=abc@xyz,com&channels=C1234567890,G12345678
from slackapidoc.
i'm currently sending like this.
sc = SlackClient("xoxp-3434545-565656-2342342-2gb5h6y66")
def invite_user(name,email):
resp = sc.api_call(
"users.admin.invite",
first_name=name,
email=email,
channels='C4GHT66',
resend=True,
validate=True,
)
print(resp)
is this correct?
from slackapidoc.
I don't know much about Python or the slack_client package, but it looks ok. Do you still get the error?
from slackapidoc.
Related Issues (20)
- Failed to retrieve attachments from slack channel using Java HOT 1
- [question] missing_scope error in chat.command HOT 1
- unknown_command HOT 1
- commands.list to get available slash commands HOT 2
- https://github.com/ErikKalkoken/slackApiDoc/blob/master/users.admin.setInactive.md HOT 3
- Missing error in users.admin.invite HOT 1
- Missing error - expiration_requires_restricted HOT 2
- Add chapter on how to obtain the undocumented "client" scope HOT 2
- Guest Parameter not working HOT 3
- Another missing error in users.admin.invite HOT 3
- conversations.convertToPrivate Method HOT 3
- missing_scope HOT 4
- Cant find user throught API.
- is users.admin.invite still valid? HOT 1
- slack.chat.command not working HOT 2
- How to use chat.command in a slack app using legacy token HOT 1
- Way to invite multi-channel guest to a new channel
- use users.admin.setRestricted or setUltraRestricted like users.admin.invite HOT 1
- Removal of users.admin.invite HOT 4
- any alternative now that legacy tokens no longer work? HOT 3
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 slackapidoc.