Integrate SharinPix Album on Your Website (Developer-oriented)
Introduction
In this document, we will guide you through the different element you need to do to display a SharinPix album on your website.
To get started, you need to generate a JSON Web token. Learn more here: https://jwt.io/introduction This is used to authenticate SharinPix Album. There are 4 main information required to display and interact a SharinPix Album.
AlbumId - the album Id on which to upload images.
Issuer - A key used to determine who is the owner and which organization the album and images belongs to.
Secret - A secret which will sign the album (we use this to verify authenticity of the requests).
Abilities - refers to the different permission granted to the current album
Getting Started
First, you need to create a SharinPix Secret. For that, you need to go the SharinPix Admin Dashboard and create the secret.
Connect to the Admin Dashboard: Overview of the SharinPix Administration Dashboard
Go to the Secrets tab and create a new one.

Building Token
We shall now construct our token. You will now need to download the appropriate JWT library depending on the programming language you are using. As mentioned earlier, we will be using Javascript for this demo.
Below is a sample javascript code. Import appropriate library before running the code. In this case, the library was jsrsasign-all-min.js.
The above code generates a string like this:
eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiIxYmY5MTFlYS0xZmZmLTQ5MTctOGU5ZS01MjA2MTg0Nj U0M2MiLCJwYiL3BhZ2VsYXlvdXQvbXlfYWxidW1faWQiLCJhYmlsaXRpZXMiOnsibXlfYWxidW1faWQiOnsiQWNjZ XNzIjp7InNlZSI6dHJ1ZSwiaW1hZ2VfdXBsb2FkIjp0cnVlLCJpbWFnZV9kZWxldGUiOnRydWUsImltYWdlX2xpc3 QiOnRydWV9fX19.qp7TqeGUPTKA1DsNaws70_ml7SoJST9MR9A-6Duy1lE
Displaying SharinPix Album
Now to display the SharinPix album on your html page, use the following below and insert the generated token.

