ldubois/php-mapotempo
最新稳定版本:1.0.1
Composer 安装命令:
composer require ldubois/php-mapotempo
包简介
Manipulate Mapotempo API using PHP
关键字:
README 文档
README
Basic SDK to deal with mapotempo records
Installation
Tell composer to require this bundle by running:
composer require ldubois/php-mapotempo
Usage
$apikey = "API_KEY"; // Your Api key $url = "URL"; // Your url application mapotempo $table ="TABLE"; // A table to interact $mapotempo = new Mapotempo($url, $apikey); $records = $mapotempo->findRecords($table);
Exemple
$mapotempo = new Mapotempo($url, $apikey); $fields = [ "ref" => "TEST", "name" => "new client", "street" => "12 avenue Thiers", "postalcode" => 33100, "city" => "Bordeaux", "country" => "France", "detail" => "2ème étage", "tag_ids" => [], "visits" => [] ]; $criteria = ["ref" => $fields["ref"]]; $des = $mapotempo->createTableManipulator('destinations'); if ($des->containsRecord($criteria)) { $des->updateRecord($criteria, $fields); } else { $des->createRecord($fields); }
License
Fork : This library is under the MIT license. See the complete license.
统计信息
- 总下载量: 5.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-31