STIGA integration API robot

Page 1

STIGA INTEGRATION API General info: API host: connectivity-production.stiga.com Authorization type: firebase bearer token

How to get the firebase bearer token: •

Retrieve firebase auth bearer token

Request Parameters: Url: "https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword" Query Params:

o

key: AIzaSyCPtRBU_hwWZYsguHp9ucGrfNac0kXR6ug (Firebase API Key for auth)

Body:

o o o

email: string, description: your email registered in app password: string, description: your password linked to your email returnSecureToken: boolean, description: must be true to retrieve your bearer Token

Example Request: POST: https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=AIzaSyCPtRB U_hwWZYsguHp9ucGrfNac0kXR6ug Body: {“email”: “example@email.com”, “password”: “Password.1”, “returnSecureToken”: true}

Example Request in Vanilla JS

o o o o

const retriveIdToken = async (email, password) => {

o o o o o o o o o o o o

try { const response = await fetch( 'https://www.googleapis.com/identitytoolkit/v3/relyingparty /verifyPassword?key=API_KEY', { metodi: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ email: email, password: password, returnSecureToken: true, }), }, );


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.