PHP Класс Recurly_Client, recurly-client-php

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$CACertPath The path to your CA certs. Use only if needed (if you can't fix libcurl/php).
$apiKey Default API key for all requests, may be overridden with the Recurly_Client constructor
$apiUrl Base API URL
$apiVersion API Version
$subdomain Subdomain for all requests.

Открытые методы

Метод Описание
__construct ( $apiKey = null, $acceptLanguage = 'en-US' ) Create a new Recurly Client
apiKey ( ) : string Current API key
baseUri ( )
getFile ( string $uri, resource $file_pointer ) Saves the contents of a URI into a file handle.
getPdf ( string $uri, string $locale = null ) : string Requests a PDF document from the given URI
request ( $method, $uri, $data = null )

Приватные методы

Метод Описание
__userAgent ( )
_getHeaders ( $headerText )
_raiseCurlError ( $errorNumber, $message )
_sendRequest ( string $method, string $uri, mixed $data = '' ) Sends an HTTP request to the Recurly API

Описание методов

__construct() публичный Метод

Create a new Recurly Client
public __construct ( $apiKey = null, $acceptLanguage = 'en-US' )

apiKey() публичный Метод

Current API key
public apiKey ( ) : string
Результат string API key

baseUri() публичный Метод

public baseUri ( )

getFile() публичный Метод

Saves the contents of a URI into a file handle.
public getFile ( string $uri, resource $file_pointer )
$uri string Target URI for the request (complete URL)
$file_pointer resource Resourced returned from fopen() with write mode.

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

request() публичный Метод

public request ( $method, $uri, $data = null )

Описание свойств

$CACertPath публичное статическое свойство

The path to your CA certs. Use only if needed (if you can't fix libcurl/php).
public static $CACertPath

$apiKey публичное статическое свойство

Default API key for all requests, may be overridden with the Recurly_Client constructor
public static $apiKey

$apiUrl публичное статическое свойство

Base API URL
public static $apiUrl

$apiVersion публичное статическое свойство

API Version
public static $apiVersion

$subdomain публичное статическое свойство

Subdomain for all requests.
public static $subdomain