def add_envelope_certified_deliveries(options={})
      content_type = { 'Content-Type' => 'application/json' }
      content_type.merge(options[:headers]) if options[:headers]

      post_body = {
        certifiedDeliveries: get_certified_deliveries(options[:certified_deliveries]),
      }.to_json

      uri = build_uri("/accounts/#{acct_id}/envelopes/#{options[:envelope_id]}/recipients")

      http = initialize_net_http_ssl(uri)

      request = Net::HTTP::Post.new(uri.request_uri, headers(content_type))
      request.body = post_body

      response = http.request(request)
      generate(request, response, uri)
      JSON.parse(response.body)
    end
def add_envelope_certified_deliveries(options={})
      content_type = { 'Content-Type' => 'application/json' }
      content_type.merge(options[:headers]) if options[:headers]

      post_body = {
        certifiedDeliveries: get_certified_deliveries(options[:certified_deliveries]),
      }.to_json

      uri = build_uri("/accounts/#{acct_id}/envelopes/#{options[:envelope_id]}/recipients")

      http = initialize_net_http_ssl(uri)

      request = Net::HTTP::Post.new(uri.request_uri, headers(content_type))
      request.body = post_body

      response = http.request(request)
      generate(request, response, uri)
      JSON.parse(response.body)
    end
Public adds the certified delivery recipients (Need to View) for a given envelope

 envelope_id           - ID of the envelope for which you want to retrieve the
                         signer info
 headers               - optional hash of headers to merge into the existing
                         required headers for a multipart request.
 certified_deliveries  - A required hash of all the certified delivery recipients
                         that need to be added to the envelope

 # The response returns the success or failure of each recipient being added
 to the envelope and the envelope ID