User data request
NOTE: This endpoint is deprecated and no longer supported.
Ok, so now that you have requested your verification link, you will need to recover the user data. How to automate this? You can set the returnUrl of the steam verification link to be for example https://yourdomain.com/auth?user=USERID
with USERID
being the Discord ID of the verified user. When the user gets redirected there, you can trigger data collection with the exchange token obtained in the steam verifier request.
Get user data
POST
https://modiplex.com/api/getVerifiedUser
Request Body
Name
Type
Description
token
string
Your API token
exchangeToken
string
Exchange token obtained earlier
{
steamID: '76561198402902692',
steamHEX: '11000011a621aa0',
username: '[KMB] Kub_Luk',
profileURL: 'https://steamcommunity.com/id/kubluk/',
avatar: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/09/098f47fad0459a4c07acce7750aa8ce5c952acca_full.jpg',
requestToken: '95551c78f32c60f5a7eb20b16da6f094'
}
NodeJS Example
const axios = require('axios')
axios.post('https://modiplex.com/api/getVerifiedUser', {
token: `4de599303763995849ca52032d3333af541f41c90a2fc39ebb726365d1183dee`,
exchangeToken: `95551c78f32c60f5a7eb20b16da6f094`
})
.then(res => {
console.log(res.data);
})
.catch(error => {
console.error(error)
})
Last updated
Was this helpful?