getPdf() 공개 메소드

Requests a PDF document from the given URI
public getPdf ( string $uri, string $locale = null ) : string
$uri string Target URI for this request (relative to the API root)
$locale string Locale for the PDF invoice (e.g. "en-GB", "en-US", "fr")
리턴 string $response PDF document
예제 #1
0
 /**
  * Retrieve the PDF version of an invoice
  */
 public static function getInvoicePdf($invoiceNumber, $locale = null, $client = null)
 {
     $uri = self::uriForInvoice($invoiceNumber);
     if (is_null($client)) {
         $client = new Recurly_Client();
     }
     return $client->getPdf($uri, $locale);
 }
 /**
  * Retrieve the PDF version of an invoice
  */
 public static function getInvoicePdf($invoiceNumber, $locale = null, $client = null)
 {
     $uri = Recurly_Client::PATH_INVOICES . '/' . rawurlencode($invoiceNumber);
     if (is_null($client)) {
         $client = new Recurly_Client();
     }
     return $client->getPdf($uri, $locale);
 }