Google Play Services - leaderboard score retrieve problem

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Suleymanov

I successfully call leaderboard by:

GooglePlay.play_games_services.showLeaderBoard(leaderboardID)
  1. But I can’t get score from leaderboard to a variable. I failed trying both below:
var xp = GooglePlay.play_games_services.retrieveLeaderBoardScore(leaderboardID, "ALL_TIME", "ALL")

xp = int(GooglePlay.play_games_services.retrieveLeaderBoardScore("leaderboardID", "ALL_TIME", "ALL"))
  1. Also I can’t send data to leaderboard. I failed trying both below:
GooglePlay.play_games_services.submitLeaderBoardScore(leaderboardID, #value)

GooglePlay.play_games_services.submitLeaderBoardScore(leaderboardID, int(#value))

What am I doing wrong and what is the correct way in examples?

Thank you for your time!