SDK che tengono i segreti sul tuo server

Gli SDK server firmano i link della bacheca e verificano i postback, così i segreti restano sul tuo server.

Apre al lancio. Questa pagina mostra come funziona. Ogni SDK mostra il suo stato da un’unica configurazione: Disponibile, oppure In arrivo finché il pacchetto non è pubblicato.

wall.tsEsempio
import { signLaunchUrl, verifyRewardPostback } from "@krin/sdk";

// Open the wall for a user: a fresh nonce, signed sub ids
const { url } = await signLaunchUrl(launchSecret, {
  placement: "plc_...",
  userId: "player-1042",
});

// Credit a reward once, after the signature checks out
export default {
  async fetch(request) {
    const { postback } = await verifyRewardPostback([postbackSecret], request);
    if (!postback.test) await creditOnce(postback.conversion_id, postback.reward);
    return new Response(null, { status: 204 });
  },
};

In breve

Gli SDK server per TypeScript e PHP firmano i link della bacheca e verificano i postback di ricompensa. Una bacheca web non richiede SDK, e gli SDK client non custodiscono mai un segreto.

I segreti restano sul tuo server

  1. 01

    SDK TypeScript e PHP per il tuo server.

  2. 02

    Una bacheca web non richiede alcun SDK.

  3. 03

    Gli SDK client non custodiscono mai un segreto.

  4. 04

    Codice testato per Node, PHP e Python nella documentazione.

Risposte chiare

Quali piattaforme sono supportate?

Prima web e Android, con TypeScript e PHP sul server. Poi arrivano iOS, Unity, React Native e Flutter, sulla stessa API.

Mi serve un SDK per una bacheca web?

No. Bastano un link firmato e un gestore di postback. La documentazione ha codice testato per Node, PHP e Python.

Inizia come inserzionista o come publisher

Crea un account e inizia in Sandbox. Campagne e bacheche live passano prima da una revisione.

Ultimo aggiornamento: