コード例 #1
0
 /**
  * Gets a particular form field
  * $fieldName
  */
 public function getFormField($fieldName)
 {
     //build URI
     $strURI = Product::$baseProductUri . "/pdf/" . $this->fileName . "/fields/" . $fieldName;
     //sign URI
     $signedURI = Utils::sign($strURI);
     //get response stream
     $responseStream = Utils::ProcessCommand($signedURI, "GET", "");
     $json = json_decode($responseStream);
     return $json->Field;
 }