2017 © Pedro Peláez
 

library maptive-rest-api

image

alfredog1976/maptive-rest-api

  • Tuesday, June 19, 2018
  • by alfredog1976
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Maptive Rest Api (PHP)

Install

Via Composer, (*1)

``` bash composer require alfredog1976/maptive-rest-api, (*2)


# Intro Maptive allows you to create Custom Google Maps from spreadsheet data. The API will allow you to write data to custom fields that can be translated to specific map data. For more information, go to https://www.maptive.com/ # Getting Started 1. Create a Maptive account. You'll need a paid account to receive an API key. 2. E-mail support@maptive.com to receive your API key. 3. Create a map. The map ID will be the "map_id" parameter in the URL. ```bash https://fortress.maptive.com/ver4/new_ui/index.php?&map_id=xxxxxx

Setup

Authentication, (*3)

    $maptive = new \alfredog1976\Maptive\Maptive('MAPTIVE API KEY', 'MAP ID');

Add, (*4)

    // Array index must match your Maptive map column index
    $my_column_array = array("Field 1 Data", "Field 2 Data", "Field 3 Data");

    $maptive->add($my_column_array);

Add (Specific Columns), (*5)


// Maptive columns data in associative array can be in any order $my_column_array = array("2"=>"Field 3 Data", "1"=>"Field 2 Data"); $maptive->addSpecificCols($my_column_array);

Update, (*6)

    // Update 1 column using your Maptive index    
    $maptive->update("My Maptive Index", "column_1", "Field 1 Data");

Update (Specific Columns), (*7)

    // Update multiple columns using your Maptive index. Columns can be in any order 
    $my_column_array = array("2"=>"Field 3 Data", "1"=>"Field 2 Data");

    $maptive->addSpecificCols("My Maptive Index", $my_column_array);

Delete, (*8)

    $maptive->delete("My Maptive Index");

Patch, (*9)

    $maptive->patch();

Alfred Garcia alfredog1976 alfredog1976@yahoo.com, (*10)

The Versions

19/06 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

php alfredog1976 php maptive php maptive rest php maptive rest api

19/06 2018

v1.1

1.1.0.0

  Sources   Download

MIT

The Requires

 

php alfredog1976 php maptive php maptive rest php maptive rest api

19/06 2018

v1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

php alfredog1976 php maptive php maptive rest php maptive rest api