承接 ldubois/php-mapotempo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-31