Skip to content

Commit

Permalink
Merge pull request #128 from ucfopen/develop
Browse files Browse the repository at this point in the history
Release v0.8.0
  • Loading branch information
Jesse McBride authored Jan 4, 2018
2 parents db3c377 + 21bd8f6 commit 2c4016c
Show file tree
Hide file tree
Showing 81 changed files with 6,279 additions and 1,045 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
/env/
/htmlcov/
\#*#
.vscode/settings.json
2 changes: 2 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ Patches and Suggestions
- Alyssa Davis [@allygator](https://github.com/allygator)
- Anthony Rodriguez [@AnthonyRodriguez726](https://github.com/AnthonyRodriguez726)
- Ben Liblit [@liblit](https://github.com/liblit)
- Daniel Brinkman [@DanBrink91](https://github.com/DanBrink91)
- Daniel Grobani [@dgrobani](https://github.com/dgrobani)
- Devin Singh [@devints47](https://github.com/devints47)
- Elise Heron [@thedarkestknight](https://github.com/thedarkestknight)
- Ian Turgeon [@iturgeon](https://github.com/iturgeon)
- [@jackrsteiner](https://github.com/jackrsteiner)
- Jonathan Guilbe [@JonGuilbe](https://github.com/JonGuilbe)
- John Raible [@rebelaide](https://github.com/rebelaide)
- Nathan Dabu [@nathaned](https://github.com/nathaned)
- Philip Carter [@phillyc](https://github.com/phillyc)
Expand Down
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Change Log

## [0.8.0] - 2018-01-04

### New Endpoint Coverage

- Account
- Delete a sub account
- Grading Standards (Thanks, [@JonGuilbe](https://github.com/JonGuilbe))
- Notification Preferences (Thanks, [@a-goetz](https://github.com/a-goetz))
- Update a preference
- Update preferences by category
- Update multiple preferences
- Outcomes (Thanks, [@a-goetz](https://github.com/a-goetz))
- Quiz Question Groups (Thanks, [@JonGuilbe](https://github.com/JonGuilbe))
- Rubric (Thanks, [@sigurdurb](https://github.com/sigurdurb))

### General

- Added support for other iterables as parameter values. (Thanks, [@liblit](https://github.com/liblit))
- For many endpoints that accept an "object id", either a CanvasAPI Object or integer ID can now be passed. (Thanks, [@a-goetz](https://github.com/a-goetz))
- Added a requester cache that rememebers the last 5 requests to Canvas. It can be accessed as the attribute `_cache` of the `requester object`. (e.g. `course._requester._cache`)
- Files can now be downloaded directly from the `File` object in one of two ways: (Thanks, [@DanBrink91](https://github.com/DanBrink91))
1. `get_contents` will directly return the contents of the file. (e.g. `file.get_contents()`)
2. `download` will download the file and save it to the provided path. (e.g. `file.download('example.txt')`)
- Moved several methods exclusive to the API Key owner's user from the `User` class to a new class called `CurrentUser`. There is a new method in the `Canvas` class called `get_current_user` to access this object. (e.g. `canvas.get_current_user()`) (Thanks, [@DanBrink91](https://github.com/DanBrink91))

### Bugfixes

- Fixed a bug where creating conversations wouldn't work until the user iterated over the response.
- Lots of formatting fixes and spelling corrections.

### Deprecation Warning

Including `/api/v1/` at the end of the API URL passed to a new `Canvas` object is now deprecated. Users should now only pass the root URL into the `Canvas` object (e.g. `"https://example.com/api/v1/"` should now be `"https://example.com"`).

For now, users including `/api/v1/` will see a `DeprecationWarning`, but things will otherwise operate normally. The ability to continue using `/api/v1/` will be removed in a future release.

## [0.7.0] - 2017-10-04

Thanks to all the contributors who helped with this release: [@stephenwoosley](https://github.com/stephenwoosley), [@jackrsteiner](https://github.com/jackrsteiner), and [@allygator](https://github.com/allygator). You guys are awesome!
Expand Down Expand Up @@ -147,6 +183,7 @@ Huge thanks to [@liblit](https://github.com/liblit) for lots of issues, suggesti
- Fixed some incorrectly defined parameters
- Fixed an issue where tests would fail due to an improperly configured requires block

[0.8.0]: https://github.com/ucfopen/canvasapi/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/ucfopen/canvasapi/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/ucfopen/canvasapi/compare/v0.5.1...v0.6.0
[0.5.1]: https://github.com/ucfopen/canvasapi/compare/v0.5.0...v0.5.1
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The first thing to do is instantiate a new `Canvas` object by providing your Can
from canvasapi import Canvas

# Canvas API URL
API_URL = "https://example.com/api/v1/"
API_URL = "https://example.com"
# Canvas API key
API_KEY = "p@$$w0rd"

Expand Down Expand Up @@ -92,8 +92,8 @@ Individual users can be pulled from the API as well:
# Retrieve a list of courses the user is enrolled in
>>> courses = user.get_courses()

# Grab a different user by their SIS ID
>>> sis_user = canvas.get_user('some_user', 'sis_login_id')
# Grab a different user by their login ID
>>> login_id_user = canvas.get_user('some_user', 'login_id')
```

#### Paginated Lists
Expand Down
2 changes: 1 addition & 1 deletion canvasapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

__all__ = ["Canvas"]

__version__ = '0.7.0'
__version__ = '0.8.0'
Loading

0 comments on commit 2c4016c

Please sign in to comment.