Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **Single Sign On**
- You can generate an SSO account by defining a integrator and identityToken
- POST /v1/account/token
- *Request Body*
- {
- "integrator": `{$sendInBlue}`,
- "identityToken": `${userId}`
- }
- *Example response*
- {
- email: `${guid}@bannerwise.io`
- ...
- }
- **Credentials**
- You can generate credentials using the SSO response email value.
- POST /v1/session
- {
- username: response.email.split('@')[0],
- password: `${username}_${identityToken}`
- }
- *Example response*
- {
- token: {
- accessToken: 'c372d987709b4d1ab07566bf6f5a7c20bb97e622'
- ...
- }
- }
- **Handling API requests**
- Ones you have the access token you can the Authentication Bearer with every request. To get access to the API the **Authentication Bearer** has to be set in **every call**.
- GET /v1/bannerset
- {
- includePublic: true,
- limit: 20,
- skip: 0,
- type: 'template'
- }
- Authentication Bearer
- { Authorization: `Bearer ${localStorage.getItem('accessToken')}`
Add Comment
Please, Sign In to add comment