Mads Marquart
dd5e1024db
Bump version: 1.7.1 → 1.7.2
v1.7.2
2019-07-04 00:34:11 +02:00
Mads Marquart
31d13f8fae
Fix #441 , introduced in bc551a6
2019-07-04 00:33:08 +02:00
Mads Marquart
19b4d929e2
Add bump2version (to avoid mistakes like pushing wrong tag names)
2019-07-04 00:25:05 +02:00
Mads Marquart
27e5d1baae
Bump version: 1.7.0 -> 1.7.1
v1.7.1
2019-07-03 23:59:45 +02:00
Mads Marquart
3a0b9867bc
Merge pull request #440 from carpedm20/fix-docs
...
Fix and clean up documentation
2019-07-03 23:55:16 +02:00
Mads Marquart
a9c681818a
Enable strict/explicit code highlighting
2019-07-03 23:42:32 +02:00
Mads Marquart
d279c96dd5
Make docs parsing "nitpicky"
2019-07-03 23:18:02 +02:00
Mads Marquart
d30589d1fa
Add rst_prolog to docs/conf.py
2019-07-03 17:46:42 +02:00
Mads Marquart
47c744e5e2
Fix reST any roles/references
2019-07-03 17:35:38 +02:00
Mads Marquart
708869ea93
Include missing models in auto-generated API docs
2019-07-03 17:19:11 +02:00
Mads Marquart
8b47bf3e5d
Add instructions for installing with pip > 19.0
2019-07-03 17:16:25 +02:00
Mads Marquart
a2930b4386
Deprecate the doc url at /en/master/ in favor of /en/latest/
2019-07-03 17:15:21 +02:00
Mads Marquart
2dc93ed18b
Add .readthedocs.yml
2019-07-03 15:18:11 +02:00
Mads Marquart
2bd08c8254
Update Sphinx to version 2.0
2019-07-03 14:22:09 +02:00
Mads Marquart
81278ed553
Remove doc configuration entries that are set to the default
2019-07-03 14:21:40 +02:00
Mads Marquart
589cec66e1
Refactor doc files to match format generated by sphinx-quickstart
2019-07-03 14:21:25 +02:00
Mads Marquart
281a20f56a
Fix dependency pinning
2019-07-03 12:55:13 +02:00
Mads Marquart
ae8d205dbe
Loosely pin dependencies
2019-07-03 11:17:53 +02:00
Mads Marquart
1e6222f46a
Optimize BeautifulSoup input field parsing
2019-07-03 11:09:41 +02:00
Mads Marquart
4f2a24848e
Use default black "exclude" string
2019-07-03 11:05:16 +02:00
Mads Marquart
e670c80971
Merge pull request #439 from carpedm20/graphql-cleanup
...
Clean up GraphQL helpers
2019-07-02 19:52:16 +02:00
Mads Marquart
ba7572eddd
Merge branch 'master' into graphql-cleanup
2019-07-02 19:17:53 +02:00
Mads Marquart
a5c6fac976
Merge pull request #438 from carpedm20/explicit-error-handling
...
Add more explicit error handling and improve error handling in general
2019-07-02 18:57:47 +02:00
Mads Marquart
1293814c3a
Remove GraphQL object in favor of helper functions
2019-07-02 18:26:35 +02:00
Mads Marquart
1b2aeb01ce
Move GraphQL constants into the module
2019-07-02 18:23:29 +02:00
Mads Marquart
cab8abd1a0
Properly namespace GraphQL utility functions
2019-07-02 18:21:00 +02:00
Mads Marquart
edda2386fb
Merge pull request #436 from carpedm20/clean-up-requests
...
Normalize a lot of request parsing
2019-07-02 18:08:19 +02:00
Mads Marquart
b0ad5f6097
Merge pull request #435 from carpedm20/state-refactor
...
Move state handling into new State model
2019-07-02 18:04:10 +02:00
Mads Marquart
6862bd7be3
Handle errors in payload
explicitly
2019-07-02 17:52:10 +02:00
Mads Marquart
bc551a63c2
Improve GraphQL error handling
2019-07-02 17:50:33 +02:00
Mads Marquart
c9f11b924d
Add more explicit error handling
2019-07-02 17:32:35 +02:00
Mads Marquart
3236ea5b97
Improve state refresh handler
2019-07-02 17:23:42 +02:00
Mads Marquart
794696d327
Improve payload error handling
2019-07-02 17:23:42 +02:00
Mads Marquart
7345de149a
Improve HTTP error handling
2019-07-02 17:23:42 +02:00
Mads Marquart
4fdf0bbc57
Remove JSON conversion from _util.check_request
2019-07-02 17:23:42 +02:00
Mads Marquart
d17f741f97
Refactor _util.check_json
2019-07-02 17:23:42 +02:00
Mads Marquart
4a898b3ff5
Use Client._payload_post helper where relevant
2019-07-02 15:52:02 +02:00
Mads Marquart
7f84ca8d0c
Add Client._payload_post helper
2019-07-02 15:50:58 +02:00
Mads Marquart
c3a974a495
Refactor _util.check_request
2019-07-02 15:34:23 +02:00
Mads Marquart
5b57d49a3e
Remove Client._postFile
2019-07-02 15:14:02 +02:00
Mads Marquart
7af83c04c0
Remove as_json parameter
...
The requests that didn't need this parameter were moved to the State model
2019-07-01 22:53:26 +02:00
Mads Marquart
b5ba338f86
Remove fix_request parameter
...
The requests that don't need this parameter is handled in the State model
2019-07-01 22:49:21 +02:00
Mads Marquart
50bfeb92b2
Add fix_request=True and as_json=True to missing requests
...
I've tested, these endpoints actually all return JSON data
2019-07-01 22:47:05 +02:00
Mads Marquart
8d41ea5bfd
Use POST in Client.fetchImageUrl
...
Reduces the amount of different request methods we're using.
Not really sure whether this is actually the best option:
- Each request includes `fb_dtsg` and such, so using POST everywhere might be the more secure option?
- But at the same time, the request is more opaque, and harder to debug (urllib3 logs all request urls automatically, so using GET would make that easy)
2019-07-01 18:43:00 +02:00
Mads Marquart
b10b14c8e9
Update url in Client.removeFriend
2019-07-01 18:23:03 +02:00
Mads Marquart
144e81bd46
Add Python 2 support
2019-07-01 13:40:15 +02:00
Mads Marquart
230c849b60
Always create the State object in a valid state
2019-07-01 13:31:42 +02:00
Mads Marquart
466f27a8c5
Move login check code into State
2019-07-01 13:31:42 +02:00
Mads Marquart
dc12e01fc7
Move logout code to State
2019-07-01 13:31:42 +02:00
Mads Marquart
d0e9a7f693
Move login/2fa code to State
2019-07-01 13:31:42 +02:00