import requests
url = "http://31.97.207.78:6969/api/gen"
data = {
"netflix_id": "YOUR_NETFLIX_ID",
"secret_key": "YOUR_SECRET_KEY"
}
response = requests.post(url, json=data)
result = response.json()
if result.get("success"):
print(f"Login URL: {result['login_url']}")
print(f"Token expires: {result['expires']}")
else:
print(f"Error: {result.get('error')}")
fetch('http://31.97.207.78:6969/api/gen', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
netflix_id: 'YOUR_NETFLIX_ID',
secret_key: 'YOUR_SECRET_KEY'
})
})
.then(r => r.json())
.then(data => {
if (data.success) {
console.log('Login URL:', data.login_url);
console.log('Expires:', data.expires);
} else {
console.error('Error:', data.error);
}
});
curl -X POST http://31.97.207.78:6969/api/gen \
-H "Content-Type: application/json" \
-d '{
"netflix_id": "YOUR_NETFLIX_ID",
"secret_key": "YOUR_SECRET_KEY"
}'
<?php
$url = "http://31.97.207.78:6969/api/gen";
$data = [
"netflix_id" => "YOUR_NETFLIX_ID",
"secret_key" => "YOUR_SECRET_KEY"
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$result = json_decode($response, true);
if ($result['success']) {
echo "Login URL: " . $result['login_url'] . "
";
echo "Expires: " . $result['expires'] . "
";
} else {
echo "Error: " . $result['error'] . "
";
}
curl_close($ch);
?>
import java.net.http.*;
import java.net.URI;
public class NetflixTokenGenerator {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
String json = "{"netflix_id":"YOUR_NETFLIX_ID","secret_key":"YOUR_SECRET_KEY"}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("http://31.97.207.78:6969/api/gen"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(json))
.build();
HttpResponse response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
url := "http://31.97.207.78:6969/api/gen"
data := map[string]string{
"netflix_id": "YOUR_NETFLIX_ID",
"secret_key": "YOUR_SECRET_KEY",
}
jsonData, _ := json.Marshal(data)
resp, err := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
var result map[string]interface{}
json.NewDecoder(resp.Body).Decode(&result)
fmt.Printf("%+v
", result)
}