toggl / toggl_api_docs

Documentation for the Toggl API
1.4k stars 235 forks source link

Suggested improvements to Webhooks API documentation #438

Closed michelle-arzul closed 2 years ago

michelle-arzul commented 2 years ago

import hmac

def validate_received_event(signature, secret, body): digest = hmac.new(secret.encode('utf-8'), body.encode('utf-8'), 'sha256').hexdigest() return hmac.compare_digest(signature, f'sha256={digest}')

```rb
#!/usr/bin/env ruby

require 'openssl'

def validate_received_event(signature, secret, body)
  signature == "sha256=#{OpenSSL::HMAC.hexdigest('SHA256', secret, body)}"
end

Also it would be nice if the issues related to implementing webhooks were closed, since they are among the top results on a web search and the excerpts mislead one to believe that it has not yet been released.

joeriharleman commented 2 years ago

Hi Michelle,

Thank you for creating this issue on the repository. Unfortunately though, this repository is largely unmaintained and unwatched by our developers. On a positive note for you I can see that one of our developers has caught eye of it and mentioned it, but this process is not guaranteed to be followed up.

To keep track of the issue (pun intended? 🥲 ) and ensure follow-up, please submit your questions to our 24/5 dedicated support team here -> you can chat with them fairly directly using the chat icon in the bottom right corner. I promise you that you will have a better experience with our support team :)

Regards, Joeri