def create_time_entry(params)
      params['created_with'] = TogglV8::NAME unless params.has_key?('created_with')
      requireParams(params, ['start', 'duration', 'created_with'])
      if !params.has_key?('wid') and !params.has_key?('pid') and !params.has_key?('tid') then
        raise ArgumentError, "one of params['wid'], params['pid'], params['tid'] is required"
      end
      post "time_entries", { 'time_entry' => params }
    end
def create_time_entry(params)
      params['created_with'] = TogglV8::NAME unless params.has_key?('created_with')
      requireParams(params, ['start', 'duration', 'created_with'])
      if !params.has_key?('wid') and !params.has_key?('pid') and !params.has_key?('tid') then
        raise ArgumentError, "one of params['wid'], params['pid'], params['tid'] is required"
      end
      post "time_entries", { 'time_entry' => params }
    end
---------
 :section: Time Entries

 https://github.com/toggl/toggl_api_docs/blob/master/chapters/time_entries.md

 description  : (string, strongly suggested to be used)
 wid          : workspace ID (integer, required if pid or tid not supplied)
 pid          : project ID (integer, not required)
 tid          : task ID (integer, not required)
 billable     : (boolean, not required, default false, available for pro workspaces)
 start        : time entry start time (string, required, ISO 8601 date and time)
 stop         : time entry stop time (string, not required, ISO 8601 date and time)
 duration     : time entry duration in seconds. If the time entry is currently running,
                the duration attribute contains a negative value,
                denoting the start of the time entry in seconds since epoch (Jan 1 1970).
                The correct duration can be calculated as current_time + duration,
                where current_time is the current time in seconds since epoch. (integer, required)
 created_with : the name of your client app (string, required)
 tags         : a list of tag names (array of strings, not required)
 duronly      : should Toggl show the start and stop time of this time entry? (boolean, not required)
 at           : timestamp that is sent in the response, indicates the time item was last updated