Getting started
Setting up the Fanpoints SDK
Currently, only a server-side typescript SDK is available. It needs to be used in your backend, as user-level authorization is not yet supported. We are working on a client-side SDK that will allow you to use the SDK in your client-side code.
Installing the SDK
You can install the SDK using npm:
npm install @fanpoints/server-js
Getting access tokens
To access the Fanpoints API, you first need to generate access tokens. Go to the admin panel, navigate to your Loyalty Program or Marketing Partner, click on Einstellungen and then on API Tokens. You can generate a new token there. Each token consists of a client id and a secret.
Note: The client id and secret will be used later on in the guide.