Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant use apps.manifest methods #1381

Closed
kidbrax opened this issue Jun 22, 2023 · 4 comments
Closed

cant use apps.manifest methods #1381

kidbrax opened this issue Jun 22, 2023 · 4 comments
Labels
question M-T: User needs support to use the project Version: 3x web-client

Comments

@kidbrax
Copy link

kidbrax commented Jun 22, 2023

I would like to be able to use the apps.manifest methods vis the slack-sdk

I see that they were added via #1119

But when trying to use the library, those methods don't seem to be available.

I also don't see them listed at https://slack.dev/python-slack-sdk/api-docs/slack_sdk/web/client.html

So if I run:

from slack_sdk import WebClient

client = WebClient()
print(dir(client))

I get this list (truncated to only show ones with apps in it). Notice there are no manifest methods.

[
    ...
    'admin_apps_approve',
    'admin_apps_approved_list',
    'admin_apps_clearResolution',
    'admin_apps_requests_cancel',
    'admin_apps_requests_list',
    'admin_apps_restrict',
    'admin_apps_restricted_list',
    'admin_apps_uninstall',
    'apps_connections_open',
    'apps_event_authorizations_list',
    'apps_uninstall',
    ...
]

So what am I missing? Or is there a code example showing me how to use the manifest methods?

@WilliamBergamin
Copy link
Contributor

Hi @kidbrax thanks for writing in 💯

#1119 is an issue that asked for these endpoints, it is still open since #1123 merged the changes into slackapi:feat-app-manifests

@seratch is this a feature we want to add to main?

@seratch
Copy link
Member

seratch commented Jun 22, 2023

@WilliamBergamin No, it isn't. The way to generate and manage app configuration tokens is not yet supported in a developer friendly manner. So, I don't think we are ready to encourage developers to leverage it in a large scale.

@kidbrax If you're already familiar with the app configuration token (if not, probably this is not yet the right timing for you to try these APIs), you can perform the API calls using the api_call method. We may add apps_manifest_* methods to WebClient in the future, but we cannot tell when they will be available.

@seratch seratch added question M-T: User needs support to use the project web-client Version: 3x and removed untriaged labels Jun 22, 2023
@kidbrax
Copy link
Author

kidbrax commented Jun 23, 2023

Thanks, I'll give api_call a try.

FYI, I'm looking for the best way to automate updating my app's manifest if there is a alternative/recommended method.

@seratch
Copy link
Member

seratch commented Jul 5, 2023

Thanks for your reply. To automate the whole development process, the new platform feature w/ Den is the best way to go so far: https://api.slack.com/automation If you're interested in it, it may be worth trying it out too. Let us close this issue now.

@seratch seratch closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question M-T: User needs support to use the project Version: 3x web-client
Projects
None yet
Development

No branches or pull requests

3 participants