original_string: protected function generateSig($endpoint, array $params, $secret)
      {
          $sig = $endpoint;
          ksort($params);
          foreach ($params as $key => $val) {
              $sig .= "|$key=$val";
          }
          return hash_hmac('sha256', $sig, $secret, false);
      }
code: protected function generateSig($endpoint, array $params, $secret)
      {
          $sig = $endpoint;
          ksort($params);
          foreach ($params as $key => $val) {
              $sig .= "|$key=$val";
          }
          return hash_hmac('sha256', $sig, $secret, false);
      }
code_tokens: protected function generateSig ( $ endpoint , array $ params , $ secret ) { $ sig = $ endpoint ; ksort ( $ params ) ; foreach ( $ params as $ key => $ val ) { $ sig .= "|$key=$val" ; } return hash_hmac ( 'sha256' , $ sig , $ secret , false ) ; }
docstring: Generates a ``sig`` value for a request.
  
  @param  string $endpoint
  @param  array  $params
  @param  string $secret
  
  @return string
docstring_tokens: Generates a sig value for a request .