def event(user_id, key, val="")
      opts = {
        :key => key,
        :valuestring => val,
        :user_id => user_id
      }
      post "/admin/api/customevent.json", opts
    end
def event(user_id, key, val="")
      opts = {
        :key => key,
        :valuestring => val,
        :user_id => user_id
      }
      post "/admin/api/customevent.json", opts
    end
Initializes a dailycred object

 - @param [String] client\_id the client's daiycred client id
 - @param [String] secret\_key the clients secret key
 - @param [Hash] opts a hash of options
 Generates a Dailycred event

 - @param [String] user_id the user's dailycred user id
 - @param [String] key the name of the event type
 - @param [String] val the value of the event (optional)