aboutsummaryrefslogtreecommitdiff
path: root/stack-core.el
diff options
context:
space:
mode:
Diffstat (limited to 'stack-core.el')
-rw-r--r--stack-core.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/stack-core.el b/stack-core.el
index 6c5e7fa..496533e 100644
--- a/stack-core.el
+++ b/stack-core.el
@@ -63,6 +63,10 @@
Do not change this unless you know what you are doing!")
+(defconst stack-core-api-key
+ "0TE6s1tveCpP9K5r5JNDNQ(("
+ "When passed, this key provides a higher request quota.")
+
(defcustom stack-core-default-keyword-arguments-alist
'(("filters/create")
("sites")
@@ -173,8 +177,9 @@ entire response as a complex alist."
(call
(stack-core-build-request
method
- (cons `(filter . ,(cond (filter filter)
- ((boundp 'stack-filter) stack-filter)))
+ (append `((filter . ,(cond (filter filter)
+ ((boundp 'stack-filter) stack-filter)))
+ (key . ,stack-core-api-key))
(if keyword-arguments keyword-arguments
(stack-core-get-default-keyword-arguments method))))))
;; TODO: url-retrieve-synchronously can return nil if the call is