Unofficial API of Hamster Kombat telegram game to get daily cards and Morse and...
This fixed address contains the required data that you can read and use in your code:
https://raw.githubusercontent.com/NabiKAZ/HamsterKombat-API/main/config.json
python:
import requests
url = "https://raw.githubusercontent.com/NabiKAZ/HamsterKombat-API/main/config.json"
response = requests.get(url)
data = response.json()
print(data)
nodejs:
import fetch from 'node-fetch';
const url = 'https://raw.githubusercontent.com/NabiKAZ/HamsterKombat-API/main/config.json';
fetch(url)
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error('Error:', error);
});
php:
<?php
$url = 'https://raw.githubusercontent.com/NabiKAZ/HamsterKombat-API/main/config.json';
$json = file_get_contents($url);
$data = json_decode($json, true);
print_r($data);
go:
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://raw.githubusercontent.com/NabiKAZ/HamsterKombat-API/main/config.json"
resp, err := http.Get(url)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println("Error:", err)
return
}
var data map[string]interface{}
json.Unmarshal(body, &data)
fmt.Println(data)
}
This is a collaborative work of a group of friends who periodically record the required data on this project.
If you want to participate in updating the file, contact @NabiKAZ on Telegram or Twitter.
Nothing! Just give a star on the GitHub page, we will be happy. (: