diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-22 16:18:24 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-22 16:18:24 +0800 |
commit | 948be2a6464f54931350b4ace101b00ee4b73403 (patch) | |
tree | 29b68373a982a96754f984b21579a756c3c2f493 | |
parent | e43d0bdf0e1be2dbe22ff1e1f001b9d2b7586486 (diff) |
Reorder some lines
-rw-r--r-- | shopify.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,8 +7,8 @@ #include <toml.h> #include <curl/curl.h> #include <json.h> -#include <microhttpd.h> #include <l8w8jwt/decode.h> +#include <microhttpd.h> #include "shopify.h" #define AUTH_URL \ @@ -594,9 +594,9 @@ void shopify_graphql(const char *query, const struct shopify_session *session, char **json) { CURL *curl = curl_easy_init(); - curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, append); - curl_easy_setopt(curl, CURLOPT_WRITEDATA, json); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, query); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, json); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, append); static const char *url_tmpl = "https://%s/admin/api/2022-07/graphql.json"; |