Skip to content

Commit 317537e

Browse files
committed
Change naming per conversation with Roman
1 parent 24ad6fa commit 317537e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/drip/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def make_json_api_request(http_verb, path, options = {})
8686
make_request Drip::Request.new(http_verb, make_uri(path), options, JSON_API_CONTENT_TYPE)
8787
end
8888

89-
def make_v3_request(http_verb, path, options = {})
89+
def make_json_request(http_verb, path, options = {})
9090
make_request Drip::Request.new(http_verb, make_uri(path), options, JSON_CONTENT_TYPE)
9191
end
9292

lib/drip/client/shopper_activity.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def create_cart_activity_event(data = {})
1616
end
1717

1818
data[:occurred_at] = Time.now.iso8601 unless data.key?(:occurred_at)
19-
make_v3_request :post, "v3/#{account_id}/shopper_activity/cart", data
19+
make_json_request :post, "v3/#{account_id}/shopper_activity/cart", data
2020
end
2121

2222
# Public: Create an order activity event.
@@ -34,7 +34,7 @@ def create_order_activity_event(data = {})
3434
end
3535

3636
data[:occurred_at] = Time.now.iso8601 unless data.key?(:occurred_at)
37-
make_v3_request :post, "v3/#{account_id}/shopper_activity/order", data
37+
make_json_request :post, "v3/#{account_id}/shopper_activity/order", data
3838
end
3939

4040
# Public: Create a product activity event.
@@ -50,7 +50,7 @@ def create_product_activity_event(data = {})
5050
end
5151

5252
data[:occurred_at] = Time.now.iso8601 unless data.key?(:occurred_at)
53-
make_v3_request :post, "v3/#{account_id}/shopper_activity/product", data
53+
make_json_request :post, "v3/#{account_id}/shopper_activity/product", data
5454
end
5555
end
5656
end

0 commit comments

Comments
 (0)