API Documentation
To get player activities information
Introduction
The Skysmash API provides functionality to check activities within the last 24 hours. This document outlines the endpoints, input parameters, and output data for the API.
Base API URL
Base URL:
https://api.skysmash.io
Authentication
To access the Skysmash API, authentication is required. Use the following endpoint to authenticate:
POST /playfabauthenticate/customAuthenticate
Header:
secretKey: The secret key provided by Sky Smash to trusted partners (Do not share this key with anyone).
Request Body: Not required
Response (if authentication is successful):
{
"status": 0,
"data": {
"accessToken": "eyJ..."
}
}Save the accessToken for subsequent API requests. You must include this token in the request header as the authorization bearer token.
API Endpoints
Check Activities within the past time frame from now
Use this endpoint to check activities within the past time frame from now for a given Ronin Wallet Address
POST /custom/getRoninAddressBattleCount
Header:
authorization: Bearer token with the format"bearer $accessToken"content-type:application/json
Request Body:
Response (if request is successful):
Input and Output
Input:
roninAddress- Player's Ronin Wallet address, replacing "ronin:" with "0x"minutes -- The duration in minutes from the current time and date to consider for historical data retrieval (e.g., use 1440 for the past 24-hour period or 120 for retrieving data in the past 2-hour). Max value 2880 - representing 2 days of activities for each players
Output:
Mode- The text description of the game mode.Count- The number matches played on the fore-mentioned game mode.Win- The number of winning matches on the fore-mentioned game mode.
Example Usage
Remember to replace 'your-secret-key' and '0xYourWalletAddress' with actual secret key and wallet address.
Last updated