Skip to content

Commit

Permalink
Added login and authentication-provider to Class Reference. Tweaked G…
Browse files Browse the repository at this point in the history
…etting Started section.
  • Loading branch information
Thetwam committed Jun 16, 2017
1 parent 76508d0 commit 3600756
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/class-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Class Reference
account-ref
appointment-group-ref
assignment-ref
authentication-provider-ref
avatar-ref
bookmark-ref
calendar-event-ref
Expand All @@ -16,6 +17,7 @@ Class Reference
enrollment-term-ref
external-tool-ref
group-ref
login-ref
module-ref
page-ref
progress-ref
Expand Down
15 changes: 11 additions & 4 deletions docs/getting-started.rst
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
Getting Started with canvasapi
Getting Started with CanvasAPI
===============================

Installing canvasapi
Installing CanvasAPI
---------------------

You can install with pip::
You can install CanvasAPI with pip::

pip install canvasapi

Usage
-----

Before using canvasapi, you'll need to instantiate a new Canvas object:
Before using CanvasAPI, you'll need to instantiate a new Canvas object:

.. code:: python
# Import the Canvas class
from canvasapi import Canvas
# Canvas API URL
API_URL = "https://example.com/api/v1/"
# Canvas API key
API_KEY = "p@$$w0rd"
# Initialize a new Canvas object
canvas = Canvas(API_URL, API_KEY)
You can now use :code:`canvas` to make API calls.
Expand Down
4 changes: 2 additions & 2 deletions docs/login-ref.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=====
Login
======
=====

.. autoclass:: canvasapi.login.Login
:members:
:members:

0 comments on commit 3600756

Please sign in to comment.