Configure your application with the correct API endpoints
https://api.roxom.com/api
https://api.roxom.io/api
v1
https://api.roxom.com/api/v1/{endpoint}
# Production ROXOM_API_BASE_URL=https://api.roxom.com ROXOM_WS_BASE_URL=wss://api.roxom.com/ws # Sandbox ROXOM_API_BASE_URL=https://api.roxom.io ROXOM_WS_BASE_URL=wss://api.roxom.io/ws
import os class RoxomConfig: BASE_URL = os.getenv('ROXOM_API_BASE_URL', 'https://api.roxom.com') WS_URL = os.getenv('ROXOM_WS_BASE_URL', 'wss://api.roxom.com/ws') API_VERSION = 'v1' @property def rest_endpoint(self): return f"{self.BASE_URL}/{self.API_VERSION}"
const config = { baseUrl: process.env.ROXOM_API_BASE_URL || 'https://api.roxom.com', wsUrl: process.env.ROXOM_WS_BASE_URL || 'wss://api.roxom.com/ws', apiVersion: 'v1', get restEndpoint() { return `${this.baseUrl}/${this.apiVersion}`; } };
curl -X GET "https://api.roxom.com/ping" \ -H "Content-Type: application/json"
pong
Was this page helpful?