From 24757268e2cc82afd671cb6214b08238b21f1875 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 24 Apr 2015 22:39:52 -0700 Subject: [PATCH] also send access token in POST --- lib/helpers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/helpers.php b/lib/helpers.php index d5ba67a..b56ec9c 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -88,7 +88,8 @@ function micropub_post($endpoint, $params, $access_token) { 'Authorization: Bearer ' . $access_token )); curl_setopt($ch, CURLOPT_POST, true); - $post = http_build_query(array_merge(array( + $post = http_build_query(array_merge(array(, + 'access_token' => $access_token, 'h' => 'entry' ), $params)); curl_setopt($ch, CURLOPT_POSTFIELDS, $post);