quicktext
quicktext copied to clipboard
api usage error : 405 Method Not Allowed
The 'Create a quick text via cURL' : curl 'https://qtext.io/q' --data-raw '{"text":"Hello world!"}'
doesn't seem to work...
The expected results:
{
"data" : {
"created_at" : 1661584958,
"created_at_friendly" : "10:22:38",
"expire_at" : 1661585858,
"expire_at_friendly" : "10:37:38",
"ip_whitelist" : [],
"owner_client_id" : null,
"remote_addr" : "8.219.97.248",
"share_on_network" : false,
"text" : "Hello world!",
"viewer_can_edit" : false
},
"key" : "1241", "success" : true, "url" : "https://qtext.io/1241" }
The results obtained:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>
They seem to have changed the api, use https://qtext.io/share
instead of /q
, it should work