Indywidualny cennik użytkownika
Pobierz swój indywidualny cennik z osobistymi stawkami SMS. Zwraca jedną cenę za usługę na podstawie poziomu cen Twojego konta. Podaj dwuliterowy kod kraju ISO (np. DE, CH) lub ‘all’ dla wszystkich krajów. Wymaga uwierzytelnienia.
Authorizations
Dział zatytułowany „Authorizations ”Parameters
Dział zatytułowany „ Parameters ”Path Parameters
Dział zatytułowany „Path Parameters ”Dwuliterowy kod kraju ISO lub ‘all’ dla wszystkich krajów
Query Parameters
Dział zatytułowany „Query Parameters ”Format wyjściowy
Język nazw krajów
Responses
Dział zatytułowany „ Responses ”User-specific price list
Single country response
object
Kod kraju ISO-2
Czytelna nazwa kraju
Waluta cen
Wymagania specyficzne dla kraju dotyczące wysyłania SMS
Jedna cena za kod usługi na podstawie poziomu cen
object
Price per SMS in the selected currency
All countries response
object
Kod kraju ISO-2
Czytelna nazwa kraju
Waluta cen
Wymagania specyficzne dla kraju dotyczące wysyłania SMS
Jedna cena za kod usługi na podstawie poziomu cen
object
Examples
User price list for Germany in EUR
Example response for /me/pricelist/de?currency=eur with authentication. Shows single prices per service based on user’s price level.
{ "country": "DE", "name": "Germany", "currency": "EUR", "requirements": null, "rates": { "pro": 0.06, "economy": 0.044, "direct": 0.062, "text2speech": 0.032 }}Nieprawidłowe dane wejściowe
Identyfikator klienta lub klucz API nie jest aktywny albo jest nieprawidłowy!
Konto nie jest aktywowane. Poczekaj lub skontaktuj się z pomocą techniczną!
Nie znaleziono zasobu
Adres IP został tymczasowo zablokowany, ponieważ w krótkim czasie wysłano z niego wiele żądań z nieprawidłowymi danymi uwierzytelniającymi. Poczekaj i spróbuj ponownie później.
Code Samples
curl -s 'https://api.lox24.eu/me/pricelist/de?lang=de' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jqcurl -s 'https://api.lox24.eu/me/pricelist/all?format=xlsx&lang=de' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' -o lox24_user_pricelist_all.xlsxusing System;using System.Net.Http;using System.Net.Http.Headers;using System.Threading.Tasks;
class Program{ static async Task Main() { using var client = new HttpClient(); client.DefaultRequestHeaders.Add("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN");
string url = "https://api.lox24.eu/me/pricelist/de?lang=de"; var response = await client.GetStringAsync(url); Console.WriteLine(response); }}package main
import ( "fmt" "io" "net/http")
func main() { url := "https://api.lox24.eu/me/pricelist/de?lang=de"
req, _ := http.NewRequest("GET", url, nil) req.Header.Set("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN")
resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}import java.net.URI;import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;
public class Main { public static void main(String[] args) throws Exception { var url = "https://api.lox24.eu/me/pricelist/de?lang=de";
var request = HttpRequest.newBuilder() .uri(URI.create(url)) .header("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN") .GET() .build();
var response = HttpClient.newHttpClient() .send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body()); }}const url = 'https://api.lox24.eu/me/pricelist/de?lang=de';
fetch(url, { headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }}).then(response => response.json()).then(data => console.log(JSON.stringify(data, null, 2)));<?php
$uri = 'https://api.lox24.eu/me/pricelist/de?lang=de';$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $uri);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN',]);
$response = curl_exec($ch);curl_close($ch);
echo $response;import requests
url = 'https://api.lox24.eu/me/pricelist/de'headers = {'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}params = {'lang': 'de'}
response = requests.get(url, headers=headers, params=params)print(response.json())