You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Convert README to reStructuredText and Revise #15
Initial README.rst
* Update README.rst #15
Correct formatting issues and simplify text.
* Update README.rst #15
Add examples and documentation sections and misc edits.
* Switch package to use new README.rst #15
Delete old README.md and point setup.py to new README.rst
* README.rst Update Sub-Title
* Update README.rst
* Update README.rst
* Update README
* Initial Sphinx setup
Create new ‘docs’ directory. Run sphinx-quickstart in ‘docs’
* Update .gitignore
Begin organizing .gitignore to identify used and unused entries.
* Add README.rst to MANIFEST.in
* Initial User-API documentation
Create initial index.rst and the the User-API documentation.
* Add copyright references to docs
* Rename helper.py to utils.py
Rename and refactor helper.py to utils.py to make naming more
consistent with established practices.
* Make xxxAPI.session private; Update docstrings for auto-documentation
The session attribute in an API object should not be ‘public’, and
therefore should be prefixed by an ‘_’.
Update API classes’ method docstrings to eliminate warnings and enable
proper auto-documentation by Sphinx autodoc extension.
* Change Versioneer version numbering style
The ‘pep440-post’ style better reflects post-release commits, and
enables building of installable dev-builds with sortable version
numbers.
Additionally, going forward, the package release tags will incorporate
a release status flag (a - alpha, b - beta, rc - release candidate) in
the format: major.minor[flag]micro
* Document __init__.py
Update docstrings and User API Doc for the main package __init__.py
module.
* Update copyright in docs/conf.py
This copyright reference shows up in the footers of the HTML docs
generated by Sphinx.
* Docs - Update index.rst
* Initial Quickstart
The Quickstart guide / tutorial is now finished!!!
* Fix Documentation Bug #22
Report and needed corrections provided by @DJF3
-Thank you!
* Finalize the Docs for Initial Release
Sure, working with the Cisco Spark APIs is easy (see `developer.ciscospark.com`_). They are *RESTful*, *naturally structured*, require only a *simple Access Token for authentication*, and *the data is elegantly represented in intuitive JSON*. What could be easier?
14
+
**Important update!**
15
+
Complete user documentation is now available on
16
+
`ciscosparkapi.readthedocs.io`_ !
17
+
18
+
Please use the issues_ page to report any issues or feedback regarding the
19
+
documentation.
20
+
21
+
22
+
Introduction
23
+
------------
24
+
25
+
Sure, working with the Cisco Spark APIs is easy (see `developer.ciscospark.com`_). They are RESTful, naturally structured, require only a simple Access Token for authentication, and the data is elegantly represented in intuitive JSON. What could be easier?
13
26
14
27
.. code-block:: python
15
28
@@ -28,14 +41,14 @@ Sure, working with the Cisco Spark APIs is easy (see `developer.ciscospark.com`_
28
41
if response.status_code ==200:
29
42
# Great your message was posted!
30
43
message_id = response.json['id']
31
-
message_text = response.json['id']
44
+
message_text = response.json['text']
32
45
print("New message created, with ID:", message_id)
33
46
print(message_text)
34
47
else:
35
48
# Oops something went wrong... Better do something about it.
36
49
print(response.status_code, response.text)
37
50
38
-
Like I said, *EASY*. However, in use, the code can be rather repetitive...
51
+
Like I said, EASY. However, in use, the code can become rather repetitive...
39
52
40
53
- You have to setup the environment every time
41
54
- You have to remember URLs and request arguments (or reference the docs)
@@ -93,7 +106,8 @@ All of this, combined, lets you do powerful things simply:
That's more than six Spark API calls in less than 23 lines of script code (with comments)!
99
113
...and likely more than that depending on how many rooms are returned by Spark (remember pagination is handled for you automatically)
@@ -138,6 +152,10 @@ Have a good example script you would like to share? Please feel free to contrib
138
152
Documentation
139
153
-------------
140
154
155
+
**Complete user documentation is now available!**
156
+
157
+
Read the Docs at `ciscosparkapi.readthedocs.io`_ !!
158
+
141
159
All of the user-facing methods have complete docstrings. You can view the docstrings for any method either from the `source files`_, or by using the Python ``help()`` function.
142
160
143
161
.. code-block:: python
@@ -160,8 +178,6 @@ All of the user-facing methods have complete docstrings. You can view the docst
160
178
private 1:1 message.
161
179
...
162
180
163
-
Full standalone online documentation is coming soon (it's on the backlog!).
164
-
165
181
166
182
Contribution
167
183
------------
@@ -193,6 +209,7 @@ Interested in contributing code?
0 commit comments