Giter Club home page Giter Club logo

Comments (4)

a-know avatar a-know commented on June 16, 2024 2

I released v1.3.3, modified the pointed out, and cut out the API document as a another site https://docs.pixe.la/ !

As for the GET /v1/users/<username>/webhooks, it became a form including breaking change. I'm sorry but please be careful.

Thank you for telling me this, and your continuous support!

from pixela.

a-know avatar a-know commented on June 16, 2024 1

Oh... 😨 Thank you for comment.
Later I will unify it and inform. Thanks!!

from pixela.

a-know avatar a-know commented on June 16, 2024

Thank you for feedback!

Probably, I think that it is a careless mistake at documentation! I will check and respond later! Thank you!

from pixela.

sue445 avatar sue445 commented on June 16, 2024

BTW, POST /v1/users/<username>/webhooks returns webhookHash. But /v1/users/<username>/webhooks returns hashString 🤔

$ curl -s -X POST -H 'User-Agent: Pixela v0.5.1 (https://github.com/sue445/pixela)' -H 'X-USER-TOKEN:XXXXXXXXXXXXX' -H 'Content-Type: application/json' -d '{"graphID":"test-graph2","type":"increment"}' "https://pixe.la/v1/users/sue445/webhooks" | jq .
{
  "message": "Success.",
  "isSuccess": true,
  "webhookHash": "a28cc33ffd0720f42bde5d122a1f4fcaa0177a0d73f8fe69eac6833ca9591ac0"
}

$ curl -s -X GET -H 'User-Agent: Pixela v0.5.1 (https://github.com/sue445/pixela)' -H 'X-USER-TOKEN: XXXXXXXXXXXXX' -H 'Content-Type: application/json' "https://pixe.la/v1/users/sue445/webhooks" | jq .
{
  "webhooks": [
    {
      "hashString": "9e64dcda6c19e9eb7644887722a1e96d0f7247c2355a0faec07a5f9f6ee5bf40",
      "graphID": "test-graph2",
      "type": "increment"
    },
    {
      "hashString": "a28cc33ffd0720f42bde5d122a1f4fcaa0177a0d73f8fe69eac6833ca9591ac0",
      "graphID": "test-graph2",
      "type": "increment"
    }
  ]
}

I think it would be better to unify either webhookHash or hashString

from pixela.

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.