Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/convertkit_v4/client/custom_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def add_custom_field(label)
label: label
})
end
response.body["custom_field"]
end

def delete_custom_field(custom_field_id)
Expand All @@ -24,6 +25,7 @@ def update_custom_field(custom_field_id, label)
label: label
})
end
response.body["custom_field"]
end

end
Expand Down
8 changes: 4 additions & 4 deletions lib/convertkit_v4/client/subscribers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def subscribers(options = {})
end

def subscriber(subscriber_id)
connection.get("subscribers/#{subscriber_id}")
connection.get("subscribers/#{subscriber_id}").body["subscriber"]
end

def add_subscriber(email_address, options = {})
Expand All @@ -21,7 +21,7 @@ def add_subscriber(email_address, options = {})

f.body = JSON.generate(body)
end
response.body
response.body["subscriber"]
end

def update_subscriber(subscriber_id, options = {})
Expand All @@ -33,7 +33,7 @@ def update_subscriber(subscriber_id, options = {})

f.body = JSON.generate(body)
end
response.body
response.body["subscriber"]
end

def unsubscribe(subscriber_id)
Expand All @@ -45,7 +45,7 @@ def unsubscribe(subscriber_id)
end

def subscriber_tags(subscriber_id)
connection.get("subscribers/#{subscriber_id}/tags")
connection.get("subscribers/#{subscriber_id}/tags").body["tags"]
end
end
end
Expand Down
1 change: 1 addition & 0 deletions lib/convertkit_v4/client/tags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def add_subscriber_to_tag(tag_id, options = {})
id: options[:id]
})
end
response.body
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/convertkit_v4/client/webhooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def create_webhook(url, event)
event: event
})
end
response.body
response.body["webhook"]
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/convertkit_v4/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ConvertkitV4
VERSION = "1.0.8"
VERSION = "1.0.11"
end