chico-rei / smartlog-api
1.0.3
2023-05-02 18:36 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-08-31 00:30:12 UTC
README
API计算运费价值、订单追踪及Smartlog平台支持的CEP的API
此PHP包由Swagger Codegen项目自动生成。
- API版本:2.0.1
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
需求
PHP 5.5及以上
安装与使用
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
文件中:
{
"repositories": [
{
"type": "git",
"url": "https://github.com//.git"
}
],
"require": {
"/": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请按照安装过程进行操作,然后运行以下命令:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Swagger\Client\Api\MdulosApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $cnpj = "cnpj_example"; // string | $token = "token_example"; // string | $cep = "cep_example"; // string | try { $apiInstance->cEPsAtendidosPhpGet($cnpj, $token, $cep); } catch (Exception $e) { echo 'Exception when calling MdulosApi->cEPsAtendidosPhpGet: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI均相对于http://api.sistemasmartlog.com.br
模型文档
授权文档
所有端点均不需要授权。