Introduction to XD Soba API
Welcome to the XD Soba API documentation! This guide will help you understand how to use our API effectively.
Quick Start
-
Read the Getting Started Guide to learn about:
- Authentication
- Base URL
- Common headers
- Rate limiting
- Error handling
-
Explore the API Reference to:
- View all available endpoints
- Generate code examples
- Test API calls directly
Using cURL Commands
The documentation includes cURL examples for each endpoint. Here's how to use them:
-
Windows PowerShell:
# Single line
curl -X POST "https://api.xdsoba.com/api/Account/login" -H "Content-Type: application/json" -d '{"username": "your_username", "password": "your_password"}'
# Multi-line (using backticks)
curl -X POST "https://api.xdsoba.com/api/Account/login" `
-H "Content-Type: application/json" `
-d '{"username": "your_username", "password": "your_password"}' -
Linux/Mac Terminal:
# Single line
curl -X POST "https://api.xdsoba.com/api/Account/login" -H "Content-Type: application/json" -d '{"username": "your_username", "password": "your_password"}'
# Multi-line (using backslashes)
curl -X POST "https://api.xdsoba.com/api/Account/login" \
-H "Content-Type: application/json" \
-d '{"username": "your_username", "password": "your_password"}'
Generating Code
The API Reference section allows you to generate code in multiple languages:
- Navigate to any endpoint in the API Reference
- Click the "Code" tab
- Select your preferred language:
- cURL
- C#
- JavaScript
- Python
- Java
- PHP
- Ruby
- Go
- PowerShell
Example of generated C# code:
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.xdsoba.com/api/Account/login");
request.Headers.Add("Content-Type", "application/json");
var content = new StringContent("{\"username\":\"your_username\",\"password\":\"your_password\"}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var result = await response.Content.ReadAsStringAsync();
Next Steps
- Read the Getting Started Guide for detailed setup instructions
- Explore the API Reference to see all available endpoints
- Check out the API Usage Guide for best practices
Need help? Contact our support team at support@xdsoba.com