/**
  * This signs the request.
  * 
  * @param string $method - the method we're querying in the API.
  * @param array $params - the params that are beign sent to the API call.
  */
 private function finalize_params($method, &$params)
 {
     $this->add_standard_params($method, $params);
     // we need to do this before signing the params
     $this->convert_array_values_to_json($params);
     $params['sig'] = SocialIngot::generate_sig($params, $this->secret);
 }