def get_note_attachment(id)
    login! unless logged_in?
    json = <<-EOF
      {
        "session": "#{@sugar_session_id}",
        "id": "#{id}"
      }
    EOF
    json.gsub!(/^\s{6}/,'')
    send!(:get_note_attachment, json)["note_attachment"]
  end
def get_note_attachment(id)
    login! unless logged_in?
    json = <<-EOF
      {
        "session": "#{@sugar_session_id}",
        "id": "#{id}"
      }
    EOF
    json.gsub!(/^\s{6}/,'')
    send!(:get_note_attachment, json)["note_attachment"]
  end
Retrieves an attachment from a note.