def create_job_candidate(candidate, shortcode, stage_slug = nil)
      shortcode = "#{shortcode}/#{stage_slug}" if stage_slug

      response = post_request("jobs/#{shortcode}/candidates") do |request|
        request.body = @transform_from.apply(:candidate, candidate).to_json
      end

      @transform_to.apply(:candidate, response['candidate'])
    end
def create_job_candidate(candidate, shortcode, stage_slug = nil)
      shortcode = "#{shortcode}/#{stage_slug}" if stage_slug

      response = post_request("jobs/#{shortcode}/candidates") do |request|
        request.body = @transform_from.apply(:candidate, candidate).to_json
      end

      @transform_to.apply(:candidate, response['candidate'])
    end
create new candidate for given job
 @param candidate  [Hash] the candidate data as described in
    https://workable.readme.io/docs/job-candidates-create
    including the `{"candidate"=>{}}` part
 @param shortcode  [String] job short code
 @param stage_slug [String] optional stage slug
 @return [Hash] the candidate information without `{"candidate"=>{}}` part