lib/createsend/client.rb in createsend-5.0.0 vs lib/createsend/client.rb in createsend-5.1.0
- old
+ new
@@ -179,9 +179,15 @@
# Deletes this client.
def delete
super "/clients/#{client_id}.json", {}
end
+ # Gets the journeys belonging to this client.
+ def journeys
+ response = get 'journeys'
+ response.map{|item| Hashie::Mash.new(item)}
+ end
+
private
def get(action, options = {})
super uri_for(action), options
end
\ No newline at end of file