Skip to content

Instantly share code, notes, and snippets.

{
"associatedApplications": [
{
"applicationId": "8acbfdc6-5b1a-453d-9eb2-9c5ec178fa13"
}
]
}
{
"associatedApplications": [
{
"applicationId": "8acbfdc6-5b1a-453d-9eb2-9c5ec178fa13"
}
]
}
<?xml version="1.0" encoding="UTF-8"?>
<bookingRequest>
<bookingRequestDetails>
<advertiserAssignedId>15cghi_VRBO</advertiserAssignedId>
<listingExternalId>34898</listingExternalId>
<unitExternalId>34898</unitExternalId>
<propertyUrl>http://stage.homeaway.com/vacation-rental/p3173184</propertyUrl>
<listingChannel>HOMEAWAY_US</listingChannel>
<masterListingChannel>HOMEAWAY_US</masterListingChannel>
<message>Hi!</message>
<quoteRequest>
<quoteRequestDetails>
<advertiserAssignedId>15cghi_VRBO</advertiserAssignedId>
<listingExternalId>34898</listingExternalId>
<unitExternalId>34898</unitExternalId>
<propertyUrl>stage.homeaway.com/vacation-rental/p3173184</propertyUrl>
<listingChannel>HOMEAWAY_US</listingChannel>
<masterListingChannel>HOMEAWAY_US</masterListingChannel>
<reservation>
<numberOfAdults>2</numberOfAdults>
{
"data": {
"unit_id": "44781",
"price": "640",
"taxes": "315.09",
"coupon_discount": "0.00",
"total": "955.09",
"first_day_price": "177.68",
"unit_name": "ASPIN13",
"location_name": "ASPIN13",
{
"data": {
"unit_id": "64551",
"occupants": "2",
"startdate": "04/16/2016",
"enddate": "04/23/2016",
"company_code": "8ee488863c51de4575f7c40bca458a7",
"available_properties": {
"property": {
"unit_id": "64551",
{
"data": {
"unit_id": "64551",
"price": "2312",
"taxes": "688.33",
"coupon_discount": "0.00",
"total": "3000.33",
"first_day_price": "317.14",
"unit_name": "Abbotsford",
"location_name": "Abbotsford",
<?php
/*
* need to replace to_tokens param with device token, this one is from wallace phone
*/
$debug = true;
$url = 'https://api.cloud.appcelerator.com/v1/push_notification/notify_tokens.json?key=0uZfzp6oytQO3ejNDdSdoif4FdP6zhzZ&pretty_json=true';
//get_option('wpt_resortpro_api_endpoint');
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, 1);
{
"data": {
"season": {
"season_id": "8862748",
"season_name": "Fun Season",
"season_description": {},
"period_id": "13723470",
"period_name": "Fun 2",
"period_description": {},
"period_begin": "11/29/2015",
public function resortpro_find_listings()
{
if (isset($_POST['resortpro_nonce']) && wp_verify_nonce($_POST['resortpro_nonce'], 'resortpro_nonce')) {
global $wpdb;
$occupants = (isset($_POST['resortpro_sw_adults']) && $_POST['resortpro_sw_adults'] > 0) ? $_POST['resortpro_sw_adults'] : null;
$occupants_small = (isset($_POST['resortpro_sw_children']) && $_POST['resortpro_sw_children'] > 0) ? $_POST['resortpro_sw_children'] : null;