def post_with_signature(opts)
      path = opts.fetch(:path)
      payload = opts.fetch(:payload)
      secret = opts.fetch(:secret)

      post path, {payload: payload}, generate_secret_header(secret, URI.encode_www_form(payload: payload))
    end
def post_with_signature(opts)
      path = opts.fetch(:path)
      payload = opts.fetch(:payload)
      secret = opts.fetch(:secret)

      post path, {payload: payload}, generate_secret_header(secret, URI.encode_www_form(payload: payload))
    end
Post to the given path, including the correct signature header based on the payload and secret.
 @param [Hash] opts The options to use when crafting the request.
 @option opts [String] :path The full path of the endpoint to which to post
 @option opts [String] :payload A JSON-parseable string containing a payload as described in http://developer.github.com/v3/activity/events/types/
 @option opts [String] :secret The secret to use when calculating the HMAC for the X-Hub-Signature header