quicktext icon indicating copy to clipboard operation
quicktext copied to clipboard

api usage error : 405 Method Not Allowed

Open asheshjyotii opened this issue 1 year ago • 1 comments

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>

asheshjyotii avatar Feb 07 '24 19:02 asheshjyotii

They seem to have changed the api, use https://qtext.io/share instead of /q, it should work

Jesus-QC avatar Feb 29 '24 16:02 Jesus-QC