Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Bump to v1.8.7
Browse files Browse the repository at this point in the history
1. Update Platform CRM API to v2
  • Loading branch information
aaronhuisinga committed Mar 14, 2019
1 parent 49618be commit 49bef97
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion assets/js/platform-email-validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions classes/class-frontdesk.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FrontDesk
*
* @param int $api_version
*/
public function __construct($api_version = 1)
public function __construct($api_version = 2)
{
$this->token = 'pf_house_hunter';
$this->api_key = get_option('pf_seller_quiz_frontdesk_key');
Expand Down Expand Up @@ -83,7 +83,7 @@ public function createCampaign($title, $permalink)
public function updateCampaign($id, $title, $permalink)
{
if ($this->api_key != null || $this->api_key != '') {
$this->guzzle->post($this->api_base . 'campaigns/' . $id, [
$this->guzzle->patch($this->api_base . 'campaigns/' . $id, [
'form_params' => [
'key' => $this->api_key,
'title' => $title,
Expand All @@ -105,10 +105,10 @@ public function createProspect($data)
{
try {
if ($this->api_key != null || $this->api_key != '') {
$response = $this->guzzle->post($this->api_base . 'subscribers/', [
$response = $this->guzzle->post($this->api_base . 'subscribers/complete', [
'form_params' => [
'key' => $this->api_key,
'campaign_id' => $data['campaign_id'],
'campaigns' => $data['campaign_id'],
'email' => $data['email'],
'first_name' => $data['first_name']
]
Expand Down Expand Up @@ -136,10 +136,9 @@ public function updateProspect($id, $data)
{
try {
if ($this->api_key != null || $this->api_key != '') {
$response = $this->guzzle->post($this->api_base . 'subscribers/update/', [
$response = $this->guzzle->patch($this->api_base . 'subscribers/' . $id, [
'form_params' => [
'key' => $this->api_key,
'id' => $id,
'email' => $data['email'],
'last_name' => $data['last_name'],
'address' => $data['address'],
Expand Down Expand Up @@ -173,7 +172,7 @@ public function createNote($id, $title, $content)
{
try {
if ($this->api_key != null || $this->api_key != '') {
$response = $this->guzzle->post($this->api_base . 'subscribers/note/', [
$response = $this->guzzle->post($this->api_base . 'subscribers/notes/', [
'form_params' => [
'key' => $this->api_key,
'subscriber_id' => $id,
Expand Down
6 changes: 3 additions & 3 deletions house-hunter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

/*
* Plugin Name: House Hunter
* Version: 1.8.6
* Version: 1.8.7
* Plugin URI: http://www.coldturkeygroup.com/
* Description: A form for prospective home buyers to fill out to request more information from a real estate agent.
* Author: Cold Turkey Group
* Author URI: http://www.coldturkeygroup.com/
* Requires at least: 4.0
* Tested up to: 4.3
* Tested up to: 5.1
*
* @package House Hunter
* @author Aaron Huisinga
Expand All @@ -24,7 +24,7 @@
}

if (!defined('HOUSE_HUNTER_PLUGIN_VERSION')) {
define('HOUSE_HUNTER_PLUGIN_VERSION', '1.8.6');
define('HOUSE_HUNTER_PLUGIN_VERSION', '1.8.7');
}

require_once('classes/class-house-hunter.php');
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: Aaron Huisinga
Tags: real estate, platform, house hunter
Requires at least: 3.5
Tested up to: 4.3
Stable tag: 1.8.6
Tested up to: 5.1
Stable tag: 1.8.7

A form for prospective home buyers to fill out to request more information from a real estate agent.

Expand Down

0 comments on commit 49bef97

Please sign in to comment.