Client GraphQL Shopee Affiliate (Signature SHA256)

Tool kecil untuk panggil /graphql dengan header Authorization: SHA256 Credential=..., Timestamp=..., Signature=.... Kalau request fail sebab CORS atau sebab kau letak Secret dalam browser… ya, itu memang dijangka. 🙂

Konfigurasi & Request

Belum jalan
Proxy mode: set Endpoint ke URL backend kau (contoh http://localhost:3000/api/graphql). Backend tu yang patut simpan Secret dan buat signature. Dalam mode proxy, field Secret boleh dibiarkan kosong sebab browser tak patut tahu.

Response

Timestamp: -
Authorization header yang digunakan (kalau direct mode):
-
Raw JSON response:
-
Parsed offers (shopeeOfferV2.nodes):