How to generate App codes?

💻 Environment/Context

  • Mobile app
  • Login
  • Teams & players

 

In order for you to get the player's ID, the Configure > Teams and players > Can view page and Can view players permissions must be enabled on your account

If you're unable to follow any of the steps below, kindly reach out to your admin or refer to the Account Type Permissions Overview article for more information.

 

 

❓ Issue/Question

  • How do we generate an app code that lets a player log in to the ScorePlay mobile app directly, without scanning a QR code or opening a deep invite link?
  • Is there ways of accessing a table of all our athletes and their access codes?

 

👌 Resolution/Answer

  • Build the App code
    • Add P in front of the player's ScorePlay ID: P{player_id}
    • Example: if the player's ID is 116319, the App code is P116319
  • Get one player's ID
    • Open the player's profile in ScorePlay
    • Copy the number at the end of the URL
  • Get the IDs of all your players at once
    • Request the full list of players with the ScorePlay API
    • Send the request from an API tool such as Postman, not from your browser's address bar. The request needs your API key in the X-ScorePlay-Api-Key header, which a browser can't add
    • Export the IDs to a spreadsheet and add a column with the formula ="P"&A2 (column A holds the IDs) to build every App code at once
  • Share the code with the player
    • The player enters it on the ScorePlay app's login screen to sign in. No QR code or link needed

 

🔖 Notes