package main
import ("fmt" "net/http" )
req, _ := http.NewRequest("POST" , "https://api.smscode.gg/v1/orders/create" , nil)
req.Header.Set("Authorization" , "Bearer YOUR_API_KEY" )
req.Header.Set("Content-Type" , "application/json" )
res, _ := http.DefaultClient.Do(req)
fmt.Println(res.Status)
const API = "https://api.smscode.gg/v1" ;
const headers = { Authorization : "Bearer YOUR_API_KEY" };
const order = await fetch (`${API}/orders/create` , {
method: "POST" ,
headers: { ...headers, "Content-Type" : "application/json" },
body: JSON.stringify ({ product_id : 42 }),
}).then (r => r.json ());
const id = order.data.orders[0 ].id;
const otp = await fetch (`${API}/orders/${id}` , { headers }).then (r => r.json ());
console.log (otp.data.otp_code);
import requests
API = "https://api.smscode.gg/v1"
headers = {"Authorization" : "Bearer YOUR_API_KEY" }
order = requests.post (f"{API}/orders/create" , headers=headers, json={"product_id" : 42 }).json ()
order_id = order["data" ]["orders" ][0 ]["id" ]
result = requests.get (f"{API}/orders/{order_id}" , headers=headers).json ()
print (result["data" ]["otp_code" ])
<?php
$payload = ['product_id' => 42 ];
$ch = curl_init('https://api.smscode.gg/v1/orders/create' );
curl_setopt_array($ch , [
CURLOPT_POST => true ,
CURLOPT_RETURNTRANSFER => true ,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY' , 'Content-Type: application/json' ],
CURLOPT_POSTFIELDS => json_encode($payload ),
]);
$response = json_decode(curl_exec($ch ), true);
curl_close($ch );
echo $response ['data' ]['orders' ][0 ]['id' ];
Kod gerekmez Siparişleri, numaraları ve OTP'leri tarayıcınızdan yönetin.
Paneli Aç Her cihazda çalışır