diff options
author | Sean Allred <code@seanallred.com> | 2014-11-18 23:49:07 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-19 00:00:42 -0500 |
commit | 0dd95e3a3d4ee52f52a585388c3ba65e045c305b (patch) | |
tree | f8c4497519cf6f741ea7ec379c537f4b71a4de88 /sx-method.el | |
parent | 20dd7254da8e95bd01ce57f806733dee20005039 (diff) | |
parent | 681319aeb250a83d982d1e3e02264a7af0ae4120 (diff) |
Merge branch 'master' into documentation
Conflicts:
sx-method.el
sx-question-list.el
sx-question-mode.el
sx-question.el
sx-request.el
sx.el
Diffstat (limited to 'sx-method.el')
-rw-r--r-- | sx-method.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sx-method.el b/sx-method.el index 9a6dcc5..2d8f9d2 100644 --- a/sx-method.el +++ b/sx-method.el @@ -32,15 +32,23 @@ (require 'sx-filter) (defun sx-method-call - (method &optional keyword-arguments filter) + (method &optional keyword-arguments filter need-auth use-post) "Call METHOD with KEYWORD-ARGUMENTS using FILTER. +If NEED-AUTH is non-nil, an auth-token is required. If 'WARN, +warn the user `(user-error ...)' if they do not have an AUTH +token set. + +If USE-POST is non-nil, use `POST' rather than `GET' for passing +arguments. + Return the response content as a complex alist. See `sx-request-make' and `sx-filter-get-var'." (sx-request-make method (cons (cons 'filter (sx-filter-get-var filter)) - keyword-arguments))) + keyword-arguments) + need-auth use-post)) (provide 'sx-method) ;;; sx-method.el ends here |