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

Commit

Permalink
Bump to version 1.0.15
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 ef36272 commit 7b087b7
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.

6 changes: 3 additions & 3 deletions chiro-quiz.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/*
* Plugin Name: Chiropractic Quiz
* Version: 1.0.14
* Version: 1.0.15
* Plugin URI: https://platform.marketing/
* Description: Simple chiropractic lead generation through a quiz that helps qualify prospective patients.
* Author: Platform Marketing
* Author URI: https://platform.marketing/
* Requires at least: 4.0
* Tested up to: 4.7.4
* Tested up to: 5.1
*
* @package Chiropractic Quiz
* @author Aaron Huisinga
Expand All @@ -23,7 +23,7 @@
}

if (!defined('CHIRO_QUIZ_PLUGIN_VERSION')) {
define('CHIRO_QUIZ_PLUGIN_VERSION', '1.0.14');
define('CHIRO_QUIZ_PLUGIN_VERSION', '1.0.15');
}

require_once('classes/class-chiro-quiz.php');
Expand Down
13 changes: 6 additions & 7 deletions classes/class-frontdesk.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FrontDesk
{
protected $api_url;
protected $api_key;
protected $api_version = 1;
protected $api_version = 2;
protected $api_base;
protected $guzzle;

Expand Down Expand Up @@ -92,7 +92,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 @@ -114,10 +114,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 @@ -145,10 +145,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 @@ -182,7 +181,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
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: chiropractic, platform, chiro quiz
Requires at least: 4.0
Tested up to: 4.7.4
Stable tag: 1.0.14
Tested up to: 5.1
Stable tag: 1.0.15

Simple chiropractic lead generation through a quiz that helps qualify prospective patients.

Expand Down

0 comments on commit 7b087b7

Please sign in to comment.