retailcrm/geohelper-php-sdk
最新稳定版本:1.0.0
Composer 安装命令:
composer require retailcrm/geohelper-php-sdk
包简介
PHP client for Geohelper API
关键字:
README 文档
README
PHP-client for Geohelper API.
Requirements
- PHP 7.4 and higher
Install
-
Get composer
-
Run into your project directory:
composer require retailcrm/geohelper-php-sdk ~1.0.0
If you have not used composer before, include autoloader into your project.
require 'path/to/vendor/autoload.php';
Usage
Get countries
$clientInterface = new \GuzzleHttp\Client(); $client = new RetailCrm\Geohelper\ApiClient( $clientInterface, 'api_key' ); $response = $client->countriesList(); if ($response->isSuccessful()) { $countries = isset($response['result']) ? $response['result'] : array(); foreach ($countries as $country) { echo $country['name']; } } else { echo sprintf( "Error: [HTTP-code %s] %s", $response->getStatusCode(), $response->getErrorMsg() ); }
统计信息
- 总下载量: 944
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-30