original_string: public function addPostField($key, $value)
      {
          $this->setMethod('POST');
          $this->setBody(null);
          if (!is_array($value)) {
              $this->_postFields[$key] = strval($value);
          } else {
              $value = $this->formatArrayField($value);
              foreach ($value as $k => $v) {
                  $k = $key . '[' . $k . ']';
                  $this->_postFields[$k] = $v;
              }
          }
      }
code: public function addPostField($key, $value)
      {
          $this->setMethod('POST');
          $this->setBody(null);
          if (!is_array($value)) {
              $this->_postFields[$key] = strval($value);
          } else {
              $value = $this->formatArrayField($value);
              foreach ($value as $k => $v) {
                  $k = $key . '[' . $k . ']';
                  $this->_postFields[$k] = $v;
              }
          }
      }
code_tokens: public function addPostField ( $ key , $ value ) { $ this -> setMethod ( 'POST' ) ; $ this -> setBody ( null ) ; if ( ! is_array ( $ value ) ) { $ this -> _postFields [ $ key ] = strval ( $ value ) ; } else { $ value = $ this -> formatArrayField ( $ value ) ; foreach ( $ value as $ k => $ v ) { $ k = $ key . '[' . $ k . ']' ; $ this -> _postFields [ $ k ] = $ v ; } } }
docstring: Add field for the request use POST
  @param string $key field name.
  @param mixed $value field value, array supported.
docstring_tokens: Add field for the request use POST