Integrate client

Integrate iframe in order to ensure customer interaction with protocol on operator's site. An example of the integration is available on a demo site.

Default link for iframe:

https://casino.demo.rewindprotocol.com/dashboard?sid=<SID>&isMobile=false&lang=en&helpLink=https://www.facebook.com/

Option
Required

lang

Select interface language. Possible values: en, es, pt, fr, el, ja, de

Yes

isMobile

Stretching to the entire block

Yes

sid

Session ID

Yes

helpLink

Link for "How it works"

Yes

In order to generate sid, a call should be made to our server:

curl -X POST -H 'content-type:application/json' \
    -H 'X-Rewind-Api: AaaAaaAaaAaaAaa' \
    -H 'X-Rewind-Signature: ab678e428a215c2de3b584245ed9326562add02e5a4031391df5b492d61fb3bb4b03f33029e0205f159305cce205cb4ae566551caa90cc34a318657b7bf19ea5' \
    -d '{"foreignId":"testUser0001"}' \
    https://app.rewindprotocol.com/api/v1/clients/get-session-id

Unique session if for iframe follows in response:

{"sid":"382c75a6-40d1-47a7-9de4-5bbffe29a2dd"}

Last updated