24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
<!-- Extend the base HTML template -->
|
|
{% extends "base.html" %}
|
|
|
|
<!-- Extend CSS to add CSS for particular page -->
|
|
{% block css %}
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/api.css') }}">
|
|
{% endblock %}
|
|
|
|
<!-- Main body block -->
|
|
{% block main_body %}
|
|
<main>
|
|
|
|
<h1> API Documentation </h1>
|
|
|
|
<div>
|
|
<h2> Python </h2>
|
|
<pre>import requests<br /><br />CDRM_API = 'https://cdrm-project.com/'<br /><br />json_data = {<br /> 'PSSH': 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA==',<br /> 'License URL': 'https://cwip-shaka-proxy.appspot.com/no_auth',<br /> 'Headers': "{'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0'}",<br /> 'JSON': "{}",<br /> "Cookies": "{}",<br /> 'Data': "{}",<br /> 'Proxy': ""<br />}<br /><br />decryption_results = requests.post(CDRM_API, json=json_data)<br /><br />print(decryption_results.json()['Message'])</pre>
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<!-- End main block -->
|
|
{% endblock %}
|