Skip to content

Add v3.3 documents #939#943

Merged
seratch merged 7 commits intoslackapi:mainfrom
seratch:issue-939-3.3-docs
Feb 5, 2021
Merged

Add v3.3 documents #939#943
seratch merged 7 commits intoslackapi:mainfrom
seratch:issue-939-3.3-docs

Conversation

@seratch
Copy link
Contributor

@seratch seratch commented Feb 4, 2021

Summary

This pull request fixes #939

Category (place an x in each of the [ ])

  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.models (UI component builders)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.rtm.RTMClient (RTM client)
  • slack_sdk.signature (Request Signature Verifier)
  • /docs-src (Documents, have you run ./docs.sh?)
  • /docs-src-v2 (Documents, have you run ./docs-v2.sh?)
  • /tutorial (PythOnBoardingBot tutorial)
  • tests/integration_tests (Automated tests for this library)

Requirements (place an x in each [ ])

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run python setup.py validate after making the changes.

@seratch seratch added docs M-T: Documentation work only Version: 3x labels Feb 4, 2021
@seratch seratch added this to the 3.3.0 milestone Feb 4, 2021
@seratch seratch self-assigned this Feb 4, 2021
@codecov
Copy link

codecov bot commented Feb 4, 2021

Codecov Report

Merging #943 (1683017) into main (017dff9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #943   +/-   ##
=======================================
  Coverage   85.32%   85.32%           
=======================================
  Files          67       67           
  Lines        5902     5902           
=======================================
  Hits         5036     5036           
  Misses        866      866           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 017dff9...7caaf02. Read the comment docs.


An OAuth token with `the admin scope <https://api.slack.com/scopes/admin>`_ is required to access this API.

Probably, you are going to use the ``/logs`` endpoint. To learn available parameters for the endpoint, check `the guide <https://api.slack.com/admins/audit-logs#how_to_call_the_audit_logs_api>`_. Also, you can check the data structure of ``api_response.typed_body`` `here <https://github.com/slackapi/python-slack-sdk/blob/main/slack_sdk/audit_logs/v1/logs.py>`_.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Probably, you are going to use the ``/logs`` endpoint. To learn available parameters for the endpoint, check `the guide <https://api.slack.com/admins/audit-logs#how_to_call_the_audit_logs_api>`_. Also, you can check the data structure of ``api_response.typed_body`` `here <https://github.com/slackapi/python-slack-sdk/blob/main/slack_sdk/audit_logs/v1/logs.py>`_.
You will likely use the ``/logs`` endpoint to ???.
To learn about the available parameters for this endpoint, check out `this guide <https://api.slack.com/admins/audit-logs#how_to_call_the_audit_logs_api>`_. You can also learn more about the data structure of ``api_response.typed_body`` `here <https://github.com/slackapi/python-slack-sdk/blob/main/slack_sdk/audit_logs/v1/logs.py>`_.

The ??? should be replaced with a concise why, IMO. It's not clear to me as a reader why I'd be using /logs and this is a good place to underscore its purpose.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I don't think we need to mention detailed reasons here. Audit Logs API users should already know what it is. Also, I would like to avoid repeating duplicated topics with the API document.

| RTM API | Listen for incoming messages and a limited set of events happening in Slack, using WebSocket. | ``slack_sdk.rtm``` |
| Audit Logs API | Receive audit logs API data. | ``slack_sdk.audit_logs`` |
+--------------------------------+-----------------------------------------------------------------------------------------------+------------------------------------+
| SCIM API | Utilize the SCIM APIs for provisioning and managing user accounts and groups | ``slack_sdk.scim`` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| SCIM API | Utilize the SCIM APIs for provisioning and managing user accounts and groups | ``slack_sdk.scim`` |
| SCIM API | Utilize the SCIM APIs for provisioning and managing user accounts and groups. | ``slack_sdk.scim`` |

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will modify manually later (rst requires consistent indent in a table)

Copy link
Contributor Author

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your review @misscoded !


An OAuth token with `the admin scope <https://api.slack.com/scopes/admin>`_ is required to access this API.

Probably, you are going to use the ``/logs`` endpoint. To learn available parameters for the endpoint, check `the guide <https://api.slack.com/admins/audit-logs#how_to_call_the_audit_logs_api>`_. Also, you can check the data structure of ``api_response.typed_body`` `here <https://github.com/slackapi/python-slack-sdk/blob/main/slack_sdk/audit_logs/v1/logs.py>`_.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I don't think we need to mention detailed reasons here. Audit Logs API users should already know what it is. Also, I would like to avoid repeating duplicated topics with the API document.

| RTM API | Listen for incoming messages and a limited set of events happening in Slack, using WebSocket. | ``slack_sdk.rtm``` |
| Audit Logs API | Receive audit logs API data. | ``slack_sdk.audit_logs`` |
+--------------------------------+-----------------------------------------------------------------------------------------------+------------------------------------+
| SCIM API | Utilize the SCIM APIs for provisioning and managing user accounts and groups | ``slack_sdk.scim`` |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will modify manually later (rst requires consistent indent in a table)

@seratch seratch force-pushed the issue-939-3.3-docs branch from 1683017 to fb73c37 Compare February 4, 2021 06:00
Copy link
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌


**Connecting to the RTM API**

Note that the import here is not ``from slack_sdk.rtm import RTMClient`` but ``from slack_sdk.rtm.v2 import RTMClient`` (``v2`` is added in the latter one). If you would like to use the legacy version of the client, go to the next section.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very helpful comment to add to the docs!

Co-authored-by: Michael Brooks <michael@michaelbrooks.ca>
@seratch seratch merged commit a52701f into slackapi:main Feb 5, 2021
@seratch seratch deleted the issue-939-3.3-docs branch February 5, 2021 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs M-T: Documentation work only Version: 3x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v3.3 document updates

4 participants