Right Signature PHP API Path Error

  • 1
  • Question
  • Updated 2 months ago
Hello - When using the old version of the Right Signature API I am having a hard time trying to trash documents that have been created.  The documented method is to hit the below URL with a generic xml provided by the api.  I am currently receiving a 404 error, did the path change?  As this creates an issue of having our system generate the same document multiple times, this is less than ideal for contract legitimacy. 

Method for Sending:
function signAndSendRequest($method, $path, $body = NULL) {
// Generates OAuth Request with consumer token and access_token
$request = OAuthRequest::from_consumer_and_token($this->consumer, $this->access_token, $method, $this->secure_base_url . $path);
$request->sign_request($this->signature_method, $this->consumer, $this->access_token);
$auth_header = $request->to_header($this->secure_base_url);

if ($this->debug) {
error_log($auth_header . "\n");
}

// Send request to endpoint
$response = $this->httpRequest($this->base_url . $path, $auth_header, $method, $body);

$xml = simplexml_load_string($response);
print_r($xml);

if ($this->debug) {
error_log("GOT response\n$response");

}

return $response;
}

Current call used w/ path:

  function trashDocument($guid) {
    $url = "/api/documents/$guid/trash.xml";

    return $this->signAndSendRequest("POST", $url);
  }

Current Response:
You are being <a href="https://rightsignature.com/404">redirected
Photo of Justin Fahrenbach

Justin Fahrenbach

  • 15 Posts
  • 0 Reply Likes
  • frustrated

Posted 2 months ago

  • 1
Photo of Justin Fahrenbach

Justin Fahrenbach

  • 15 Posts
  • 0 Reply Likes
Thread Bump
Photo of Justin Fahrenbach

Justin Fahrenbach

  • 15 Posts
  • 0 Reply Likes
Thread Bump