title: How to generate signature for shopee v2
body: <p>I have a problem with generate signature for shopee,  what is funny this works for /api/v2/auth/token/get method but all other methods gives my  error &quot;Wrong sign&quot;</p>
  <pre><code>$timestamp = time();
  $partner_id = 123;
  $shop_id = 123;
  $secret_key = &quot;xyz&quot;;
  $path = &quot;/api/v2/shop/get_shop_info&quot;;
  
  $sign = hash_hmac('sha256', utf8_encode($partner_id . $path . $timestamp), $secret_key);
  $url = [
      'access_token' =&gt; $tocken,
      'partner_id'   =&gt; $partner_id,
      'shop_id'      =&gt; $shop_id,
      'sign'         =&gt; $sign,
      'timestamp'    =&gt; $timestamp,
  ];
  
  $curl = curl_init('https://partner.test-stable.shopeemobile.com' . $path . '?' . http_build_query($url));
  curl_setopt($curl, CURLOPT_HEADER, false);
  curl_setopt($curl, CURLOPT_HTTPHEADER, array(&quot;Content-type: application/json&quot;));
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
  
  curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
  
  $response = curl_exec($curl);
  
  var_dump(json_decode($response));
  
  </code></pre>
  <p>Any idea what is wrong with this ?</p>