code: func (c *Client) Jobs(p *Printer) ([]*Job, error) {
  	var mr multipartRequest
  	mr.init()
  	if p != nil {
  		mr.WriteField("printerid", p.ID)
  	}
  	var resp jobsResponse
  	err := jsonRPC(&c.auth, "POST", cloudprintURL+"/jobs", &mr, &resp)
  	if err != nil {
  		return nil, fmt.Errorf("Jobs: %v", err)
  	}
  	var jobs []*Job
  	for _, desc := range resp.Jobs {
  		jobs = append(jobs, desc.Job())
  	}
  	return jobs, nil
  }
docs: // Jobs returns a list of jobs waiting to be printed.
  // If p is not nil, the list is restricted to jobs sent to the given printer.