generate_signature() method and pass the HTTP method, path, timestamp, nonce, and original JSON bodyencrypt_body() method and pass the original JSON, App ID, and apiDataKeysort_query_string() method to sort query parametersX-Enc = aes-gcm-v1 is set)application/octet-stream when encrypted, and application/json when plaintext