module Brandspotter class Client def subscriptions get_request configure_payload('/subscriptions') end def find_subscription(id) get_request configure_payload("/subscriptions/#{id}") end def create_subscription(opts={}) opts.assert_valid_keys(:hashtag) post_request '/subscriptions', opts end def destroy_subscription(id) delete_request "/subscriptions/#{id}" end def locations get_request configure_payload('/locations') end def find_location(id) get_request configure_payload("/locations/#{id}") end def create_location(opts={}) opts.assert_valid_keys(:location) post_request '/locations', opts end def destroy_location(id) delete_request "/locations/#{id}" end end end