From 1c83bfaa38db0c9db4b04754e27c64fe41e017a1 Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Fri, 3 Apr 2026 16:36:06 -0400 Subject: [PATCH] specify nil body and json typ --- sgx-bwmsgsv2.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index d321b38f06b989faffa2ed138cf486d322c920dd..cf5e30e31e60962214a62ef840b0c7d180fb935f 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -824,7 +824,9 @@ module SGXbwmsgsv2 api_token, api_secret, :get, - "api/v2/users/#{user_id}/media" + "api/v2/users/#{user_id}/media", + nil, + {'Content-Type' => 'application/json'} ).then { |response| JSON.parse(response) # TODO: confirm response is array - could be empty