Conversation
Codecov Report
@@ 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.
|
docs-src/audit-logs/index.rst
Outdated
|
|
||
| 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>`_. |
There was a problem hiding this comment.
| 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.
There was a problem hiding this comment.
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.
docs-src/index.rst
Outdated
| | 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`` | |
There was a problem hiding this comment.
| | 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`` | |
There was a problem hiding this comment.
Will modify manually later (rst requires consistent indent in a table)
seratch
left a comment
There was a problem hiding this comment.
Thanks a lot for your review @misscoded !
docs-src/audit-logs/index.rst
Outdated
|
|
||
| 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>`_. |
There was a problem hiding this comment.
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.
docs-src/index.rst
Outdated
| | 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`` | |
There was a problem hiding this comment.
Will modify manually later (rst requires consistent indent in a table)
Co-authored-by: Alissa Renz <alissa.renz@gmail.com>
Co-authored-by: Alissa Renz <alissa.renz@gmail.com>
1683017 to
fb73c37
Compare
|
|
||
| **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. |
There was a problem hiding this comment.
Very helpful comment to add to the docs!
Co-authored-by: Michael Brooks <michael@michaelbrooks.ca>
Summary
This pull request fixes #939
Category (place an
xin each of the[ ])/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
xin each[ ])python setup.py validateafter making the changes.