// Errors
require(dirname(__FILE__) . '/YandexMoney/Error.php');
require(dirname(__FILE__) . '/YandexMoney/ApiConnectionError.php');
require(dirname(__FILE__) . '/YandexMoney/ApiError.php');
require(dirname(__FILE__) . '/YandexMoney/InsufficientScopeError.php');
require(dirname(__FILE__) . '/YandexMoney/InternalServerError.php');
require(dirname(__FILE__) . '/YandexMoney/InvalidTokenError.php');
// Plumbing
require(dirname(__FILE__) . '/YandexMoney/ApiRequestor.php');
// Yandex.Money API Resources
require(dirname(__FILE__) . '/YandexMoney/ReceiveTokenResponse.php');
require(dirname(__FILE__) . '/YandexMoney/AccountInfoResponse.php');
require(dirname(__FILE__) . '/YandexMoney/OperationHistoryResponse.php');
require(dirname(__FILE__) . '/YandexMoney/Operation.php');
require(dirname(__FILE__) . '/YandexMoney/OperationDetail.php');
require(dirname(__FILE__) . '/YandexMoney/RequestPaymentResponse.php');
require(dirname(__FILE__) . '/YandexMoney/ProcessPaymentResponse.php');
jQuery ->
$('.datepicker').datepicker({
dateFormat: "dd.mm.y",
altFormat: "yy-mm-dd",
firstDay: 1
});
$url = 'http://server.com/path';
$data = array('key1' => 'value1', 'key2' => 'value2');
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
var_dump($result);