def to_api_data(self, restrict_keys=None):
cc = self._cc  <EOL>data = {<EOL>cc('<STR_LIT>'): self._column_hidden,<EOL>cc('<STR_LIT>'): self._row_hidden,<EOL>cc('<STR_LIT>'): self._formulas,<EOL>cc('<STR_LIT>'): self._formulas_local,<EOL>cc('<STR_LIT>'): self._formulas_r1_c1,<EOL>cc('<STR_LIT>'): self._number_format,<EOL>cc('<STR_LIT>'): self._values,<EOL>}<EOL>if restrict_keys:<EOL><INDENT>for key in list(data.keys()):<EOL><INDENT>if key not in restrict_keys:<EOL><INDENT>del data[key]<EOL><DEDENT><DEDENT><DEDENT>return data<EOL>
Returns a dict to communicate with the server

        :param restrict_keys: a set of keys to restrict the returned data to
        :rtype: dict