Method: EPlat::Client#platform_headers
- Defined in:
- lib/e_plat/client.rb
#platform_headers ⇒ Object
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/e_plat/client.rb', line 104 def platform_headers case platform when :shopify { "Content-Type" => "application/json", "X-Shopify-Access-Token" => api_token } when :bigcommerce { "Content-Type" => "application/json", "Accept" => "application/json", "X-Auth-Token" => api_token, "host" => "api.bigcommerce.com" } when :woocommerce { "Content-Type" => "application/json", "Authorization" => "Basic #{ api_token }" } end end |