315 Commits

Author SHA1 Message Date
Alvaro Molina Alvarez 3ab8689b6e Add JSON support to more methods
This includes proper support for JSON being added to _put, originally in [1]

[1] a1ac18e852
2017-10-21 15:52:56 +11:00
Alvaro Molina Alvarez 914e22cc55 adding update_avatar client method 2017-10-21 15:47:39 +11:00
Karl Goetz f42a457514 New add_group_members API call
Taken from [1] by Alvaro Molina Alvarez, split to keep merges on a single
topic.
[1] 74414d1429
2017-10-21 15:45:03 +11:00
Karl Goetz 8faa1cfaf9 Group kwargs for Discourse API v1.7
Taken from [1] by Alvaro Molina Alvarez
[1] 74414d1429
2017-10-21 15:42:41 +11:00
Karl Goetz 227f7a3205 Add JSON support to client library
Newer versions of Discourse API use JSON PUTs and POSTs extensively.

This is a modified cherry pick of [1] by Alvaro Molina Alvarez
[1] 74414d1429
2017-10-21 15:40:29 +11:00
Ben Lopatin 17faed6fa7 Update CONTRIBUTING.rst 2017-10-06 09:41:18 -04:00
Ben Lopatin b761d28494 Update CONTRIBUTING.rst 2017-10-06 09:39:36 -04:00
Ben Lopatin 9108939503 Merge pull request #7 from citadelgrad/patch-1
Update client.py
2017-01-17 10:17:31 -05:00
Scott Nixon 8555abf680 Update client.py
Updated create_category method documentation.
2017-01-15 14:03:23 -08:00
Ben Lopatin dd9b7fad19 Merge pull request #6 from Polytechnique-org/master
Adding some API calls, notably on groups and users
2016-10-17 15:53:04 -04:00
Pierre-Alain Dupont a18203c8cb Adds the possibility of deleting a group 2016-10-16 15:38:09 +02:00
wilhelmhb 630b822a9a add method for getting all the available informations about a user 2016-10-15 19:34:02 +02:00
wilhelmhb f0fd17c3a3 fonctions to get data on group members/owners 2016-10-15 17:58:30 +02:00
wilhelmhb f7f1aafc64 add forgotten argument 2016-10-15 16:06:18 +02:00
wilhelmhb e77074c5d4 add possibility to create a group 2016-10-15 15:49:22 +02:00
Ben Lopatin 22bf3b088e Version bump 0.7.0 0.7.0 2016-09-09 10:09:22 -04:00
Ben Lopatin 811453a129 Merge pull request #5 from jdorweiler/master
pass params in data
2016-09-09 10:04:24 -04:00
jddorweiler f8d628909c update test 2016-09-08 14:38:22 -04:00
jddorweiler 507e377a37 use data for posts and put 2016-09-08 14:23:38 -04:00
jddorweiler 0aac8f6628 pass params in data 2016-09-07 15:27:40 -04:00
Ben Lopatin acdcb03283 Version bump 0.6.0 v0.6.0 2016-07-22 08:48:57 -04:00
Ben Lopatin 6bd73fdd5c Merge pull request #4 from Meal-Mentor/master
Added method to add group to the user
2016-07-22 08:46:22 -04:00
Scott Nixon c13b456b79 Added method to add group to the user 2016-07-19 11:33:27 -07:00
Ben Lopatin 977885967d Update makefile v0.5.0 2016-06-13 11:41:28 -04:00
Ben Lopatin b9066ca637 Version bump 0.5.0 2016-06-13 11:37:12 -04:00
Ben Lopatin 77254f441c Merge pull request #3 from msfernandes/badges_endpoint
Added badges endpoint to pydiscourse
2016-06-10 11:12:26 -04:00
Matheus Fernandes 66089011f7 Added 'user-badges' endpoint
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
2016-06-10 11:46:56 -03:00
Matheus Fernandes fe317b6be8 Added badges endpoint to pydiscourse
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
2016-06-10 10:59:03 -03:00
Ben Lopatin 15e82aacd1 Add specific methods for interface to groups
Hide 'verbs' from users.
v0.4.0
2016-05-04 08:28:44 -04:00
Ben Lopatin 008f21d6fe Merge pull request #2 from citadelgrad/master
Added partial groups support
2016-05-04 07:36:59 -04:00
Scott Nixon 6baf51bbe1 Added partial groups support
Groups method returns the list of all groups.
Created group_owners which allows you to add and delete owners.
Created group_members which allows you to add and delete members.
2016-05-03 16:11:10 -07:00
Ben Lopatin 8304e7b2f5 Version bump 0.3.2 v0.3.2 2016-04-17 11:36:09 -04:00
Ben Lopatin 5806beef34 Merge pull request #1 from danielzohar/master
Only return `nonce` from given payload
2016-04-17 11:32:41 -04:00
Daniel Zohar f905a957f4 Only return nonce from given payload 2016-04-17 16:00:35 +01:00
Ben Lopatin 06ca2c5a58 Update changelog to include in package description 2016-04-11 11:36:25 -04:00
Ben Lopatin bde4325776 Add autodoc generation 2016-04-08 18:45:57 -04:00
Ben Lopatin 6b7e570475 Update README
[ci skip]
2016-04-08 18:27:02 -04:00
Ben Lopatin 3659724f11 Remove duplicate requests dependency in tox config 2016-04-08 18:03:10 -04:00
Ben Lopatin 1e151fc51f Remove module import from setup.py
Get the version number from the file, not by importing and thus trying
to import requests
2016-04-08 17:57:19 -04:00
Ben Lopatin 63f120ddca Require requests for tests 2016-04-08 17:47:26 -04:00
Ben Lopatin 9cb96eaf76 Version bump v0.3.1 2016-04-08 17:38:16 -04:00
Ben Lopatin c5207759a8 Fix empty response handling 2016-04-08 17:36:18 -04:00
Ben Lopatin b14cd502ce Allow client import from top level module 2016-04-08 17:35:25 -04:00
Ben Lopatin 3a3bb843e5 Check for docstrings with flake8
[ci skip]
2016-04-08 13:59:18 -04:00
Ben Lopatin a2f961aebb Formatting cleanup and flake8 configuration
[ci skip]
2016-04-08 13:56:41 -04:00
Ben Lopatin bd508cdcee Version bump 0.3.0 v0.3.0 2016-04-08 13:50:46 -04:00
Ben Lopatin 46051fd248 Fix unsuspend test 2016-04-08 13:47:43 -04:00
Ben Lopatin eed4df564d Add unsuspend method and un/suspend method tests 2016-04-08 13:43:05 -04:00
Ben Lopatin 6ac6a1fd2d Add client module docstring stubs 2016-04-08 13:43:05 -04:00
Ben Lopatin adf3f2ddbc Order imports 2016-04-08 13:43:05 -04:00