Code Monkey home page Code Monkey logo

Comments (12)

delano avatar delano commented on May 18, 2024

Oh, good call. I missed that while adding that feature. Will do soon.

from onetimesecret.

eengstrom avatar eengstrom commented on May 18, 2024

Just tried it out - WFM. Thanks.

from onetimesecret.

chelnak avatar chelnak commented on May 18, 2024

Is this API enabled on the live site?

Just tried it and i'm getting a 404.

from onetimesecret.

delano avatar delano commented on May 18, 2024

@chelnak Are you trying with the secret key or the private key? It's only works with the private key so that only the person that created the secret can burn it.

from onetimesecret.

chelnak avatar chelnak commented on May 18, 2024

from onetimesecret.

delano avatar delano commented on May 18, 2024

That's the one yeah.

from onetimesecret.

chelnak avatar chelnak commented on May 18, 2024

@delano Did some more testing this morning. The 404 happens when you try and burn a secret that has a passphrase.

Works fine when burning a secret without one.

from onetimesecret.

delano avatar delano commented on May 18, 2024

@chelnak Ah interesting. Thanks for the details. I need to think on this for a bit to sort what the right approach is for this case.

from onetimesecret.

jrogov avatar jrogov commented on May 18, 2024

@delano Thank you for adding Burn API call.
But, I have an issue. Docs say that return values are the same as Get Metadata request, which isn't quite true: you include actual Metadata-request-like data in state field of response, which's.. well, i guess not really predictable.

from onetimesecret.

eengstrom avatar eengstrom commented on May 18, 2024

As you are thinking about this, could you also think about or answer why the result from using the burn api call results in a non-flat JSON response, as in:

{
   "state": {
     "custid": "anon",
     "metadata_key": "m212lw3mqmfy21t62jeswmi940yvfkz",
     "secret_key": "",
     "ttl": 604800,
     "metadata_ttl": 604800,
     "secret_ttl": 604800,
     "state": "burned",
     "updated": 1493922248,
     "created": 1493922227,
     "recipient": []
   },
   "secret_shortkey": "j96kga"
 }

from onetimesecret.

delano avatar delano commented on May 18, 2024

Ha, just an oversight on my part. Thanks for the heads up.

from onetimesecret.

Flower7C3 avatar Flower7C3 commented on May 18, 2024

It still not works. Any solution?

from onetimesecret.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.