Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. <code graphql> // config // const host = "http://localhost:8080" const host = "http://localhost:8888/api" var graphql = JSON.stringify({ query: `{ deviceLogin(deviceId: "string") { access_token } }`, variables: {} }) const resp = await altair.helpers.request( "POST", host, { "body": graphql, "headers": { "Content-Type": "application/json", }, }, ); const access_token = resp.data.pantryDeviceLogin.access_token; altair.helpers.setEnvironment('access_token', access_token); </code> open/pre-request.txt Last modified: 2024/10/05 06:15by 127.0.0.1